Re: [Python-Dev] Examples in Py2 or Py3

2009-01-29 Thread Senthil Kumaran
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,

Re: [Python-Dev] Examples in Py2 or Py3

2009-01-29 Thread Facundo Batista
2009/1/29 Senthil Kumaran orsent...@gmail.com: And for blocks of code # this for python 3.0 # this is for python 2.6 Too much work, ;) Seriously, most probably people will forgot to add that after the third example... -- .Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr:

Re: [Python-Dev] Examples in Py2 or Py3

2009-01-29 Thread rdmurray
On Thu, 29 Jan 2009 at 10:50, Facundo Batista wrote: This introduces the problem that some examples are in Py2 and others are in Py3. Sometimes this is not explicit, and gets confusing. I'm trying to avoid this confusion when preparing my own examples. So far, I use (py3) as a prefix for any