On 2/14/06, Guido van Rossum <guido at python.org> wrote: > On 2/14/06, Adam Olsen <rhamph at gmail.com> wrote: > > In 3.0 it changes to: > > "It's...".encode('utf-8') > > u"It's...".byteencode('utf-8') # Same as above, kept for compatibility > > No. 3.0 won't have "backward compatibility" features. That's the whole > point of 3.0. Conceded. > > I realize it would be odd for the interactive interpret to print them > > as a list of ints by default: > > >>> u"It's...".byteencode('utf-8') > > [73, 116, 39, 115, 46, 46, 46] > > No. This prints the repr() which should include the type. bytes([73, > 116, 39, 115, 46, 46, 46]) is the right thing to print here. Typo, sorry :) -- Adam Olsen, aka Rhamphoryncus
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