Re: Python2 idiosyncrasies in Python3 scripts

2024-08-15 Thread Bastian Venthur
On 15.08.24 12:11, Jerome BENOIT wrote: 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. I have good experience with 2to3 (https://docs.python.org/3/library/2to3

Re: Python2 idiosyncrasies in Python3 scripts

2024-08-15 Thread Andrey Rakhmatullin
On Thu, Aug 15, 2024 at 01:11:23PM +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

Re: Python2 idiosyncrasies in Python3 scripts

2024-08-15 Thread Jerome BENOIT
Hello Andrey, thanks for your reply. On 15/08/2024 12:56, Andrey Rakhmatullin wrote: 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

Re: Python2 idiosyncrasies in Python3 scripts

2024-08-15 Thread Alexandre Detiste
cal now. The tools that generate d/control could be trimmed too. Debian Code Search can help for both. Greetings Le jeu. 15 août 2024, 12:57, Andrey Rakhmatullin a écrit : > On Thu, Aug 15, 2024 at 12:11:55PM +0200, Jerome BENOIT wrote: > > is there a reliable way to isolate Python2 idiosy

Re: Python2 idiosyncrasies in Python3 scripts

2024-08-15 Thread Andrey Rakhmatullin
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 suggest

Python2 idiosyncrasies in Python3 scripts

2024-08-15 Thread Jerome BENOIT
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. Cheers, Jerone