Suggestion: When doing the refactoring, drop support for Python 2 and older IDA #182
Replies: 3 comments 1 reply
-
How do you mean "way longer"? Are you referring to the encoding of strings to bytes for communicating with IDAPython? The majority of the py2-compatibility exists entirely within the Personally, though, I'm not actively maintaining support for py2. A lot of that code has existed before py3 became a thing and hence it still works the same way. However, do you have a specific example that you're referencing? |
Beta Was this translation helpful? Give feedback.
-
So for Python 2 I was thinking that if you dropped that, then you could be using type hints and f-strings which are both very nice upgrades in newer Python. I also was seeing lots and lots of if idaapi.version < X.X that made the code longer, just an example I found when I was browsing aroung in the code:
Which if you dropped old IDA support would be just
|
Beta Was this translation helpful? Give feedback.
-
Converting this to a discussion. |
Beta Was this translation helpful? Give feedback.
-
Having all the code for Python 2 and older IDA makes the code way longer and harder to read.
Is the extra time and effort really worth it?
Beta Was this translation helpful? Give feedback.
All reactions