Hm. Trailing underscores look *really* weird to me. On Sat, May 4, 2013 at 3:41 PM, Larry Hastings <la...@hastings.org> wrote: > 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 > > _______________________________________________ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/guido%40python.org >
-- --Guido van Rossum (python.org/~guido) _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com