3 ms·
Add back the features that were removed with Python 3 (mostly the print statement, maybe some library features?). Then let the user choose what str and unicode
by captainmuon 13y ago
Add back the features that were removed with Python 3 (mostly the print statement, maybe some library features?). Then let the user choose what str and unicode mean. Either via command-line flag, modeline for the file (similar to "#coding: utf8"), or via something like:
bytes = strings.bytestr
str = strings.unicode
Why? Not because I miss the print statement much. The goal is that 95% of 2.x legacy code will now work with the new Python 3.x+. (I'd call it Python 5 because 2+3=5.)
- yen223 13y agoWe don't need another bridge between Python 2 and Python 3. That's Python 2.7's raison d'etre.
- captainmuon 13y agoNo, not a bridge. Add back the removed features to mainline python. I want to just install the latest interpreter from python.com or my OS repositories like I used to, and run all the scripts I created at work over the years. Right now I have to switch between multiple python versions for different programs, and I can't combine their code, because some of it requires a certain version.