is there a reliable way to isolate Python2 idiosyncrasies in Python3 scripts ?
is there a reliable way to isolate Python2 idiosyncrasies in Python3 scripts ?
Do you mean code that still works in Python 3 but can be simplified?
Lots of linters do this in whole or in part, though I don't have suggestions for something that does *only* this. You can also look at pyupgrade.
I look to check if a bunch of Python[2] scripts can run with Python3 as-is or with minor changes.
The involve scripts are very basic.
On Thu, Aug 15, 2024 at 12:11:55PM +0200, Jerome BENOIT wrote:
is there a reliable way to isolate Python2 idiosyncrasies in Python3 scripts ?
Do you mean code that still works in Python 3 but can be simplified?
Lots of linters do this in whole or in part, though I don't have
suggestions for something that does *only* this. You can also look at pyupgrade.
Hi,
is there a reliable way to isolate Python2 idiosyncrasies in Python3
scripts ?
I guess that I am looking for Python scripts what checkbashisms(1) is
for shell scripts.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 145:43:30 |
Calls: | 10,383 |
Calls today: | 8 |
Files: | 14,054 |
D/L today: |
2 files (1,861K bytes) |
Messages: | 6,417,685 |