Odd error with sasl_interactive_bind_s
deepak at arlut.utexas.edu
Thu Mar 3 21:08:12 CET 2005
On Thu, 2005-03-03 at 01:45 +0100, Michael Ströder wrote:
> No easy way to make it work without another #if ?
It took me a while to find it (I didn't know it existed!), but there is
a function, Py_GetVersion, that will give you a version string (similar
to sys.version). The third character is always the minor version number,
so it looks like we can use that as an alternative to the #if.
This patch is a little longer than the previous one, but it works just
as well. Plus, this way we're doing a run-time check instead of a
compile-time check. This will let people upgrade to Python 2.3+ without
having to recompile python-ldap.
I've attached the patch for posterity's sake, but I've gone ahead and
commited the change to CVS.
Good suggestion, Michael. :)
Applied Research Laboratories
University of Texas at Austin
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1621 bytes
Desc: not available
More information about the python-ldap