Multi-dimensional list initialization
Chris Angelico
rosuav at gmail.com
Mon Nov 5 02:27:40 EST 2012
On Mon, Nov 5, 2012 at 6:07 PM, Chris Rebert <clp2 at rebertia.com> 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??!? :)
ChrisA
More information about the Python-list
mailing list