gb345 wrote:
In "Martin v. Loewis" writes:
Do I need to do something especial to get repr to work strictly
with unicode?
Yes, you need to switch to Python 3 :-)
Or should __repr__ *always* return bytes rather than unicode?
In Python 2.x: yes.
In "Martin v. Loewis" writes:
>> Do I need to do something especial to get repr to work strictly
>> with unicode?
>Yes, you need to switch to Python 3 :-)
>> Or should __repr__ *always* return bytes rather than unicode?
>In Python 2.x: yes.
>> What about __str__ ?
>Likewise.
>> If both of
> Do I need to do something especial to get repr to work strictly
> with unicode?
Yes, you need to switch to Python 3 :-)
> Or should __repr__ *always* return bytes rather than unicode?
In Python 2.x: yes.
> What about __str__ ?
Likewise.
> If both of these are supposed to return bytes,
> the