Re: Python 2.7 and 3.9

2021-02-18 Thread Pieter van Oostrum
Ethan Furman writes: > On 2/16/21 12:09 PM, Kevin M. Wilson via Python-list wrote: > >> My employer has hundreds of scripts in 2.7, but I'm writing new >> scripts in 3.9! I'm running into 'invalid syntax' errors.I have to >> maintain the 'Legacy' stuff, and I need to mod the path et al., to >> ex

Re: Python 2.7 and 3.9

2021-02-17 Thread J. Pic
The best would be to upgrade the scripts, did you try them with 2to3 ? It should do most of the work, if not all. https://docs.python.org/3/library/2to3.html -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2.7 and 3.9

2021-02-17 Thread MRAB
On 2021-02-17 14:09, Thomas Jollans wrote: On 16/02/2021 22:16, Ethan Furman wrote: Kevin, please reply to the list (preferably Reply-to-list, or Reply-all), that way others can chime in with help. On 2/16/21 12:55 PM, Kevin M. Wilson wrote: Windows 7 OS, and typically run in conjunction with

Re: Python 2.7 and 3.9

2021-02-17 Thread Thomas Jollans
On 16/02/2021 22:16, Ethan Furman wrote: Kevin, please reply to the list (preferably Reply-to-list, or Reply-all), that way others can chime in with help. On 2/16/21 12:55 PM, Kevin M. Wilson wrote: Windows 7 OS, and typically run in conjunction with testing SSD', as for stand alone scripts.

Re: Python 2.7 and 3.9

2021-02-16 Thread Richard Damon
On 2/16/21 4:16 PM, Ethan Furman wrote: > Kevin, please reply to the list (preferably Reply-to-list, or > Reply-all), that way others can chime in with help. > > On 2/16/21 12:55 PM, Kevin M. Wilson wrote: > >> Windows 7 OS, and typically run in conjunction with testing SSD', as >> for stand alone

Re: Python 2.7 and 3.9

2021-02-16 Thread Ethan Furman
Kevin, please reply to the list (preferably Reply-to-list, or Reply-all), that way others can chime in with help. On 2/16/21 12:55 PM, Kevin M. Wilson wrote: Windows 7 OS, and typically run in conjunction with testing SSD', as for stand alone scripts. Those require: python BogusFile.py. I too

Re: Python 2.7 and 3.9

2021-02-16 Thread Ethan Furman
On 2/16/21 12:09 PM, Kevin M. Wilson via Python-list wrote: My employer has hundreds of scripts in 2.7, but I'm writing new scripts in 3.9! I'm running into 'invalid syntax' errors.I have to maintain the 'Legacy' stuff, and I need to mod the path et al., to execute 3.7 w/o doing damage to the

Python 2.7 and 3.9

2021-02-16 Thread Kevin M. Wilson via Python-list
My employer has hundreds of scripts in 2.7, but I'm writing new scripts in 3.9! I'm running into 'invalid syntax' errors.I have to maintain the 'Legacy' stuff, and I need to mod the path et al., to execute 3.7 w/o doing damage to the 'Legacy' stuff...IDEA' are Welcome! KMW John 1:4  "In him was