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


Groups > comp.lang.python > #26466

Re: attribute is accessed from Nonetype

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <d@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'beginner': 0.05; 'builtin': 0.07; 'python': 0.09; 'wrong,': 0.09; 'cc:addr:python- list': 0.10; 'aug': 0.13; '(the': 0.15; 'sat,': 0.15; 'namespace.': 0.16; 'right;': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'wrote:': 0.17; '>>>': 0.18; 'import': 0.21; 'either.': 0.22; 'sorry,': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'url:wiki': 0.26; 'am,': 0.27; 'module.': 0.27; 'chris': 0.28; '>>>>': 0.29; "d'aprano": 0.29; 'steven': 0.29; 'url:wikipedia': 0.29; "i'm": 0.29; 'fri,': 0.30; 'getting': 0.33; 'done': 0.34; 'thanks': 0.34; 'pm,': 0.35; 'there': 0.35; 'url:org': 0.36; 'subject:: ': 0.38; 'url:en': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'iron': 0.65; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply- to:no real name:2**0': 0.72; 'blew': 0.84; 'received:74.208.4.194': 0.84; 'angel': 0.93
Date Fri, 03 Aug 2012 21:58:28 -0400
From Dave Angel <d@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0
MIME-Version 1.0
To Steven D'Aprano <steve+comp.lang.python@pearwood.info>
Subject Re: attribute is accessed from Nonetype
References <CAMLC9n6ES9CwCE_OqEsnvQJ1gG_2MJEmrkjzQaM7tPQ4-4k0nA@mail.gmail.com> <501A5EAF.9090501@davea.name> <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>
In-Reply-To <501c7c71$0$29978$c3e8da3$5496439d@news.astraweb.com>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:qdLP5oWg1ROrYxIx0XdGZbZyT1lkOXD4iIHgSrCO7Fh xJCOhWpTMZCH+RogfXdGHnU5Jqv7zbSqq90fo6QAKlyFbDvhlm CUam/O8O0WjW+JBOTERfcovInQ1WPzSxvGaQq9sGYx1OI06JIy iiBtxwlThlbNeNEJp513lOcfm7g8TU1fRH9s4hQr/9J/RMvEDn 9mSHn3JZMCuMQ/HsQxrzz+LYWa0lI99EzSBKVlFSXsGeNLGB2i zuwTRzCQCDRp34zJ1k7ubO2dKhzYhxtxPWWyOMIkq1KiQpaf9x 0wlmXGtRFLYQy96QxK3NRGGTzVUdJOvuFZsmrLV34nEluyJUw= =
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To d@davea.name
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2921.1344045542.4697.python-list@python.org> (permalink)
Lines 31
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1344045542 news.xs4all.nl 6938 [2001:888:2000:d::a6]:45626
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:26466

Show key headers only | 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