Re: Multiple comparisons in a single statement

2020-03-12 Thread John Pote
On 12/03/2020 18:08, Chris Angelico wrote: On Fri, Mar 13, 2020 at 4:55 AM Stephen Tucker wrote: A quickie (I hope!). I am running Python 2.7.10 (and, yes, I know, support for it has been withdrawn.) This is the same in Python 3. I have three tuples that have been generated separately and

EuroPython 2020 and COVID-19

2020-03-12 Thread M.-A. Lemburg
As you probably already know, the Coronavirus is spreading throughout Europe and we wanted to give you an update on our current plans around on the situation. We will update this blog post as new information becomes available: https://blog.europython.eu/post/612393987829039104/europython-2020-and-

Re: Lock acquisition by the same thread - deadlock protection

2020-03-12 Thread Dieter Maurer
Yonatan wrote at 2020-3-11 16:24 +0200: >That code I'm talking about didn't require a reentrant lock - the >algorithm really wasn't reentrant. > >Let me clarify my point: I'm wondering why the non-reentrant lock >doesn't raise an exception immediately on this >erroneous situation. >I thought it cou

Re: Multiple comparisons in a single statement

2020-03-12 Thread MRAB
On 2020-03-12 18:08, Chris Angelico wrote: On Fri, Mar 13, 2020 at 4:55 AM Stephen Tucker wrote: A quickie (I hope!). I am running Python 2.7.10 (and, yes, I know, support for it has been withdrawn.) This is the same in Python 3. I have three tuples that have been generated separately and

Re: Multiple comparisons in a single statement

2020-03-12 Thread Chris Angelico
On Fri, Mar 13, 2020 at 4:55 AM Stephen Tucker wrote: > > A quickie (I hope!). > > I am running Python 2.7.10 (and, yes, I know, support for it has been > withdrawn.) This is the same in Python 3. > I have three tuples that have been generated separately and I want to check > that they are ident

Multiple comparisons in a single statement

2020-03-12 Thread Stephen Tucker
A quickie (I hope!). I am running Python 2.7.10 (and, yes, I know, support for it has been withdrawn.) I have three tuples that have been generated separately and I want to check that they are identical. all I want to do is to terminate the program and report an error if all three are not identic

Re: using classes

2020-03-12 Thread Pieter van Oostrum
joseph pareti writes: > thank you, that fixes it. I also noticed that both statements work: > > super(PKW, self).__init__(bez,ge) > > or > >super().__init__(bez,ge) The first is the required Python 2 calling (at least the first argument is required). The second way can be used

Re: using classes

2020-03-12 Thread Barry
> On 12 Mar 2020, at 14:28, joseph pareti wrote: > > thank you, that fixes it. I also noticed that both statements work: > > super(PKW, self).__init__(bez,ge) This form is for python 2 compatibility. > > or > > super().__init__(bez,ge) This is the python 3 way. If you do not

Re: Python question

2020-03-12 Thread Michael Torrie
On 3/11/20 8:47 PM, DL Neil via Python-list wrote: > Didn't someone once claim "do no harm"? > > There are two sides to every story! Rather than changing the (Discussion > List) server, which affects everyone; ask those who don't like Google's > tactics/behavior to change their (email) client!

Re: using classes

2020-03-12 Thread joseph pareti
thank you, that fixes it. I also noticed that both statements work: super(PKW, self).__init__(bez,ge) or super().__init__(bez,ge) Am Do., 12. März 2020 um 12:58 Uhr schrieb MRAB : > On 2020-03-12 10:54, joseph pareti wrote: > > The following code that uses a class 'Fahrzeug' an

Re: using classes

2020-03-12 Thread MRAB
On 2020-03-12 10:54, joseph pareti wrote: The following code that uses a class 'Fahrzeug' and an inherited class 'PKW' runs correctly. However, if I use the 'super ' statement in in the PKW class, it ends with the following error message: *Traceback (most recent call last): File "erben_a.py",

Re: link to venv python sees a different sys.path

2020-03-12 Thread Dieter Maurer
Robin Becker wrote at 2020-3-12 10:25 +: > ... >I want many different versions of python all in one place to use for testing. I contribute to the `zopefoundation` projects. They, too, have a need to test with many different Python versions -- and use "tox" for it. Maybe, "tox" can also help so

using classes

2020-03-12 Thread joseph pareti
The following code that uses a class 'Fahrzeug' and an inherited class 'PKW' runs correctly. However, if I use the 'super ' statement in in the PKW class, it ends with the following error message: *Traceback (most recent call last): File "erben_a.py", line 19, in fiat = PKW("Fiat Marea",

Re: link to venv python sees a different sys.path

2020-03-12 Thread Robin Becker
On 12/03/2020 09:19, Dieter Maurer wrote: Let me try again: When you start "python", its "site" module extends "sys.path" to include an appropriate "site-packages". For this, it uses a heuristic based on the path with which you have called the interpreter: i.e. it tries to use dirname(

Re: link to venv python sees a different sys.path

2020-03-12 Thread Dieter Maurer
Robin Becker wrote at 2020-3-12 09:07 +: >On 11/03/2020 17:24, Dieter Maurer wrote: >> Robin Becker wrote at 2020-3-11 15:26 +: >>> I'm trying to understand why python 3.8.2 venv behaves differently when it >>> is executed va a link >>> >>> Make the env rptlab@everest:~/code/hg-repos

Re: link to venv python sees a different sys.path

2020-03-12 Thread Robin Becker
On 11/03/2020 17:24, Dieter Maurer wrote: Robin Becker wrote at 2020-3-11 15:26 +: I'm trying to understand why python 3.8.2 venv behaves differently when it is executed va a link Make the env rptlab@everest:~/code/hg-repos $ python38 -mvenv __py__/382v ... so the linked versio

Re: Python question

2020-03-12 Thread Souvik Dutta
Ya at least I thought that. On Thu, Mar 12, 2020, 12:45 PM Mike Dewhirst wrote: > On 12/03/2020 1:47 pm, DL Neil via Python-list wrote: > > On 12/03/20 3:03 AM, Rhodri James wrote: > >> On 11/03/2020 04:06, Michael Torrie wrote: > >>> On 3/10/20 6:49 PM, Souvik Dutta wrote: > What about mov

Re: Python question

2020-03-12 Thread Mike Dewhirst
On 12/03/2020 1:47 pm, DL Neil via Python-list wrote: On 12/03/20 3:03 AM, Rhodri James wrote: On 11/03/2020 04:06, Michael Torrie wrote: On 3/10/20 6:49 PM, Souvik Dutta wrote: What about moving on to a social media app completely made in pythoj for python? No thanks. I don't want to be on