Message92839
Jeff Bradberry wrote:
>
> Jeff Bradberry <jeff.bradberry@gmail.com> added the comment:
>
> Ok, fixed. I am kind of vague, though, on the usefulness of str.encode
> and unicode.decode.
codecs can work on any combination of types. Here's an example of
a codec that accepts str and unicode and returns str:
'313233'
>>> u'123'.encode('hex')
'313233'
>>> '313233'.decode('hex')
'123'
>>> u'313233'.decode('hex')
'123'
In 3.1 the method don't support this anymore, since they are more
strict w/r to type checking. |
|
Date |
User |
Action |
Args |
2009-09-18 19:59:22 | lemburg | set | recipients:
+ lemburg, benjamin.peterson, r.david.murray, jbradberry |
2009-09-18 19:59:21 | lemburg | link | issue6300 messages |
2009-09-18 19:59:20 | lemburg | create | |
|