Multi-dimensional list initialization

Chris Angelico rosuav at
Mon Nov 5 08:27:40 CET 2012

On Mon, Nov 5, 2012 at 6:07 PM, Chris Rebert <clp2 at> wrote:
>>>> x = None
>>>> x.a = 42
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> AttributeError: 'NoneType' object has no attribute 'a'

Python needs a YouGottaBeKiddingMeError for times when you do
something utterly insane like this. Attributes of None??!? :)


More information about the Python-list mailing list