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

jon vs. python jonvspython at gmail.com
Mon May 3 14:36:04 CEST 2010


Sorry again. I guess it's monday.

On Mon, May 3, 2010 at 1:40 PM, jon vs. python <jonvspython at gmail.com>wrote:

> 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/8fda62fd/attachment.html>


More information about the Ironpython-users mailing list