On Sat, 29 Nov 2008 13:40:00 -0800, Scott David Daniels <[EMAIL PROTECTED]> 
wrote:
Adam E wrote:
I have read in my copy of Programming Python that all strings will be
Unicode and there will be a byte type.
Actually that change is scheduled for 3.0.

Yes, but it's available in 2.6 as well:

Python 2.6+ (trunk:66997, Oct 23 2008, 16:02:09) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
   Type "help", "copyright", "credits" or "license" for more information.
   >>> type('')
   <type 'str'>
   >>> type(u'')
   <type 'unicode'>
   >>> type(b'')
   <type 'str'>
   >>> from __future__ import unicode_literals
   >>> type('')
   <type 'unicode'>
   >>> type(u'')
   <type 'unicode'>
   >>> type(b'')
   <type 'str'>
>>>
Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to