On Sat, Apr 28, 2018 at 04:33:32PM +0800, Ken Hilton wrote:
> Perhaps there could be a special magic method that classes could implement
> for such a function? I.e. something like this:

That doesn't help for the scenario in the original motivating example, 
where there are no classes involved.


-- 
Steve
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to