[Python-ideas] namedtuple nit...

Mike Miller python-ideas at mgmiller.net
Thu Jul 27 20:09:56 EDT 2017


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.


On 2017-07-27 09:26, Chris Barker wrote:
> Since we are talking about namedtuple and implementation, I just noticed:


More information about the Python-ideas mailing list