Re: How can we write a class factory that dynamically redefines the __init__ function etc.

2008-05-06 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : On May 6, 12:14 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: (the convention is to use lowercase names for attributes: rawdata instead of RawData) But at least put an underscore between the words (raw_data), or, if you like the OO world, make the subsequent w

Re: How can we write a class factory that dynamically redefines the __init__ function etc.

2008-05-05 Thread s0suk3
On May 6, 12:14 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > (the convention is to use lowercase names for attributes: rawdata instead > of RawData) > But at least put an underscore between the words (raw_data), or, if you like the OO world, make the subsequent words capitalized (rawData).

Re: How can we write a class factory that dynamically redefines the __init__ function etc.

2008-05-05 Thread Gabriel Genellina
En Mon, 05 May 2008 20:34:32 -0300, John Schroeder <[EMAIL PROTECTED]> escribió: Basically I have some classes like this: ### # 0x01: ModeCommand ##

How can we write a class factory that dynamically redefines the __init__ function etc.

2008-05-05 Thread John Schroeder
Basically I have some classes like this: ### # 0x01: ModeCommand ### class ModeCommand: """This is the Mode Command Packet class.""" def