attribute is accessed from Nonetype
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Fri Aug 3 21:35:45 EDT 2012
On Fri, 03 Aug 2012 19:03:20 -0400, Dave Angel wrote:
> On 08/03/2012 06:41 PM, Chris Angelico wrote:
>> On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel <d at davea.name> wrote:
>>> I'm sorry, what's not clear? Nonetype is not the same as NoneType.
>>> Python is case sensitive.
>> There isn't a NoneType either. I get a NameError.
>>
>> ChrisA
>
> NoneType isn't in the builtin namespace. It's in the types module.
>
> import types
> a = types.Nonetype
^^^^^^^^
Oh the irony. After criticising a beginner for getting the case wrong,
you have done exactly the same thing.
A form of Muphry's Law (the Iron Law of Nitpicking) perhaps?
http://en.wikipedia.org/wiki/Muphry%27s_law
--
Steven
More information about the Python-list
mailing list