[Python-ideas] Namespace creation with syntax short form (original) (raw)
random832 at fastmail.us random832 at fastmail.us
Sat Feb 14 00:51:25 CET 2015
- Previous message: [Python-ideas] Namespace creation with syntax short form
- Next message: [Python-ideas] Namespace creation with syntax short form
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-ideas] Namespace creation with syntax short form
- Next message: [Python-ideas] Namespace creation with syntax short form
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]