[bind10-dev] Python classes vs modules vs other funny stuff

Michael Graff mgraff at isc.org
Mon Oct 12 15:49:28 UTC 2009


Jelte Jansen wrote:
> s = ISC.CC.message.to_wire(ss)
> print ISC.CC.message.from_wire(s)
> 
> is that what you are looking for?

Close.  However, to me, when reading this, I would think that "message" 
is a variable inside of ISC.CC.  Is this what Python programmers would 
think?

In any case, I renamed the file to Message.py, which will make it:

   ISC.CC.Message.to_wire()

which to me makes it a class.  I know it's not, but I just don't quite 
understand how this rather ad-hoc python upper/lower 
class/module/variable naming convention stuff works -- if there is any 
standard, ad-hoc or not.

--Michael




More information about the bind10-dev mailing list