Re: Python Program Help

2020-07-22 Thread Elias Fotinis
On 21/07/2020 22:25, Terry Reedy wrote: The only way I discovered to get that error, on Windows, is to hit control-D in response to the prompt. Slight correction: On Windows, EOF is signaled with Ctrl-Z. This is the same as hitting F6 in the legacy console (can't check with Win10 at the momen

Re: Python Program Help

2020-07-21 Thread dn via Python-list
On 7/22/20 7:16 AM, Dennis Lee Bieber wrote: On Tue, 21 Jul 2020 06:38:55 -0700 (PDT), ksikor14--- via Python-list declaimed the following: Since this is apparently a homework assignment, I'm not going to provide fixes -- just some comments. Logic error? (not entirely poking-fun: is

Re: Python Program Help

2020-07-21 Thread Terry Reedy
On 7/21/2020 11:08 AM, MRAB wrote: On 2020-07-21 14:38, ksikor14--- via Python-list wrote: I can't seem to figure out what I am doing wrong.  I have tried everything.  This is what it is supposed to do: [snip] I get this error: Traceback (most recent call last):    File "main.py", line 1, in

Re: Python Program Help

2020-07-21 Thread MRAB
On 2020-07-21 14:38, ksikor14--- via Python-list wrote: I can't seem to figure out what I am doing wrong. I have tried everything. This is what it is supposed to do: (1) Prompt the user for a title for data. Output the title. (1 pt) Ex: Enter a title for the data: Number of Novels Authored

Re: Python program to phone?

2019-02-08 Thread Mario R. Osorio
equires Java, does it? >> Is it exclusively java? >> >> = >> Footnote: >> Zamboni locks up after running into large patch of loose teeth. >> >> -----Original Message- >> From: Python-list On >> Behalf Of Mario R. Os

Re: Python program to phone?

2019-02-08 Thread Mario R. Osorio
oni locks up after running into large patch of loose teeth. > > -Original Message- > From: Python-list On > Behalf Of Mario R. Osorio > Sent: Tuesday, February 5, 2019 8:58 AM > To: python-list@python.org > Subject: Re: Python program to phone? > > > Hi there S

Re: Python program to phone?

2019-02-07 Thread Michael Torrie
On 02/07/2019 09:00 PM, Steve wrote: > BeeWare looks as if it requires Java, does it? > Is it exclusively java? Kind of. You do your coding in Python, then that's compiled to python byte code, which is then translated to Java byte code. You'll need the Android SDK, even if you're not using Java

RE: Python program to phone?

2019-02-07 Thread Steve
@python.org Subject: Re: Python program to phone? Hi there Steve. Did you check BeeWare? (https://pybee.org/) -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list

Re: Python program to phone?

2019-02-07 Thread Jack Dangler
On 2/4/19 3:20 PM, Steve wrote: I have written my first python program (600 lines!) to help control my blood sugar and it has been so successful that my A1c dropped form 9.3 to an impressive 6.4. It will be much more useful if I had it on my phone. (MotoG, Android) The .py file reads/writes t

Re: Python program to phone?

2019-02-06 Thread Alister via Python-list
On Mon, 04 Feb 2019 15:20:58 -0500, Steve wrote: > I have written my first python program (600 lines!) to help control my > blood sugar and it has been so successful that my A1c dropped form 9.3 > to an impressive 6.4. It will be much more useful if I had it on my > phone. (MotoG, Android) The .

Re: Python program to phone?

2019-02-05 Thread Mario R. Osorio
Hi there Steve. Did you check BeeWare? (https://pybee.org/) -- https://mail.python.org/mailman/listinfo/python-list

Re: Python program to phone?

2019-02-05 Thread Rhodri James
On 04/02/2019 23:12, Chris Roy-Smith wrote: On 5/2/19 7:20 am, Steve wrote: P.S.  Yes, I tried to post this about two weeks ago but could not seem to respond to the replies I received.  I could contact one or two individuals but apparently not the masses.  How do I find out how this list works

Re: Python program to phone?

2019-02-05 Thread Abdur-Rahmaan Janhangeer
see pydroid and qpython on play store.2 Abdur-Rahmaan Janhangeer http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: Python program to phone?

2019-02-04 Thread Chris Roy-Smith
On 5/2/19 7:20 am, Steve wrote: I have written my first python program (600 lines!) to help control my blood sugar and it has been so successful that my A1c dropped form 9.3 to an impressive 6.4. It will be much more useful if I had it on my phone. (MotoG, Android) The .py file reads/writes to

Re: Python program ends with 154 snakes dead; should it continue?

2017-06-06 Thread Chris Angelico
On Wed, Jun 7, 2017 at 8:43 AM, Gregory Ewing wrote: > Chris Angelico wrote: >> >> Well, no. Once a Python program ends, it should not continue. At that >> point, you're supposed to go back to the OS. > > > Well, the OS is a program, too. True, but I don't know of any OS written in Python. I hav

Re: Python program ends with 154 snakes dead; should it continue?

2017-06-06 Thread Gregory Ewing
Chris Angelico wrote: Well, no. Once a Python program ends, it should not continue. At that point, you're supposed to go back to the OS. Well, the OS is a program, too. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Python program ends with 154 snakes dead; should it continue?

2017-06-06 Thread Chris Angelico
On Wed, Jun 7, 2017 at 1:07 AM, Larry Martell wrote: > I saw this headline and my first thought was what kind of program was this??? > > http://www.mypalmbeachpost.com/weather/new-python-program-ends-with-154-snakes-dead-should-continue/UtI3GeaBflGHEZzlfoHYgN/ > > We now return you to your regular

Re: Python program ends with 154 snakes dead; should it continue?

2017-06-06 Thread Skip Montanaro
> I saw this headline and my first thought was what kind of program was this??? > > http://www.mypalmbeachpost.com/weather/new-python-program-ends-with-154-snakes-dead-should-continue/UtI3GeaBflGHEZzlfoHYgN/ If only getting rid of invasive species was a SMOP. Skip -- https://mail.python.org/mail

Re: Python program

2016-04-02 Thread Chris Angelico
On Sun, Apr 3, 2016 at 5:14 AM, Pythonnoob via Python-list wrote: > I have written a program in Python track the number of visits customers make > to our business based upon their account numbers. Right now we are doing this > via paper. We have 7 computers. Each with a different user. We do hav

Re: Python program on induction heating

2015-09-26 Thread MRAB
On 2015-09-27 02:32, Steven D'Aprano wrote: Hi, and welcome, On Sun, 27 Sep 2015 06:28 am, Roïya souissi wrote: Hello, I have realized last year a mini project on induction heating and its application onto thermoelectricity. To back up my theoretical work, I created a python program ( I used m

Re: Python program on induction heating

2015-09-26 Thread Steven D'Aprano
Hi, and welcome, On Sun, 27 Sep 2015 06:28 am, Roïya souissi wrote: > Hello, > I have realized last year a mini project on induction heating and its > application onto thermoelectricity. To back up my theoretical work, I > created a python program ( I used mainly dictionnaries, PIL library and >

Re: python program without stackless.run()

2015-06-18 Thread ravi
On Friday, June 19, 2015 at 1:41:36 AM UTC+5:30, Ian wrote: > On Thu, Jun 18, 2015 at 1:47 PM, ravi wrote: > > I could not understand how the below program executes function "fun" > > without calling stackless.run() in the program? Here "fun" runs as a > > tasklet and as per my knowledge for th

Re: python program without stackless.run()

2015-06-18 Thread Ian Kelly
On Thu, Jun 18, 2015 at 1:47 PM, ravi wrote: > I could not understand how the below program executes function "fun" without > calling stackless.run() in the program? Here "fun" runs as a tasklet and as > per my knowledge for that stackless.run() is must. You seem to have a lot of questions abo

Re: Python program distribution - a source of constant friction

2014-01-19 Thread Göktuğ Kayaalp
On Mon, Jan 06, 2014 at 11:39:13PM +, Nicholas Cole wrote: > This email is inspired by a YouTube video of a talk that Jessica McKellar Could you please share the link to the video please? > recently gave. I was struck by her analysis that it is hard to remain a > popular language (as Python

Re: Python program distribution - a source of constant friction

2014-01-16 Thread Nicholas Cole
On Tue, Jan 7, 2014 at 12:09 AM, Nicholas Cole wrote: [SNIP] > Even so, things like that are harder to create than they > could be, or less prominently documented than one might have expected. > > Case in point: I have an application a friend/colleague of mine would like > to look at. I've no i

Re: Python program distribution - a source of constant friction

2014-01-06 Thread Nicholas Cole
On Monday, 6 January 2014, Chris Angelico wrote: > On Tue, Jan 7, 2014 at 10:39 AM, Nicholas Cole > > > wrote: > > But what about the end-user? The end-user who just wants a blob (he > doesn't > > care about what language it is in - he just wants to solve the problem at > > hand with your shiny,

Re: Python program distribution - a source of constant friction

2014-01-06 Thread Chris Angelico
On Tue, Jan 7, 2014 at 10:39 AM, Nicholas Cole wrote: > But what about the end-user? The end-user who just wants a blob (he doesn't > care about what language it is in - he just wants to solve the problem at > hand with your shiny, cool, problem-solving application). This is where OS-provided pa

Re: Python program termination and exception catching

2011-04-10 Thread Jason Swails
On Sun, Apr 10, 2011 at 4:49 PM, Jerry Hill wrote: > On Sun, Apr 10, 2011 at 3:25 PM, Jason Swails > wrote: > > > > Hello everyone, > > > > This may sound like a bit of a strange desire, but I want to change the > way in which a python program quits if an exception is not caught. The > program

Re: Python program termination and exception catching

2011-04-10 Thread Jerry Hill
On Sun, Apr 10, 2011 at 3:25 PM, Jason Swails wrote: > > Hello everyone, > > This may sound like a bit of a strange desire, but I want to change the way > in which a python program quits if an exception is not caught.  The program > has many different classes of exceptions (for clarity purposes)

Re: Python program termination and exception catching

2011-04-10 Thread Benjamin Kaplan
On Sun, Apr 10, 2011 at 4:05 PM, Jason Swails wrote: > > > On Sun, Apr 10, 2011 at 12:34 PM, Laszlo Nagy wrote: >> >> 2011.04.10. 21:25 keltezéssel, Jason Swails írta: >> >> Hello everyone, >> >> This may sound like a bit of a strange desire, but I want to change the >> way in which a python prog

Re: Python program termination and exception catching

2011-04-10 Thread Jason Swails
On Sun, Apr 10, 2011 at 12:34 PM, Laszlo Nagy wrote: > 2011.04.10. 21:25 keltezéssel, Jason Swails írta: > > Hello everyone, > > This may sound like a bit of a strange desire, but I want to change the > way in which a python program quits if an exception is not caught. The > program has many di

Re: Python program termination and exception catching

2011-04-10 Thread Laszlo Nagy
2011.04.10. 21:25 keltezéssel, Jason Swails írta: Hello everyone, This may sound like a bit of a strange desire, but I want to change the way in which a python program quits if an exception is not caught. The program has many different classes of exceptions (for clarity purposes), and they'r

Re: Python program as daemon?

2008-07-28 Thread James Harris
On 25 Jul, 20:05, sturlamolden <[EMAIL PROTECTED]> wrote: > On Jul 25, 8:37 pm, Johny <[EMAIL PROTECTED]> wrote: > > > Is it possible to run a Python program as daemon? > > Thanks > > Here is an example on how to run a Python script as a Unix daemon: > > http://svn.plone.org/svn/collective/bda.daem

Re: Python program as daemon?

2008-07-28 Thread Diez B. Roggisch
Lawrence D'Oliveiro schrieb: In message <[EMAIL PROTECTED]>, sturlamolden wrote: Basically it forks twice ... What's the advantage of forking twice over forking once and calling setsid? http://code.activestate.com/recipes/278731/ See the comments. Diez -- http://mail.python.org/mailman/li

Re: Python program as daemon?

2008-07-27 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, sturlamolden wrote: > Basically it forks twice ... What's the advantage of forking twice over forking once and calling setsid? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python program as daemon?

2008-07-25 Thread sturlamolden
On Jul 25, 8:37 pm, Johny <[EMAIL PROTECTED]> wrote: > Is it possible to run a Python program as daemon? > Thanks Here is an example on how to run a Python script as a Unix daemon: http://svn.plone.org/svn/collective/bda.daemon/trunk/bda/daemon/daemon.py Basically it forks twice and redirects op

Re: Python program as daemon?

2008-07-25 Thread Brett g Porter
Johny wrote: Is it possible to run a Python program as daemon? Sure -- see http://code.activestate.com/recipes/66012/ for an example (and some useful stuff in the comments.) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python program as daemon?

2008-07-25 Thread Sebastian "lunar" Wiesner
Johny <[EMAIL PROTECTED]>: > Is it possible to run a Python program as daemon? You can write daemons in basically any language out there. -- Freedom is always the freedom of dissenters. (Rosa Luxemburg) -- http://mail.python.org/mailman/listinfo/python-list

Re: python program deleted

2008-03-28 Thread jim-on-linux
thanks for the responses. I put the files in an ftp site and all is well. jim-on-linux -- http://mail.python.org/mailman/listinfo/python-list

Re: python program deleted

2008-03-27 Thread Gabriel Genellina
En Thu, 27 Mar 2008 19:08:05 -0300, jim-on-linux <[EMAIL PROTECTED]> escribió: > I developed a python program and used py2exe > to create the exe. > > I zip the entire package and email it to my > clients. > > Some clients get the zip file, unzip the > package and everything works fine. > > And

Re: python program deleted

2008-03-27 Thread Steven D'Aprano
On Thu, 27 Mar 2008 18:08:05 -0400, jim-on-linux wrote: > py users, > > I developed a python program and used py2exe to create the exe. > > I zip the entire package and email it to my clients. > > Some clients get the zip file, unzip the package and everything works > fine. > > And some client

Re: Python program that validates an url against w3c markup validator

2006-11-29 Thread Nikita the Spider
In article <[EMAIL PROTECTED]>, "yaru22" <[EMAIL PROTECTED]> wrote: > I'd like to create a program that validates bunch of urls against the > w3c markup validator (http://validator.w3.org/) and store the result in > a file. > > Since I don't know network programming, I have no idea how to start

Re: Python program that validates an url against w3c markup validator

2006-11-29 Thread Gabriel Genellina
At Wednesday 29/11/2006 02:29, yaru22 wrote: I'd like to create a program that validates bunch of urls against the w3c markup validator (http://validator.w3.org/) and store the result in a file. Since I don't know network programming, I have no idea how to start coding this program. Why not u

Re: Python program that validates an url against w3c markup validator

2006-11-28 Thread Fredrik Lundh
Fredrik Lundh wrote: > >>> f = urllib.urlopen("http://validator.w3.org/check?uri="; + uri) > >>> print f.headers here's the specification, btw: http://validator.w3.org/docs/api.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Python program that validates an url against w3c markup validator

2006-11-28 Thread Fredrik Lundh
yaru22 wrote: > I'd like to create a program that validates bunch of urls against the > w3c markup validator (http://validator.w3.org/) and store the result in > a file. > > Since I don't know network programming, I have no idea how to start > coding this program. > > I was looking at the python

Re: Python program that validates an url against w3c markup validator

2006-11-28 Thread Bjoern Schliessmann
yaru22 wrote: > I was looking at the python library and thought urllib or urllib2 > may be used to make this program work. > > But I don't know how to send my urls to the w3c validator and get > the result. Another great alternative is using the Twisted framework:

Re: Python program that validates an url against w3c markup validator

2006-11-28 Thread [EMAIL PROTECTED]
urls = [("/tmp/validate1.html", "http://www.theage.com.au";)] for url, outputfile in urls: commandString = 'wget -o %s http://validator.w3.org/check?uri=%s' % (outputfile, url) system.exec(commandString) is one easy way. yaru22 wrote: > I'd like to create a program that validates bunch of