[Python-Dev] enum discussion: can someone please summarize open issues?

Larry Hastings larry at hastings.org
Sun May 5 00:41:09 CEST 2013


On 05/04/2013 07:01 AM, Eric V. Smith wrote:
> On 5/4/2013 2:42 AM, Nick Coghlan wrote:
>> I'm now -1 on my own as_dict() suggestion, due to the general name
>> clash problem for arbitrary enums.
> To avoid the name collision, namedtuple calls this _asdict().

Although I recall Raymond told me he should have called it asdict_(), 
and reserved all identifiers with trailing underscores.


//arry/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130504/d4935666/attachment.html>


More information about the Python-Dev mailing list