[Python-Dev] What to do for bytes in 2.6?

Christian Heimes lists at cheimes.de
Sat Jan 19 19:51:57 CET 2008


Neil Schemenauer wrote:
> I like this solution because of its simplicity.

I've implemented and submitted the feature yesterday:

Python 2.6a0 (trunk:60048M, Jan 18 2008, 19:08:16)
[GCC 4.2.1 (Ubuntu 4.2.1-5ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> b'a'
'a'
>>> br'\a'
'\\a'
>>> bytes
<type 'str'>

Christian



More information about the Python-Dev mailing list