Thank you for your reply.
I didn't mean to instigate or revive a problem ;-)
I guess when python-3.* is python we'll have python-2.* installed.
I guess I forsee a significant amount of time when we'll need both versions
overlapping.
I just would like a way to have a fixed target for python-2.* as
Hello,
I recently changed from Python 2.5 to Python 3.0 rc2, and have
been trying to find out how to convert byte strings (b"example")
to unicode strings ("example"). I noticed that some of these had
changed in the latest version.
One reason for a conversion between the two is the
urllib.request
On Sat, Nov 15, 2008 at 8:46 AM, Pb2Au <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I recently changed from Python 2.5 to Python 3.0 rc2, and have
> been trying to find out how to convert byte strings (b"example")
> to unicode strings ("example"). I noticed that some of these had
> changed in the lates
On Sun, Nov 16, 2008 at 4:31 PM,
Chris Rebert <[EMAIL PROTECTED]>: wrote:
>> Hello,
>>
>> I recently changed from Python 2.5 to Python 3.0 rc2, and have
>> been trying to find out how to convert byte
strings (b"example")
>> to unicode strings ("example"). I noticed that some of these
had
>> change
> I know that it had worked in the version 2.5, Python 3.0 rc2 doesn't
> seem to recognize it as a function.
a) I discourage usage of unicode and str converters; consider using
.encode/.decode instead
b) unicode is now called str
Regards,
Martin
___
Ah, my bad. Should never have referred to the Python 2.6 docs. :)
Replace "unicode" with "str" in my line of code and I think it should work.
Cheers,
Chris
On Sun, Nov 16, 2008 at 12:13 PM, Pb2Au <[EMAIL PROTECTED]> wrote:
> On Sun, Nov 16, 2008 at 4:31 PM, Chris Rebert <[EMAIL PROTECTED]>: wrot
Pb2Au wrote:
> On Sun, Nov 16, 2008 at 4:31 PM, Chris Rebert <[EMAIL PROTECTED]>: wrote:
>>
>>Already exists. Has for quite a while now:
>>
>>the_unicode = unicode(some_bytes, "name of encoding")
>
> I know that it had worked in the version 2.5, Python 3.0 rc2 doesn't
> seem to recognize it as a fu
Ah, I
understand now. Thank you everyone for your help.
___
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
What database API's have support for Python 3.0?
___
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
What database API's have support for Python 3.0?
___
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
10 matches
Mail list logo