[Python-Dev] Examples in Py2 or Py3

Senthil Kumaran orsenthil at gmail.com
Thu Jan 29 13:57:24 CET 2009


> Facundo Batista  wrote:
> Hi!
>
> In the Python Argentina mail list there's already people passing
> examples and asking help about Python 3.

For complete snippets:
#!/usr/bin/env python3.0

vs
#!/usr/bin/env python2.6

And for blocks of code

# this for python 3.0
# this is for python 2.6

I know, it is very rudimentary, but I have followed snippets with
written these identifications.

-- 
Senthil


More information about the Python-Dev mailing list