Hi All
Stan spent some time on trying to convert Python lib to use Python 3.x and run into problem, mainly because Python 3.x is handling strings as array of unicode chars, and 2.x is using it as array of bytes.
As the lib is using bytes a lot (bytes are read and written to and from sockets, and very often there are "strange" bytes like 0x0 etc.) this change affects core of the solution.

If there is someone willing to take care of this task, the task is available free of charge :-) 

Attached are my older unit tests from time of my optimization effort - it could be helpful for conversion (as writing unit tests is first recommended task).

I would be pleased to take care of it, but what I lack the most today is some free capacity.

With best regards

Jan
Ing. Jan Vlčinský
CAD programy
Slunečnicová 338/3, 734 01 Karviná Ráj, Czech Republic
tel: +420-597 602 024; mob: +420-608 979 040
skype: janvlcinsky; GoogleTalk: jan.vlcinsky@gmail.com
http://cz.linkedin.com/in/vlcinsky



On 24 October 2011 10:29, Jan Vlčinský (CAD) <jan.vlcinsky@cad-programs.com> wrote:
Hi Stanley
I did  use BaseX in past under 2.6 and it worked quite well. There was need for some optimization (which is now part of provided lib) and from this work I have to say, that the code is quite simple and if it is not directly compatible with automated code conversion tool, it shall not be very difficult to fix it and have it running.

With best regards

Jan



On 23 October 2011 20:29, Stanley Sokolow <stanleysokolow@gmail.com> wrote:
I'm just getting started learning BaseX.  I'd like to work with the Python API.   Is it compatible with Python 3.x?

Thanks,
Stan

_______________________________________________
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk