[Python-3000] Recursive str

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 16 05:30:40 CEST 2008


Terry Reedy wrote:
> import unirep
> print(*map(unirep.russian, objects))

That's okay if the objects are strings, but what about
non-string objects that contain strings?

We'd need another protocol, such as __unirep__.

-- 
Greg


More information about the Python-3000 mailing list