Re: keying by identity in dict and set

2019-10-28 Thread Peter J. Holzer
On 2019-10-20 19:31:43 +0200, Steve White wrote: > The point is, I don't think __eq__() is ever called in a situation as > described in my post, This is only guaranteed if the hash is actually stored within the dict. This seems to be the case in the CPython implementation, but there are other ways

Re: keying by identity in dict and set

2019-10-28 Thread Steve White
Hi Chris, I'm afraid you've missed my point. As I said in the initial post, I have read the documentation. I think the documentation does not adequately explain how the hashtable (or hashtables generally) work internally. I think that in fact, if __hash__() returns a unique integer for each key

Re: keying by identity in dict and set

2019-10-28 Thread Chris Angelico
On Mon, Oct 28, 2019 at 7:34 PM Steve White wrote: > > Hi Chris, > > I'm afraid you've missed my point. As I said in the initial post, I > have read the documentation. > > I think the documentation does not adequately explain how the > hashtable (or hashtables generally) work internally. > > I th

Re: keying by identity in dict and set

2019-10-28 Thread Paul Moore
On Mon, 28 Oct 2019 at 10:01, Steve White wrote: > > Hi Chris, > > I'm afraid you've missed my point. As I said in the initial post, I > have read the documentation. > > I think the documentation does not adequately explain how the > hashtable (or hashtables generally) work internally. As stated

Re: fileinput

2019-10-28 Thread Peter J. Holzer
On 2019-10-25 22:12:23 +0200, Pascal wrote: > for line in fileinput.input(source): > print(line.strip()) > > --- > > python3.7.4 myscript.py myfile.log > Traceback (most recent call last): > ... > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position 799: >

Installing Python 3.8 on PC with Python 3.7. How to do with version conflicts?

2019-10-28 Thread Dott. Ugo Donini
I cannot use Python 3.8 on my PC with installed Python 3.7. Is it possible to update the existing Python 3.7 without reinstalling Python 3.8. Conflicts problems. Thankyou Ugo Donini Inviato da Posta per Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Fwd: Sudden changes in idle python and my laptop

2019-10-28 Thread nashrahmehar11
Sent from my Samsung Galaxy smartphone. Original message From: NASHRAH RAZA Date: 26/10/2019 7:32 p.m. (GMT+05:30) To: python-list@python.org Subject: Sudden changes in idle python and my laptop Suddenly,my idle python started to behave abnormally and when i closed and

IDLE is not working

2019-10-28 Thread Ehtesham Ul Haque
-- https://mail.python.org/mailman/listinfo/python-list

Internal Server Error when trying to access WebTours (an Application built in Strawberry perl)

2019-10-28 Thread Kishore m
Hi Team, I have installed Python 64 bit 2 days back and had to uninstall Python as I got below error with webtours application built in Strawberry Perl which im using from an year without any issue. *Problem Statement:* Internal Server Error when trying to access WebTours *Error message in webto

how fix the error no2 mange.py

2019-10-28 Thread ankur
Please sir reply me how to fix this problem. Python is very good language .at I install Django Poperly (dijango.admin) is work but not run server. Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

(New to Python) Shopping List Code

2019-10-28 Thread ferzan saglam
How can I stop this code when -1 is typed or at a maximum item count of ten. At the moment the code seems to be in a infinite loop meaning it keeps on asking for an entry until -1 is typed total = 0 while True:

Re: (New to Python) Shopping List Code

2019-10-28 Thread Bev In TX
Bev > On Oct 28, 2019, at 8:42 AM, ferzan saglam wrote: > > How can I stop this code when -1 is typed or at a maximum item count of ten. > At the moment the code seems to be in a infinite loop meaning it keeps on > asking for an entry until -1 is typed > > > total = 0

Re: (New to Python) Shopping List Code

2019-10-28 Thread Bev In TX
> On Oct 28, 2019, at 8:42 AM, ferzan saglam wrote: > > How can I stop this code when -1 is typed or at a maximum item count of ten. > At the moment the code seems to be in a infinite loop meaning it keeps on > asking for an entry until -1 is typed > > > total = 0

Re: IDLE is not working

