On 8/20/2014 8:27 PM, Joseph Martinot-Lagarde wrote: > The pain was even bigger because in addition to the change in underlying > types, the names of the types were not compatible between the python > versions. I often try to write compatible code between python2 and 3, > and I can't use "str" because it has not the same meaning in both > versions, I can not use "unicode" because it disappeared in python3, And bridge library should have the equivalent of if 'py3': unicode = str > I can't use "byte" because it doesn't exist in python2. 2.7 (and 2.6?) already has if 'py2': bytes = str and I presume bridge libraries targeted before that was added include it also. -- Terry Jan Reedy
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4