summaryrefslogtreecommitdiffstats
path: root/Tools/demo/beer.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-12-30 22:11:50 (GMT)
committerGeorg Brandl <georg@python.org>2010-12-30 22:11:50 (GMT)
commit856898b3958626d2400e59b53dc134283addc988 (patch)
tree2018f1418921ad20ef0fce86f9e28df09c3e5567 /Tools/demo/beer.py
parenta3fe8e0b9face74e34b938dd657c4048d5f0dadf (diff)
downloadcpython-856898b3958626d2400e59b53dc134283addc988.zip
cpython-856898b3958626d2400e59b53dc134283addc988.tar.gz
cpython-856898b3958626d2400e59b53dc134283addc988.tar.bz2
Harmonize docstrings. Move redemo from Tools/scripts to Tools/demo. Add a README file to Tools/demo.
Diffstat (limited to 'Tools/demo/beer.py')
-rwxr-xr-xTools/demo/beer.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Tools/demo/beer.py b/Tools/demo/beer.py
index 56eec7b..af58380 100755
--- a/Tools/demo/beer.py
+++ b/Tools/demo/beer.py
@@ -1,6 +1,11 @@
-#! /usr/bin/env python3
+#!/usr/bin/env python3
-# By GvR, demystified after a version by Fredrik Lundh.
+"""
+A Python version of the classic "bottles of beer on the wall" programming
+example.
+
+By Guido van Rossum, demystified after a version by Fredrik Lundh.
+"""
import sys