[WARNING] Some users who downloaded the Python 3.5.8 .xz tarball got the wrong version

2019-10-30 Thread Larry Hastings
Due to awkward CDN caching, some users who downloaded the source code tarballs of Python 3.5.8 got a preliminary version instead of the final version.  As best as we can tell, this only affects the .xz release; there are no known instances of users downloading an incorrect version of the .tgz

Distutils - bdist_rpm - specify python interpretter location

2019-10-30 Thread Ian Pilcher
I am trying to use Distutils "bdist_rpm" function on Fedora 30. It is failing, because Fedora does not provide a "python" executable; it provides /usr/bin/python2 and /usr/bin/python3. The error message is: env: 'python': No such file or directory error: Bad exit status from /var/tmp/rpm-tm

Re: How can i stop this Infinite While Loop - Python

2019-10-30 Thread Peter Otten
ferzan saglam wrote: > On Wednesday, October 30, 2019 at 2:19:32 PM UTC, Matheus Saraiva wrote: >> rounds = 0 >> while rounds <= 10: ... > Thanks, it Works superbly. > To get the limit of 10 i wanted, i had to make a slight change: > while rounds <= 9 . That's the (in)famous "off by one"

Re: How can i stop this Infinite While Loop - Python

2019-10-30 Thread ferzan saglam
On Wednesday, October 30, 2019 at 2:19:32 PM UTC, Matheus Saraiva wrote: > m 30/10/2019 08:55, ferzan saglam escreveu: > > total = 0 > > while True: > > > >print('Cost of item') > >item = input() > > > >if item != -1: > > total += int(item) > >else: > > break > > > > print

Re: How can i stop this Infinite While Loop - Python

2019-10-30 Thread Irv Kalb
> On Oct 30, 2019, at 4:55 AM, ferzan saglam wrote: > > I have tried many ways to stop the infinite loop but my program doesn't seem > to stop after 10 items! It keeps going...!) > > --- > total = 0 > while True:

Help on Code logic to remove duplicate mails from webapp mail box

2019-10-30 Thread emanbanerjee
Hi I am working on a project where we make connections to webapp mail and extract subject, sender,body etc from mails and save it in dataframe and insert it n SQL DB. My next challenge is to remove any duplicate mails from mailbox. Could you kindly help me. It can be a new mail which is enterin

Re: How can i stop this Infinite While Loop - Python

2019-10-30 Thread Gunnar Þór Magnússon
> item = input() > if item != -1: If you try this in the REPL, you'll see that 'item' is a string. You're trying to compare it to an integer, which will always fail. The cheapest way to fix this is probably: if item != '-1': Best, G -- https://

Re: How can i stop this Infinite While Loop - Python

2019-10-30 Thread Matheus Saraiva
m 30/10/2019 08:55, ferzan saglam escreveu: total = 0 while True: print('Cost of item') item = input() if item != -1: total += int(item) else: break print(total) The program does not stop because its code does not contain any deals that make the loop stop after 10 rounds

Re: How can i stop this Infinite While Loop - Python

2019-10-30 Thread Eko palypse
>From what I understand you want to give the user the possibility to try 10 times or enter -1 to end the script, right? If so, you need to check if item is -1 or total tries are already 10 and in such a case break the loop. No need for an else branch. Note, input returns an str object but you compa

How can i stop this Infinite While Loop - Python

2019-10-30 Thread ferzan saglam
I have tried many ways to stop the infinite loop but my program doesn't seem to stop after 10 items! It keeps going...!) --- total = 0 while True: print('Cost of item')

Re: Fwd: Sudden changes in idle python and my laptop

2019-10-30 Thread Terry Reedy
On 10/30/2019 2:11 AM, dieter wrote: nashrahmehar11 writes: Suddenly,my idle python started to behave abnormally Possibility 1: a cosmic ray or a power surge scrambled some bits and you need to run chkdsk (on Windows) or equivalent to repair them. Possibility 2: you altered the system some

return a ctypes object to C

2019-10-30 Thread Arnaud Loonstra
Hi all, I'm trying to wrap my head around the ctypes API. I have a C structure I wish to create in Python and then return from python to C. So a python method is called from C and needs to return an object which we then process in C again. I have a binding to access and create the C methods

Re: Help on Code logic to remove duplicate mails from webapp mail box

2019-10-30 Thread Chris Angelico
On Wed, Oct 30, 2019 at 6:36 PM eman banerjee wrote: > > On Wednesday, 30 October 2019 12:40:06 UTC+5:30, eman banerjee wrote: > > Hi > > > > I am working on a project where we make connections to webapp mail and > > extract subject, sender,body etc from mails and save it in dataframe and > > i

Re: Help on Code logic to remove duplicate mails from webapp mail box

2019-10-30 Thread eman banerjee
On Wednesday, 30 October 2019 12:40:06 UTC+5:30, eman banerjee wrote: > Hi > > I am working on a project where we make connections to webapp mail and > extract subject, sender,body etc from mails and save it in dataframe and > insert it n SQL DB. > > My next challenge is to remove any duplicat