• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

backward compatability

 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Python 3 isn't backward compatible with Python 2. Is this a problem in practice? It sounds like it would be one, but I'm not seeing people crying about it.
 
Ranch Hand
Posts: 343
Mac OS X Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Backward compatibility is certainly an issue when you are trying to migrate from 2.x to 3.0. However, the Python community is not fast paced in adapting to changes like other communities such as Ruby, etc. are. Though people may not be crying out loud but certainly there are people who are crying. Advantage of Python is numerous additional Libraries that help to scale Python like NumPy, SciPy, etc. So the issue that someone may feel is about the port of these numerous libraries for 3.x. With the release of 3.0 ver, certainly these libraries have become legacy system and if you want to migrate to this version, then certainly it can be painful as with migrating from any legacy system to newer technology.

If you are using 2.6, 2.7 version of Python, then certainly the effort will be less.

Now, choice of version whether 2.7 or 3.0 will certainly depend on kind of work you do. If you just wish to play around with Python, then certainly go for 3.0 if it works for you. Otherwise stick to 2.7. I use 3.0 for my personal work and 2.7 for scripting purpose.
 
Author
Posts: 28
Python Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think Palak summed it up pretty well. The transition from Python 2.x to 3 has been going on for a while, and no end in sight.

One consolation is that most of the changes are small, so while you are learning Python, it doesn't matter which one you learn. Except for the print statement/function. That's by far the most visible change.

Programs like 2to3 can convert many Python programs from 2.x to 3 automatically. There are limitations, but for the programs I have converted, everything worked out of the box.

Still, I think Python 2.x will be with us for a long time.

Allen
 
Palak Mathur
Ranch Hand
Posts: 343
Mac OS X Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also tried 2to3 and works fine for most of the cases
 
There is no beard big enough to make me comfortable enough with my masculinity to wear pink. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic