Nick Coghlan wrote: > Lennart Regebro wrote: >> I also would really like to see a real port of the bytes class to 2.6, >> but I have a vague memory that there was some reason that wouldn't >> work. > > Not so much that it wouldn't work, but that the interfaces to support > using it effectively really aren't there - lots of areas in the standard > library needed to be tweaked to cope with bytes objects in 3.x. > > Generally speaking, the "bytes = str" trick represents a reasonable > compromise as the APIs that you would pass a bytes object to in 3.x > expect an 8-bit str instance in 2.x. Could you please add such hints, tricks and tips to the wiki page: http://wiki.python.org/moin/PortingToPy3k Thanks, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Nov 04 2009) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try our new mxODBC.Connect Python Database Interface for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/
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