[Python-ideas] namedtuple nit...
Steven D'Aprano
steve at pearwood.info
Thu Jul 27 21:53:08 EDT 2017
More information about the Python-ideas mailing list
Thu Jul 27 21:53:08 EDT 2017
- Previous message (by thread): [Python-ideas] namedtuple nit...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Jul 27, 2017 at 05:09:56PM -0700, Mike Miller wrote: > I've never liked that error message either: > > >>> object().foo = 'bar' > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > AttributeError: 'object' object has no attribute 'foo' > > > Should say the "object is immutable," not writable, or something of the > sort. Then put in a feature request on the bug tracker. It shouldn't require a week's discussion on Python-Ideas to improve an error message. -- Steve
- Previous message (by thread): [Python-ideas] namedtuple nit...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list