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
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
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"
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
> 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:
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
> 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://
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
>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
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')
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
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
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
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
14 matches
Mail list logo