[Python-ideas] Namespace creation with syntax short form

random832 at fastmail.us random832 at fastmail.us
Sat Feb 14 00:51:25 CET 2015


On Fri, Feb 13, 2015, at 17:16, Andrew Barnert wrote:
> OK, that makes this seem even _less_ useful for the stat case.
> 
> The reasons to use namedtuple/structseq in the first place for stat are
> (a) so existing code written to the original tuple interface can continue
> to treat the value as a tuple while newer code can access the new
> attributes that don't fit;

What I'm getting is: the reason to want a simple namespace syntax is to
get people to stop returning tuples for stuff like this in the first
place, so that there is no original tuple interface. The horse has
already bolted for the stat case.


More information about the Python-ideas mailing list