concise code (beginner)
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Thu Sep 6 04:02:13 EDT 2007
On Thu, 06 Sep 2007 15:44:57 +1000, bambam wrote:
> def script(self)
> def a0010(): global self; self.power_on([self.dev]);
> def a0020(): global self; self.dev.addLog([self.name, ' started']);
> def a0030(): global self; self.resetMinuteReg([self.dev]);
> def a0040(): global self; self.disablePLmessages([self.dev]);
> def a0050(): global self; self.dev.testH.writePLram((PL.BCAL12<<8));
What is this ``global self`` meant to do? And the first line is missing a
colon at the end.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list