]> git.madduck.net Git - etc/vim.git/blob - tests/data/python2.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Cover more in the usage docs (#2208)
[etc/vim.git] / tests / data / python2.py
1 #!/usr/bin/env python2
2
3 import sys
4
5 print >> sys.stderr , "Warning:" ,
6 print >> sys.stderr , "this is a blast from the past."
7 print >> sys.stderr , "Look, a repr:", `sys`
8
9
10 def function((_globals, _locals)):
11     exec ur"print 'hi from exec!'" in _globals, _locals
12
13
14 function((globals(), locals()))
15
16
17 # output
18
19
20 #!/usr/bin/env python2
21
22 import sys
23
24 print >>sys.stderr, "Warning:",
25 print >>sys.stderr, "this is a blast from the past."
26 print >>sys.stderr, "Look, a repr:", ` sys `
27
28
29 def function((_globals, _locals)):
30     exec ur"print 'hi from exec!'" in _globals, _locals
31
32
33 function((globals(), locals()))