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


Groups > comp.lang.python > #94745

Re: AttributeError: LineLogic instance has no attribute 'probe'

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!gordon
From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: AttributeError: LineLogic instance has no attribute 'probe'
Date Wed, 29 Jul 2015 17:32:28 +0000 (UTC)
Organization PANIX Public Access Internet and UNIX, NYC
Lines 29
Message-ID <mpb2nc$ohk$1@reader1.panix.com> (permalink)
References <mp5ci3$q3j$1@reader1.panix.com> <mailman.1041.1438049757.3674.python-list@python.org>
NNTP-Posting-Host panix2.panix.com
X-Trace reader1.panix.com 1438191148 25140 166.84.1.2 (29 Jul 2015 17:32:28 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Wed, 29 Jul 2015 17:32:28 +0000 (UTC)
User-Agent nn/6.7.3
Xref csiph.com comp.lang.python:94745

Show key headers only | View raw


In <mailman.1041.1438049757.3674.python-list@python.org> Cameron Simpson <cs@zip.com.au> writes:

> >Since you haven't posted the actual complete code, we can only guess
> >at the problem.
> >
> >My guess is that you have two different definitions of the LineLogic
> >class, one of them lacking the probe attribute.

> Alternatively, if the code he did quote is accurate, he may have not indented 
> the definition of __init__. Example:

>   class LineLogic(object):
>       ''' doc string
>       '''

>   def __init__(self):
>       ...

> This is legal, but wrong. It will result in LineLogic having the default 
> initialisation i.e. nothing, as the __init__ function is not part of the class.

Ooh, I like your guess better.  :-)


-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

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


Thread

Re: AttributeError: LineLogic instance has no attribute 'probe' John Gordon <gordon@panix.com> - 2015-07-27 13:43 +0000
  Re: AttributeError: LineLogic instance has no attribute 'probe' Cameron Simpson <cs@zip.com.au> - 2015-07-28 11:44 +1000
    Re: AttributeError: LineLogic instance has no attribute 'probe' John Gordon <gordon@panix.com> - 2015-07-29 17:32 +0000

csiph-web