-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Common issues we have to look out for #10
Comments
Also:
|
A lot of changes related to Gtk, like:
|
There's no Details: tutorial and class hierarchy. |
Mea culpa, I commented on another issue. Perhaps it's worth porting all ui files using Glade, but are we targeting GTK3 or 4? |
If a class is used as an exception, it must be derived from class MyClass(Exception):
pass
try:
do_stuff()
except MyClass as e:
print("That was a bad idea") |
For the integer divisions: I was porting another project some time ago and wanted to find all division operations to check if they were using integers. So I built a little tool called astsearch - you can run |
This is just a meta-issue listing the issues we have to look out for, that weren't autotranslated from python 2 to 3
GObject
constructors aren't correctly translated (see Properly instantiate ListView #5)int
arguments. In python2 a/
division between twoint
always resulted inint
. In python3 the result is alwaysfloat
. We have to replace/
with//
where appropriate. (see fix some float/int mismatch errors #6)List.sort()
). These need to be replaced with key functions (see use key function for sorting in seconds_to_timestring #9 / recindex.py: sort() takes no positional arguments #7)Please help add to this list and keep it in mind when touching up code.
The text was updated successfully, but these errors were encountered: