Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #26466

Re: attribute is accessed from Nonetype

Date 2012-08-03 21:58 -0400
From Dave Angel <d@davea.name>
Subject Re: attribute is accessed from Nonetype
References (2 earlier) <5B80DD153D7D744689F57F4FB69AF4741659DDF5@SCACMX008.exchad.jpmchase.net> <501C4EB1.80003@davea.name> <CAPTjJmqA14Pz8-dDsHyAdH-Kdh8SBdg1VO_k5sN2+KTnO2grZw@mail.gmail.com> <mailman.2920.1344035030.4697.python-list@python.org> <501c7c71$0$29978$c3e8da3$5496439d@news.astraweb.com>
Newsgroups comp.lang.python
Message-ID <mailman.2921.1344045542.4697.python-list@python.org> (permalink)

Show all headers | View raw


On 08/03/2012 09:35 PM, Steven D'Aprano wrote:
> 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@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
>
You are, of course right;  I blew it.  Thanks for pointing it out with
humor.


-- 

DaveA

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: attribute is accessed from Nonetype Dave Angel <d@davea.name> - 2012-08-03 19:03 -0400
  Re: attribute is accessed from Nonetype Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-08-04 01:35 +0000
    Re: attribute is accessed from Nonetype Dave Angel <d@davea.name> - 2012-08-03 21:58 -0400

csiph-web