This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Terry Garyet
Recipients Terry Garyet
Date 2015-11-13.19:08:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447441683.08.0.711928345113.issue25619@psf.upfronthosting.co.za>
In-reply-to
Content
The attached code generates this output:

init called
finished init
init called
finished init
init called
finished init
initPorts done
alldone
destroying /sys/class/gpio/gpio16/
destroying /sys/class/gpio/gpio6/
Exception AttributeError: "'NoneType' object has no attribute 'path'" in <bound method sysfsGpio.__del__ of <__main__.sysfsGpio instance at 0xb6c90e68>> ignored
destroying /sys/class/gpio/gpio13/
Exception AttributeError: "'NoneType' object has no attribute 'path'" in <bound method sysfsGpio.__del__ of <__main__.sysfsGpio instance at 0xb6c90e40>> ignored

It is necessary to have two functions defined (railVarRes() and batleveltopct()) and further more changing the name of railVarRes to arailVarRes changes the behavior:


init called
finished init
init called
finished init
init called
finished init
initPorts done
alldone
destroying /sys/class/gpio/gpio16/
destroying /sys/class/gpio/gpio13/
destroying /sys/class/gpio/gpio6/
Exception AttributeError: "'NoneType' object has no attribute 'path'" in <bound method sysfsGpio.__del__ of <__main__.sysfsGpio instance at 0xb6c10e68>> ignored


notice that the order of the class destruction has changed.
History
Date User Action Args
2015-11-13 19:08:03Terry Garyetsetrecipients: + Terry Garyet
2015-11-13 19:08:03Terry Garyetsetmessageid: <1447441683.08.0.711928345113.issue25619@psf.upfronthosting.co.za>
2015-11-13 19:08:03Terry Garyetlinkissue25619 messages
2015-11-13 19:08:02Terry Garyetcreate