2019-10-28 Thread Igor Korot
Hi, On Mon, Oct 28, 2019 at 8:01 AM Ehtesham Ul Haque wrote: > > It works for me and 99.9% of people that uses Python! What exactly doesn't work? Thank you. > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list

Re: (New to Python) Shopping List Code

2019-10-28 Thread Peter J. Holzer
On 2019-10-28 06:42:46 -0700, ferzan saglam wrote: > How can I stop this code when -1 is typed or at a maximum item count of ten. I'm just rewriting that sentence in Python: > At the moment the code seems to be in a infinite loop meaning it keeps on > asking for an entry until -1 is typed > >

Re: Installing Python 3.8 on PC with Python 3.7. How to do with version conflicts?

2019-10-28 Thread DL Neil via Python-list
Dottore, On 28/10/19 7:37 AM, Dott. Ugo Donini wrote: I cannot use Python 3.8 on my PC with installed Python 3.7. Is it possible to update the existing Python 3.7 without reinstalling Python 3.8. Conflicts problems. Thankyou Ugo Donini Inviato da Posta per Windows 10 If the question is abou

Re: Installing Python 3.8 on PC with Python 3.7. How to do with version conflicts?

2019-10-28 Thread MRAB
On 2019-10-28 18:27, DL Neil via Python-list wrote: Dottore, On 28/10/19 7:37 AM, Dott. Ugo Donini wrote: I cannot use Python 3.8 on my PC with installed Python 3.7. Is it possible to update the existing Python 3.7 without reinstalling Python 3.8. Conflicts problems. Thankyou Ugo Donini Invia

Re: (New to Python) Shopping List Code

2019-10-28 Thread Andrea D'Amore
On Mon, 28 Oct 2019 at 14:42, ferzan saglam wrote: > How can I stop this code when -1 is typed or at a maximum item count of ten. > At the moment the code seems to be in a infinite loop meaning it keeps on > asking for an entry until -1 is typed > item = input() > item != -1: Try these

Re: Installing Python 3.8 on PC with Python 3.7. How to do with version conflicts?

2019-10-28 Thread Terry Reedy
On 10/28/2019 2:27 PM, DL Neil via Python-list wrote: Dottore, On 28/10/19 7:37 AM, Dott. Ugo Donini wrote: I cannot use Python 3.8 on my PC with installed Python 3.7. Is it possible to update the existing Python 3.7 without reinstalling Python 3.8. Conflicts problems. Thankyou Ugo Donini In

Re: Installing Python 3.8 on PC with Python 3.7. How to do with version conflicts?

2019-10-28 Thread Terry Reedy
On 10/28/2019 2:47 PM, MRAB wrote: On 28/10/19 7:37 AM, Dott. Ugo Donini wrote: I cannot use Python 3.8 on my PC with installed Python 3.7. Is it possible to update the existing Python 3.7 without reinstalling If you're using Windows, you'd just install the different Python versions into di

Re: uses both shell and python codes in one script.

2019-10-28 Thread Peter J. Holzer
On 2019-10-04 09:15:41 +1000, Chris Angelico wrote: > On Fri, Oct 4, 2019 at 9:08 AM Cameron Simpson wrote: > > On 03Oct2019 23:55, Chris Angelico wrote: > > >In the shell, the first two are an empty string, then ':' is a > > >colon, which introduces a label (the fact that it's in quotes is > > >

Re: Installing Python 3.8 on PC with Python 3.7. How to do with version conflicts?

2019-10-28 Thread MRAB
On 2019-10-28 19:42, Terry Reedy wrote: On 10/28/2019 2:47 PM, MRAB wrote: On 28/10/19 7:37 AM, Dott. Ugo Donini wrote: I cannot use Python 3.8 on my PC with installed Python 3.7. Is it possible to update the existing Python 3.7 without reinstalling If you're using Windows, you'd just insta

[RELEASED] Python 3.5.8 is (finally) released

2019-10-28 Thread Larry Hastings
On behalf of the Python development community, I'm relieved to announce the availability of Python 3.5.8. Python 3.5 is in "security fixes only" mode.  This new version only contains security fixes, not conventional bug fixes, and it is a source-only release. You can find Python 3.5.8 here