<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Yes, I think so. I outlined a plan somewhere.. <br>
The big compatibility problem is that where you once used Python2.x's
strings ("str") to pass binary data, you would now have to use
Python3's "bytes".<br>
And, other places where you would pass strings (like for attribute
names) you might now have to pass unicode strings and python-ldap would
convert these to UTF-8 under the covers.<br>
The other minor compatibility issue was that there is no 'int' in
Python3, only longs now, but that turns out to be hardly noticeable.<br>
<br>
But going back to the bytes/string/unicode problem, I'd like to know if
anyone has 2to3 migration/porting experience and if they might share
some advice/wisdom.<br>
<br>
d<br>
<br>
Bruno Aguirre wrote:
<blockquote
cite="mid:eb4...@ma..."
type="cite">My hability to code a Python module is limited. But im
glad to give a hand.<br>
<br>
Looking in the list i saw that someone said that the actual Python-ldap
can be build for Python 3 modifying some lines. Is this possible? Aré
there alternatives?<br>
<br>
<div class="gmail_quote">2009/9/9 Michael Ströder <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:mi...@st...">mi...@st...</a>></span><br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Bruno Aguirre wrote:<br>
><br>
> Hi to all, I'd like to know if there's a version (alpha, beta or
stable)<br>
> to use ldap in python 3.<br>
<br>
</div>
There are still some things to consider. Please dig the mailing list's
archive<br>
for some discussion.<br>
<br>
Would you personally be willing to put some effort into the C extension
module<br>
part?<br>
<br>
Ciao, Michael.<br>
<br>
</blockquote>
</div>
<br>
</blockquote>
<br>
</body>
</html>
|