Is this pythonic?

Gregory Ewing greg.ewing at canterbury.ac.nz
Wed Nov 23 16:38:46 EST 2016


Frank Millman wrote:
> For the time being I will use 'print(await obj.__str__())', as this is a 
> good compromise.

It seems more like a very *bad* compromise to me.

I can't see how this gains you anything over just doing
print(await obj.getvalue()), and you lose the ability to
do anything that calls __str__ implicitly.

-- 
Greg



More information about the Python-list mailing list