Skip to content

Instantly share code, notes, and snippets.

@rexissimus
Created January 14, 2016 09:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rexissimus/dfd27e466427529c385c to your computer and use it in GitHub Desktop.
Porting to Python 3
-------------------
2to3 transforms most py2 strings to py3 strings with unicode support
use bytes in module hasher
use encode=unicode in elementtree.serialize
New ordering logic
Porting to PytQt5
-----------------
pyqt4topyqt5 issues:
disconnect->connect!
[0] inserted in getfilenamefromgui
inserts signal [type] to connections
Does not prefix opyqtSignal with "QtCore."
Misses some connections?
qmatrix->qtransform (Backport?)
scene removed from constructors (qt5-fixes) (Backport?)
translate removed
qgraphicsitem.itemAt needs view transform
qmessagebox.information/... Custom buttons obsolete
new-style signals (pyqt4topyqt5 script leaves a lot of manual work) (Backport?)
pyqt5 uses cooperative multiple inheritance: (needs python 3)
def __init__(**kwargs):
super().__init__(**kwargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment