Revision 2 as of 2007-08-10 23:23:48

Clear message

Python 2.x

Python 2.x has two types to store a string:

Both classes has same methods and are very similar.

Python 3000

Python 3000 use two very different types:

old str and new bytes

Differences between Python 2.x "str" and Python 3000 "bytes":

choose between bytes and str

When you migration from Python 2.x to Python 3000, you have to ask youself: do I manipulate characters or bytes (integers)? "A" is a character and 65 is an integer. Examples:

Unable to edit the page? See the FrontPage for instructions.