Re: What is your experience porting Python 2.7.x scripts to Python 3.x?

2019-01-22 Thread Chris Angelico
On Wed, Jan 23, 2019 at 6:10 PM dieter wrote: > > Did 2to3 do its job well > > I have not used "2to3" -- because I doubt, that it can handle > important cases, i.e. when a Python 2 "str" must become a Python 3 bytes > or when a "dict.{keys, values, items}" must be listified. Have you tried? It e

Re: What is your experience porting Python 2.7.x scripts to Python 3.x?

2019-01-22 Thread dieter
"Schachner, Joseph" writes: > ... > For anyone who has moved a substantial bunch of Python 2 to Python 3, can > you please reply with your experience? It can be simple and it can be difficult. I have found "http://python-future.org/compatible_idioms.html"; especially useful. > Did you run in

Re: How to force the path of a lib ?

2019-01-22 Thread dieter
Vincent Vande Vyvre writes: > I am working on a python3 binding of a C++ lib. This lib is installed > in my system but the latest version of this lib introduce several > incompatibilities. So I need to update my python binding. > > I'm working into a virtual environment (py370_venv) python-3.7.0 i

Re: What is your experience porting Python 2.7.x scripts to Python 3.x?

2019-01-22 Thread Cameron Simpson
On 22Jan2019 19:20, Grant Edwards wrote: On 2019-01-22, Schachner, Joseph wrote: For anyone who has moved a substantial bunch of Python 2 to Python 3, can you please reply with your experience? If you used bytes (or raw binary strings) at all (e.g. for doing things like network or serial pro

Re: What is your experience porting Python 2.7.x scripts to Python 3.x?

2019-01-22 Thread Chris Angelico
On Wed, Jan 23, 2019 at 9:43 AM Akkana Peck wrote: > > Grant Edwards writes: > > On 2019-01-22, Schachner, Joseph wrote: > > > > > For anyone who has moved a substantial bunch of Python 2 to Python > > > 3, can you please reply with your experience? > > > > If you used bytes (or raw binary string

Re: What is your experience porting Python 2.7.x scripts to Python 3.x?

2019-01-22 Thread Akkana Peck
Grant Edwards writes: > On 2019-01-22, Schachner, Joseph wrote: > > > For anyone who has moved a substantial bunch of Python 2 to Python > > 3, can you please reply with your experience? > > If you used bytes (or raw binary strings) at all (e.g. for doing > things like network or serial protocol

Re: ttk present but not found for import

2019-01-22 Thread Rich Shepard
On Tue, 22 Jan 2019, cem.i...@compello.com.tr wrote: try as below; import tkinter.ttk as ttk I posted this solution shortly after the first message. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: What is your experience porting Python 2.7.x scripts to Python 3.x?

2019-01-22 Thread Grant Edwards
On 2019-01-22, Schachner, Joseph wrote: > For anyone who has moved a substantial bunch of Python 2 to Python > 3, can you please reply with your experience? If you used bytes (or raw binary strings) at all (e.g. for doing things like network or serial protocols) you're in for a lot of pain. Eve

Re: ttk present but not found for import

2019-01-22 Thread cem . isik
On Sunday, 20 January 2019 02:01:45 UTC+3, Rich Shepard wrote: > I've started to learn tkinter as the GUI widget set I'll use from now on. > While ttk-8.6 is installed here (/usr/lib/tk8.6/ttk), I cannot import it: > > $ python3 > Python 3.6.7 (default, Dec 8 2018, 06:22:57) > [GCC 5.5.0] on li

Re: ttk present but not found for import

2019-01-22 Thread cem . isik
On Sunday, 20 January 2019 02:01:45 UTC+3, Rich Shepard wrote: > I've started to learn tkinter as the GUI widget set I'll use from now on. > While ttk-8.6 is installed here (/usr/lib/tk8.6/ttk), I cannot import it: > > $ python3 > Python 3.6.7 (default, Dec 8 2018, 06:22:57) > [GCC 5.5.0] on li

What is your experience porting Python 2.7.x scripts to Python 3.x?

2019-01-22 Thread Schachner, Joseph
In the company I work for we have a program (free) that runs scripts (that we sell) to test according to particular standards. The program embeds a Python interpreter, and the scripts are Python (which uses functions revealed to Python from within the program). Well, this year must be time ...

How to force the path of a lib ?

2019-01-22 Thread Vincent Vande Vyvre
(Resend because the previous message was incomplete) Hi, I am working on a python3 binding of a C++ lib. This lib is installed in my system but the latest version of this lib introduce several incompatibilities. So I need to update my python binding. I'm working into a virtual environment (

How to force the path of a lib ?

2019-01-22 Thread Vincent Vande Vyvre
I'm working into a virtual environment (py370_venv) python-3.7.0 is installed into .localpythons/lib/python3.7 So, the paths are: # python-3.7.0 ~/.localpythons/lib/python3.7/ # my binding python -> libexiv2 ~/.localpythons/lib/python3.7/site-packages/pyexiv2/*.py ~/.localpythons/lib/python3.7/s

Re: Find and display gif file/s in web browser, according to the passed string, compared to files names in the folder.

2019-01-22 Thread Grant Edwards
On 2019-01-22, Dennis Lee Bieber wrote: > On Mon, 21 Jan 2019 22:49:19 +0100, "pe...@o2.pl" declaimed > the following: > >>Character/s starting from 8 to "*" are called "InitialText". > > Illegal requirement in Windows, and likely also in Linux. "*" is > considered a wild-card character by comman