Hi, There's a lot of space for improvements in Net-Snmp Python bindings. A change in Python APIs making it more similar to Perl's one would provide new features like asynchronous calls support.
However, actually the code and its API are quite stable and I think you can find a way to improve them without rewrite them all or break backward compatibility. About the session pointer, I think it can be maintained in the Python object, to avoid the addition of static structures in memory (and the complexity to keep a reference between them and the python object), however the best would be to declare it as a private member. I don't think we can reach a significant gain in rewriting the Session class in C. But probably we can improve the communication between the two languages. If you need some help in reviewing/refactoring/improve actual code I'm interested in giving my support. Regards, Gabriele Messineo WiNext s.r.l. On Wednesday 11 February 2009 23:21:59 John A. Khvatov wrote: > Hi coders, > > I want to rewrite the python bindings. > My goals: > - To implement the class Session using Python C API. To avoid store C > pointer as a member of python class. This is wrong: > > http://git.sgu.ru/?p=net-snmp.git;a=blob;f=net-snmp/python/netsnmp/client_i >ntf.c;hb=HEAD#l1360 > > - To implement module API similar to Perl extension module: > > http://git.sgu.ru/?p=net-snmp.git;a=blob;f=net-snmp/perl/SNMP/README;hb=HEA >D#l384 > > - Then to rewrite/refactoring existing code, because it contains a lot of > mistakes. > > Any recommendations or suggestions? > Thanks. ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
