summaryrefslogtreecommitdiff
path: root/pypers/pep318/pro1.txt
diff options
context:
space:
mode:
Diffstat (limited to 'pypers/pep318/pro1.txt')
-rwxr-xr-xpypers/pep318/pro1.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/pypers/pep318/pro1.txt b/pypers/pep318/pro1.txt
new file mode 100755
index 0000000..c75b12a
--- /dev/null
+++ b/pypers/pep318/pro1.txt
@@ -0,0 +1,10 @@
+#<pro1.py>
+import sys
+f=sys.stdout
+a='ciao'
+def prn():
+ print >> f, a
+#</pro1.py>
+>>> import pro1
+>>> pro1.prn()
+ciao