Re: Misleading wikipedia article on Python 3?



On Sun, 2007-08-05 at 23:09 +0000, John J. Lee wrote:
I just wanted to know: is it easy to make my code so it
runs on 2.6 and 3.0, without funny stuff like a code translator?

That depends on your definitions of "easy" and "funny stuff." I'm pretty
sure you'll be able to run the same source code on Python 2.6 and Python
3.0 without either one breaking, as long as the code is written
sufficiently carefully. You may have to give up some Python 3.0 features
and/or write compatibility shims depending on what features you'll need.
Whether that's acceptable depends on the features you need and how much
"yak shaving" you find acceptable.

For instance, if you never use print statements in your code, you won't
notice that print is becoming a function. If you do, you'll have to make
appropriate accommodations.

HTH,

--
Carsten Haese
http://informixdb.sourceforge.net


.



Relevant Pages

  • questions about VB.NET, and uses in education
    ... Nowadays most in education use Java and flash. ... But I'm wondering why there seems to be a lot of negative opinions about VB.NET when it is very well designed and much easier to learn and use than even python for example. ... So I'm listing some other nice features in the design of VB.NET and then some drawbacks, but I don't see why VB.NET deserves so much heat. ...
    (microsoft.public.dotnet.languages.vb)
  • pylib/py.test 1.0.0 released
    ... programming with Python. ... It features the mature cross-project ... plugins: it is now easy to write plugins by implementing one ...
    (comp.lang.python)
  • pylib/py.test 1.0.0 released
    ... programming with Python. ... It features the mature cross-project ... plugins: it is now easy to write plugins by implementing one ...
    (comp.lang.python.announce)
  • Re: questions about VB.NET, and uses in education
    ... features as effective as found in any language, and MS will be supporting it ... > Nowadays most in education use Java and flash. ... > even python for example. ... > I have a lot of appreciation for the design of VB.NET now. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Making immutable instances
    ... >> judgements about turning Python into Some Other Language Just Because. ... > B&D features that are pretty much anathema to dynamic languages. ... Class instances match by identity when used as keys, ...
    (comp.lang.python)