Re: [python-uk] Python 2.7 code: a spring-clean

2019-12-03 Thread Steve - Gadget Barnes
Hi Richard, One trick that I have used is to use os.walk to find all of the python files and then tried parsing them with ast - this at least throws an error for the files that are completely broken for python 3. Another is to use the python 3 version pylint on the files/project this finds more

[python-uk] Python 2.7 code: a spring-clean

2019-12-03 Thread Richard Barran
Hi all, With the end-of-life of Python 2 upon us, I wondered about cleaning up code that has (had!) to support both Python 2 and Python 3. Some of it is easy (e.g. look for any references to the ‘six’ library), some of it is relatively easy (e.g. super(Foobar, self) ) and… actually, there could

Re: [python-uk] London Python Code Dojo next Thursday at 2Sixty/Essence

2019-12-03 Thread Gautier HAYOUN
Hi all, We have a bunch of tickets left for the dojo this coming Thursday so grab yourself a ticket: https://www.eventbrite.co.uk/e/copy-of-london-python-code-dojo-season-11-episode-4-tickets-84110567973 ! Gautier Le jeu. 28 nov. 2019 à 13:38, Gautier HAYOUN a écrit : > Python-UK, > > The Lo