One other coding design question:
I think Session is a pretty cool idea, but what about making it a
Super Class and having a Version 2 and Version 3 Class inhert from
Session? If these two classes overloaded the default methods and had
default keyword arguments it would be easier to subclass in Object
Oriented Code I am writing:
Right now I have the Session class looks like this:
class Session(object):
def __init__(self, **args):
It is a little non-intuitive to inhert from. If it had something like
it would be a little nicer to inhert from:
class SessionV2(Session):
def __init__(self, Version= 2, DestHost='127.0.0.1',
Community='public', **args)
Of course that makes it so someone could override Version=2, but I
think having the keywords in the __init__ method is easier.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders