[Python-ideas] Dunder method to make object str-like

Oleg Broytman phd at phdru.name
Thu Apr 7 09:28:45 EDT 2016


On Thu, Apr 07, 2016 at 11:04:56PM +1000, Chris Angelico <rosuav at gmail.com> wrote:
> 1) What should the dunder method be named? __str_coerce__? __stringlike__?

   __tostring__

Oleg.
-- 
     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-ideas mailing list