Message257597
`str(object)` is not a protocol for getting a string out of an object. It's a protocol for getting a string for print(). __str__ is defined for every object and therefore is useless for getting a string out of "string-like" object (as __float__ for floats and __bytes__ for bytes). Perhaps we need a new special method __string__ that relates to __str__ as __index__ to __int__. |
|
Date |
User |
Action |
Args |
2016-01-06 11:05:16 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, barry, brett.cannon, georg.brandl, pitrou, bronger, ezio.melotti, Arfrever, r.david.murray, daniel.ugra, cool-RR, tshepang |
2016-01-06 11:05:16 | serhiy.storchaka | set | messageid: <1452078316.64.0.845821385911.issue22570@psf.upfronthosting.co.za> |
2016-01-06 11:05:16 | serhiy.storchaka | link | issue22570 messages |
2016-01-06 11:05:16 | serhiy.storchaka | create | |
|