[IronPython] Existing attribute raises a AttributeError: object has no attribute...

jon vs. python jonvspython at gmail.com
Mon May 3 13:40:19 CEST 2010


Hi,
Some times I get an AttributeError when the attribute does exist, see
bellow. Why does this happen? Any clue?
Thanks, Jon.

>>> dir(mst)
['ReadBrokenFiber', 'ReadZoneTemperature', 'StartStop', '__class__',
'__delattr_
_', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__',
'__init
__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__',
'__seta
ttr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__',
'connect', '
disconnect', 'mst', 'reconnect', 'resp']
>>> mst.StartStop
<bound method FireLaser.StartStop of <FireLaser object at
0x000000000000002B>>
>>> callable(mst.StartStop)
True
>>> mst.StartStop()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Archivos de programa\IronPython 2.6\fl.py", line 40, in StartStop
AttributeError: 'Master' object has no attribute 'StartStop'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100503/60e60f4c/attachment.html>


More information about the Ironpython-users mailing list