Re: Getting the --options of configure on installed python

2005-07-25 Thread Mark Rowe
gt; import distutils.sysconfig >>> distutils.sysconfig.get_config_var('CONFIG_ARGS') "'--prefix=/opt/local' '--enable-shared' '--mandir=/opt/local/share/ man' '--bindir=/opt/local/bin' '--with-readline' '--enable-framework' '--enable-

Re: Version Number Comparison Function

2005-03-25 Thread Mark Rowe
ersion ('3.4')] >>> print ' < '.join(map(str, version_list)) 0.1.0 < 0.1.2 < 1.867b < 1.867c < 3.2.2 < 3.4 >>> It should be noted that distutils.version provides a StrictVersion class that offers less flexible but more predictable ordering -- see the module docstrings for more details. Regards, Mark Rowe <http://bdash.net.nz/> -- http://mail.python.org/mailman/listinfo/python-list

Re: How to write python plug-ins for your own python program?

2005-03-03 Thread Mark Rowe
" extension. A better method would be something along the lines of: plugin = __import__(pluginName) plugin.someMethod() This avoids the potential security problem that `exec' poses as well as the need to parse + interpret the string. Regards, Mark Rowe <http://bdash.net.nz/> -- http://mail.python.org/mailman/listinfo/python-list

Re: msnp, friends list

2005-02-17 Thread Mark Rowe
at with msnp as it always changes your state after sign-in, and it fails to group the buddy list state into a single transaction so that you can tell when the entire list has been retrieved... It should be relatively simple to adapt the code to fix the problem. Regards, Mark Rowe <http://b

Re: msnp, friends list

2005-02-17 Thread Mark Rowe
int 'Got friend list update:', friend_list.lists msn = msnp.Session(MsnListener()) msn.login('[EMAIL PROTECTED]', 'xxx') msn.sync_friend_list() while True: msn.process() time.sleep(1) Any info would be great. Thanks. Hope this helps, Mark Rowe <http://

Re: Question: "load"ing a shared object in python

2005-01-27 Thread Mark Rowe
tricky matter, due to the lack of standards for C++ ABI's covering name mangling and vtable layout etc. See the thread starting at <http://mail.python.org/pipermail/python-list/2004-November/ 249513.html> for more information. Regards, Mark Rowe <http://bdash.net.nz/> -- http://mail.python.org/mailman/listinfo/python-list