Dear all

Just to let you know I'm working on reorganising the layout of the veusz tree. I'm trying to put the python module code into a veusz subdirectory and have converted everything to use relative imports. I'm also trying to move to using PyQt's API 2, where Python never sees any of the QStrings, QVariants, etc... This means I can remove a lot of the unicode() calls scattered around which converted from QString. I've switched exceptions to use the new (python3 compatible) syntax. Earlier, I also switched everything to using the new python3 division behaviour.

One of the aims is to make the code much more python3 compatible. Once the cleanup is done, it might be possible to have a code base which can run on python2 and 3 (perhaps using the "six" module or our own thin layer). The remaining issues are handling the remaining unicode() calls, izip/zip, xrange/range and the odd few print statements. There are probably a few places where more careful encoding/decoding of unicode has to be done.

It's in-progress, but everything appears to be still working. Try out the "rearrange" branch if you're interested, but it can break at any time.

If anyone is feeling adventurous, please feel free to send me patches to convert old-style signal/slots to the new syntax.

Jeremy

_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss

Répondre à