Re: How to start using python

2020-11-13 Thread Cameron Simpson
On 13Nov2020 15:53, Anthony Steventon wrote: >Thanks for the help from everyone. >Operating system is windows 7. Download installation file is >python-3.7.9-amd64.exe downloaded from python.org. No problems when I run it, >installation successful. >Have tried 2 + 3 with a result of 5 at the comm

Re: How to start using python

2020-11-13 Thread Anthony Steventon
message telling me the entry is undefined. Anthony Steventon. From: Bob Gailer Sent: Thursday, November 12, 2020 8:58 PM To: Anthony Steventon Cc: python list Subject: Re: How to start using python On Nov 12, 2020 10:41 PM, "Anthony Steventon" wrote: > > I am new to Python and

Re: How to start using python

2020-11-13 Thread Bob Gailer
I am not feeling well these days. It is sometimes difficult for me to respond to others the way I would like to. This is a long reply; in my humble opinion is important to read all of it 1-whenever you respond to an email from one of us please include the help list what you can do by reply-all si

Re: How to start using python

2020-11-12 Thread Bob Gailer
On Nov 12, 2020 10:41 PM, "Anthony Steventon" wrote: > > I am new to Python and have downloaded the software onto my pc. There is no shortcut on my desktop. How the heck do I access it to start learning how to program with it? Visit www.Python.Org there should be some links to tutorials that shou

Re: How to start gnuradio

2018-08-01 Thread bengt . tornq
Thank you all for your kind explanations. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to start gnuradio

2018-07-31 Thread Ben Finney
bengt.to...@gmail.com writes: > My gnuradio program does not start in my Mint 17.3 installation. Summary: I believe this is a bug in the package on Mint. (The bug may be inherited from elsewhere, too: maybe in the Debian package, maybe in the PyPI package. That would need more diagnosis to determ

Re: How to start gnuradio

2018-07-31 Thread Ross Wilson
I had a paddle through the manual at https://www.gnuradio.org/doc/doxygen/page_python_blocks.html and apparently some DSP operations use numpy. Ross On Wed, 1 Aug 2018 at 11:56 wrote: > > > After some research I found out that "sudo apt-get install python-numpy" > solved the problem. > > Can an

Re: How to start gnuradio

2018-07-31 Thread bengt . tornq
After some research I found out that "sudo apt-get install python-numpy" solved the problem. Can anyone clarify how python-numpy solves the problem? -- https://mail.python.org/mailman/listinfo/python-list

Re: how to start a python script only once

2010-03-14 Thread Glazner
On Mar 13, 8:45 pm, News123 wrote: > Hi, > > I'd like to make sure, that a certain python program will only be run > once per host. (linux/windows) > > so if the program is started a second time it should just terminate and > let the other one run. > > This does not have to be the fastest solution

Re: how to start a python script only once

2010-03-14 Thread News123
Hi Daniel, One more question: Daniel Fetchinson wrote: >> I'd like to make sure, that a certain python program will only be run >> once per host. (linux/windows) >> >> >> so if the program is started a second time it should just terminate and >> let the other one run. >> >> This does not have t

Re: how to start a python script only once

2010-03-14 Thread News123
Hi Daniel, Daniel Fetchinson wrote: >> I'd like to make sure, that a certain python program will only be run >> once per host. (linux/windows) >> >> >> so if the program is started a second time it should just terminate and >> let the other one run. >> >> This does not have to be the fastest solut

Re: how to start a python script only once

2010-03-14 Thread News123
Hi Francesco, Francesco Bochicchio wrote: > On 13 Mar, 19:45, News123 wrote: >> Hi, >> >> I'd like to make sure, that a certain python program will only be run >> once per host. (linux/windows) >> >> so if the program is started a second time it should just terminate and >> let the other one run.

Re: how to start a python script only once

2010-03-14 Thread Daniel Fetchinson
> I'd like to make sure, that a certain python program will only be run > once per host. (linux/windows) > > > so if the program is started a second time it should just terminate and > let the other one run. > > This does not have to be the fastest solution, but it should be reliable. > > > I have

Re: how to start a python script only once

2010-03-14 Thread Francesco Bochicchio
On 13 Mar, 19:45, News123 wrote: > Hi, > > I'd like to make sure, that a certain python program will only be run > once per host. (linux/windows) > > so if the program is started a second time it should just terminate and > let the other one run. > > This does not have to be the fastest solution,

Re: How to start a transaction?

2009-01-20 Thread M.-A. Lemburg
On 2009-01-20 12:23, Hussein B wrote: > Hey, > I know the basics of interacting with databases in Python. > How to start a transaction in case I want to group a couple of insert > and update statements into a single operation? If you use a Python DB-API compatible database module, then transaction

Re: How to start a transaction?

2009-01-20 Thread Diez B. Roggisch
Hussein B wrote: > Hey, > I know the basics of interacting with databases in Python. > How to start a transaction in case I want to group a couple of insert > and update statements into a single operation? Please read the python database API documentation: http://www.python.org/dev/peps/pep-0249

Re: how to start thread by group?

2008-10-13 Thread [EMAIL PROTECTED]
On Oct 13, 6:54 am, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: > In message <[EMAIL PROTECTED]>, Gabriel > > > > Genellina wrote: > > En Tue, 07 Oct 2008 13:25:01 -0300, Terry Reedy <[EMAIL PROTECTED]> > > escribió: > > >> Lawrence D'Oliveiro wrote: > > >>> In message <[

Re: how to start thread by group?

2008-10-13 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Gabriel Genellina wrote: > En Tue, 07 Oct 2008 13:25:01 -0300, Terry Reedy <[EMAIL PROTECTED]> > escribió: > >> Lawrence D'Oliveiro wrote: >> >>> In message <[EMAIL PROTECTED]>, >>> Gabriel Genellina wrote: >>> Usually it's more efficient to create all the MAX_

Re: how to start thread by group?

2008-10-08 Thread bieffe62
On 7 Ott, 06:37, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 06 Oct 2008 11:24:51 -0300, <[EMAIL PROTECTED]> escribió: > > > On 6 Ott, 15:24, oyster <[EMAIL PROTECTED]> wrote: > >> my code is not right, can sb give me a hand? thanx > > >> for example, I have 1000 urls to be downloaded,

Re: how to start thread by group?

2008-10-07 Thread Gabriel Genellina
En Tue, 07 Oct 2008 13:25:01 -0300, Terry Reedy <[EMAIL PROTECTED]> escribió: Lawrence D'Oliveiro wrote: In message <[EMAIL PROTECTED]>, Gabriel Genellina wrote: Usually it's more efficient to create all the MAX_THREADS at once, and continuously feed them with tasks to be done. Given that

Re: how to start thread by group?

2008-10-07 Thread Terry Reedy
Lawrence D'Oliveiro wrote: In message <[EMAIL PROTECTED]>, Gabriel Genellina wrote: Usually it's more efficient to create all the MAX_THREADS at once, and continuously feed them with tasks to be done. Given that the bottleneck is most likely to be the internet connection, I'd say the "prematu

Re: how to start thread by group?

2008-10-07 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Gabriel Genellina wrote: > Usually it's more efficient to create all the MAX_THREADS at once, and > continuously feed them with tasks to be done. Given that the bottleneck is most likely to be the internet connection, I'd say the "premature optimization is the root

Re: how to start thread by group?

2008-10-06 Thread Gabriel Genellina
En Mon, 06 Oct 2008 11:24:51 -0300, <[EMAIL PROTECTED]> escribió: On 6 Ott, 15:24, oyster <[EMAIL PROTECTED]> wrote: my code is not right, can sb give me a hand? thanx for example, I have 1000 urls to be downloaded, but only 5 thread at one time I would restructure my code with someting l

Re: how to start thread by group?

2008-10-06 Thread bieffe62
On 6 Ott, 15:24, oyster <[EMAIL PROTECTED]> wrote: > my code is not right, can sb give me a hand? thanx > > for example, I have 1000 urls to be downloaded, but only 5 thread at one time > def threadTask(ulr): >   download(url) > > threadsAll=[] > for url in all_url: >      task=threading.Thread(tar

Re: How to Start

2007-09-14 Thread James Stroud
Paul McGuire wrote: > Do "neophytes" just dive in and try stuff? I think a lot of us coming from other fields actually slithered in, in true python style. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to Start

2007-09-14 Thread DouhetSukd
On Sep 13, 4:02 pm, Nikita the Spider <[EMAIL PROTECTED]> wrote: > My $.02 for someone such as yourself > is to deal with Python and as little else as possible. So write your > code in a simple text editor like UltraEdit or Notepad Second that opinion. Use _your_ favorite basic text editor and ru

RE: How to Start

2007-09-14 Thread Sells, Fred
I like eclipse+pydev; although I did pay my dues learning the basics of eclipse. F9 saves file and runs it. If you're an emacs dude, emacs + python mode is pretty good. ctrl-c ctrl-c runs the active buffer. Of course if you don't already know emacs, avoid it like the plague. > -Original Mes

Re: How to Start

2007-09-14 Thread Shawn Milochik
On 9/14/07, James Stroud <[EMAIL PROTECTED]> wrote: > > Here's your recipe: > >1. begin coding until you hit a wall >2. read official tutorial until you figure out a solution >3. experiment in interactive interpreter >4. goto 1. > > I know this sounds obvious, but its the best way t

Re: How to Start

2007-09-13 Thread Paul McGuire
On Sep 13, 4:59 pm, [EMAIL PROTECTED] (Michael R. Copeland) wrote: >Yes, I could fire up the interactive mode and play with some > statements...but I consider that sort of thing for programming > neophytes or experimenting with specific issues. To misquote Francis Bacon, "you would have fis

Re: How to Start

2007-09-13 Thread James Stroud
Michael R. Copeland wrote: >Yes, I could fire up the interactive mode and play with some > statements...but I consider that sort of thing for programming neophytes > or experimenting with specific issues. The interactive interpreter is *the fastest* way to learn, expert, novice, or somewhe

Re: How to Start

2007-09-13 Thread Brandon Barry
On Sep 13, 5:59 pm, [EMAIL PROTECTED] (Michael R. Copeland) wrote: >I've decided that Python is a language/environment I'd like to learn > (I've been a professional programmer for 45+ years), but I really don't > know where and how to start! I have a number of books - and am buying > some more

Re: How to Start

2007-09-13 Thread Tom Brown
On Thursday 13 September 2007 14:59, Michael R. Copeland wrote: >I've decided that Python is a language/environment I'd like to learn > (I've been a professional programmer for 45+ years), but I really don't > know where and how to start! I have a number of books - and am buying > some more -

Re: How to Start

2007-09-13 Thread TheFlyingDutchman
On Sep 13, 2:59 pm, [EMAIL PROTECTED] (Michael R. Copeland) wrote: >I've decided that Python is a language/environment I'd like to learn > (I've been a professional programmer for 45+ years), but I really don't > know where and how to start! I have a number of books - and am buying > some more

Re: How to Start a (thread?) and Leave

2007-03-14 Thread Aahz
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >I'm leaning towards os.startfile right now. I also see some os.spawn >beasties in there but I don't understand those. Try the subprocess module -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft

Re: How to Start a (thread?) and Leave

2007-03-09 Thread [EMAIL PROTECTED]
On Mar 9, 4:57 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > | On Mar 9, 3:25 pm, "abcd" <[EMAIL PROTECTED]> wrote: > Can you tell the page to auto-refresh itself every 15 seconds or so? I > have seen this as a user but don't know

Re: How to Start a (thread?) and Leave

2007-03-09 Thread [EMAIL PROTECTED]
On Mar 9, 4:57 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > Can you tell the page to auto-refresh itself every 15 seconds or so? I > have seen this as a user but don't know if it is special html code or > javascript or java or wh

Re: How to Start a (thread?) and Leave

2007-03-09 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | On Mar 9, 3:25 pm, "abcd" <[EMAIL PROTECTED]> wrote: | > probably a Thread. | | | But a thread leaves the script running until the thread exits, right? | So the webpage would just keep saying "loading" at the bottom I think. Can you t

Re: How to Start a (thread?) and Leave

2007-03-09 Thread [EMAIL PROTECTED]
On Mar 9, 3:45 pm, "abcd" <[EMAIL PROTECTED]> wrote: > > But a thread leaves the script running until the thread exits, right? > > So the webpage would just keep saying "loading" at the bottom I think. > > > -Greg > > give it a shot. if you spawn off a new thread your code should keep > executing

Re: How to Start a (thread?) and Leave

2007-03-09 Thread abcd
> But a thread leaves the script running until the thread exits, right? > So the webpage would just keep saying "loading" at the bottom I think. > > -Greg give it a shot. if you spawn off a new thread your code should keep executing while the thread does its work in the "background". -- http://

Re: How to Start a (thread?) and Leave

2007-03-09 Thread [EMAIL PROTECTED]
On Mar 9, 3:25 pm, "abcd" <[EMAIL PROTECTED]> wrote: > probably a Thread. But a thread leaves the script running until the thread exits, right? So the webpage would just keep saying "loading" at the bottom I think. -Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: How to Start a (thread?) and Leave

2007-03-09 Thread abcd
probably a Thread. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to start more than one process at the same time?

2006-07-14 Thread Piet van Oostrum
> "Dirk Hagemann" <[EMAIL PROTECTED]> (DH) wrote: >DH> Hi! >DH> How can I start several jobs at the same time with python? I want to >DH> collect data from some servers and I don't want to wait until the first >DH> server is finished. These jobs should run parallel to save time. Use the subpr

Re: How to start more than one process at the same time?

2006-07-14 Thread utabintarbo
Look into the subprocess module. Possibly relevant link follows: http://docs.python.org/lib/node244.html -- http://mail.python.org/mailman/listinfo/python-list

Re: How to start more than one process at the same time?

2006-07-14 Thread dbandler
Have you considered a multi-threaded solution? The following websites offer reasonable examples: http://en.wikibooks.org/wiki/Programming:Python/Threading http://www.wellho.net/solutions/python-python-threads-a-first-example.html -Derek Dirk Hagemann wrote: > Hi! > > How can I start several job

Re: how to start a process and get it's pid?

2005-11-14 Thread J Correia
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Fredrik Lundh wrote: > > Daniel Crespo wrote: > >>os.spawnl(os.P_NOWAIT, "c:/windows/notepad.exe") > >>>1944 > >> > >>I don't get the correct PID. > >> > >>When I do os.spawnl(os.P_NOWAIT, "c:/windows/notepad.exe") >

Re: how to start a process and get it's pid?

2005-11-11 Thread Peter Hansen
Fredrik Lundh wrote: > Daniel Crespo wrote: >>os.spawnl(os.P_NOWAIT, "c:/windows/notepad.exe") >>>1944 >> >>I don't get the correct PID. >> >>When I do os.spawnl(os.P_NOWAIT, "c:/windows/notepad.exe") >>I get 168 (for example), while in the tasklist appears notepad.exe with >>the 2476 PID. > >

Re: how to start a process and get it's pid?

2005-11-11 Thread Yves Glodt
Gerhard Häring wrote: > Yves Glodt wrote: >> Hello, >> >> another question rose for me today... >> >> Is there a way to start an external process, in it's own context (not as >> the exec-() functions do), and get it's pid...? [...] > > Check out the subprocess module if you're using Python 2.4. >

Re: how to start a process and get it's pid?

2005-11-11 Thread Daniel Crespo
> not sure, but the return value looks like a PID, so maybe you're seeing the > PID for the cmd.exe instance used to run the program. or something. No. There wasn't a 196 PID for any of the processes. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to start a process and get it's pid?

2005-11-11 Thread Daniel Crespo
> >>> import subprocess > >>> p = subprocess.Popen("c:/windows/notepad.exe") > >>> p.pid > 1948 Yes, it works. But in my case, I need to run the program totally separated from my main program. So, when I start a new program through subprocess, it doesn't unlink. I mean, if I close my main app, so

Re: how to start a process and get it's pid?

2005-11-11 Thread Daniel Crespo
Hi > >>> os.spawnl(os.P_NOWAIT, "c:/windows/notepad.exe") > 1944 I don't get the correct PID. When I do os.spawnl(os.P_NOWAIT, "c:/windows/notepad.exe") I get 168 (for example), while in the tasklist appears notepad.exe with the 2476 PID. Why? Thanks Daniel -- http://mail.python.org/mailman

Re: how to start a process and get it's pid?

2005-11-11 Thread Fredrik Lundh
Daniel Crespo wrote: >> >>> os.spawnl(os.P_NOWAIT, "c:/windows/notepad.exe") >> 1944 > > I don't get the correct PID. > > When I do os.spawnl(os.P_NOWAIT, "c:/windows/notepad.exe") > I get 168 (for example), while in the tasklist appears notepad.exe with > the 2476 PID. > > Why? not sure, but the

Re: how to start a process and get it's pid?

2005-11-11 Thread Gerhard Häring
Yves Glodt wrote: > Hello, > > another question rose for me today... > > Is there a way to start an external process, in it's own context (not as > the exec-() functions do), and get it's pid...? [...] Check out the subprocess module if you're using Python 2.4. Otherwise, you can always use os

Re: How to start PEP process?

2005-08-25 Thread Robert Kern
Kenneth McDonald wrote: > Should I just put a "Proposed PEP" message here? "Proposed Python Enhancement Proposal"? A bit redundant, don't you think? :-) I think "pre-PEP" is the usual term. > Or is there a more > formal way? Not until you get to the post-pre-PEP stage. By all means, please d

Re: How to start PEP process?

2005-08-25 Thread Martin v. Löwis
Kenneth McDonald wrote: > Should I just put a "Proposed PEP" message here? Or is there a more > formal way? See PEP 1. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: How to start python interactively from python script?

2005-04-26 Thread Michele Simionato
$ python -i myscript.py Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: How to start python interactively from python script?

2005-04-26 Thread [EMAIL PROTECTED]
Thank you. 'os.environ["PYTHONINSPECT"] = "1"' does the job. Raghu. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to start python interactively from python script?

2005-04-26 Thread Thomas Heller
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Hi, > > I would like to have a python script which does some computations at > the beginning and then changes to interactive mode (by displaying the > prompt). How can I do this? You call 'os.setenv["PYTHONINSPECT"] = "1"' at the somewher in your

Re: How to start python interactively from python script?

2005-04-26 Thread Mage
[EMAIL PROTECTED] wrote: >Hi, > >I would like to have a python script which does some computations at >the beginning and then changes to interactive mode (by displaying the >prompt). How can I do this? > > popen() Mage -- http://mail.python.org/mailman/listinfo/python-list

Re: how to start a new process while the other ist running on

2004-12-22 Thread Keith Dart
On 2004-12-22, Erik Geiger <[EMAIL PROTECTED]> wrote: > Donn Cave schrieb: > >> In article <[EMAIL PROTECTED]>, Erik Geiger <[EMAIL PROTECTED]> >> wrote: > [...] >> > Thats what I've tried, but it did not work. Maybe it's because I want to >> > start something like su -c '/path/to/skript $parameter

Re: how to start a new process while the other ist running on

2004-12-22 Thread Erik Geiger
Donn Cave schrieb: > In article <[EMAIL PROTECTED]>, Erik Geiger <[EMAIL PROTECTED]> > wrote: [...] > > Thats what I've tried, but it did not work. Maybe it's because I want to > > start something like su -c '/path/to/skript $parameter1 $parameter2' > > user > Unfortunately this particular case

Re: how to start a new process while the other ist running on

2004-12-22 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Erik Geiger <[EMAIL PROTECTED]> wrote: > Fredrik Lundh schrieb: > > > Erik Geiger wrote: > > > [...] > >> How to start a shell script without waiting for the exit of that shell > >> script? It shall start the shell script and immediately execute the next > >> pyth

Re: how to start a new process while the other ist running on

2004-12-22 Thread Erik Geiger
Thanks, thats what I use now :) Harlin Seritt schrieb: > Quickie: > > os.system("/path/to/script.sh &") > > More elegant, have a look at threads > > > Harlin Seritt > > Erik Geiger wrote: > >> Hi, >> >> sorry, my english ist not that got but I'll try. >> >> I have a running py

Re: how to start a new process while the other ist running on

2004-12-22 Thread Erik Geiger
Jean Brouwers schrieb: > > > See the os. spawn* functions. For example > > os.spawnv(os.P_NOWAIT, /path/to/script, args) > > /Jean Brouwers > > Thats what I've tried, but failed. Thanks anyway ;-) Greets Erik [...] -- Jemanden wie ein rohes Ei zu behandeln kann auch bedeuten, ihn in

Re: how to start a new process while the other ist running on

2004-12-22 Thread Erik Geiger
Fredrik Lundh schrieb: > Erik Geiger wrote: > [...] >> How to start a shell script without waiting for the exit of that shell >> script? It shall start the shell script and immediately execute the next >> python command. > > if you have Python 2.4, you can use the subprocess module: > > htt

Re: how to start a new process while the other ist running on

2004-12-21 Thread Fredrik Lundh
Erik Geiger wrote: > I have a running python script (capisuit incoming.py). This script shall > start a linux shell script. If I start this script like os.system(/paht/to > shellscipt.sh) the python scipt waits for the exit of the shell script and > then goes on with the rest of the python script.

Re: how to start a new process while the other ist running on

2004-12-21 Thread Jean Brouwers
See the os. spawn* functions. For example os.spawnv(os.P_NOWAIT, /path/to/script, args) /Jean Brouwers In article <[EMAIL PROTECTED]>, Erik Geiger <[EMAIL PROTECTED]> wrote: > Hi, > > sorry, my english ist not that got but I'll try. > > I have a running python script (capisuit incoming

Re: how to start a new process while the other ist running on

2004-12-21 Thread Harlin Seritt
Quickie: os.system("/path/to/script.sh &") More elegant, have a look at threads Harlin Seritt Erik Geiger wrote: > Hi, > > sorry, my english ist not that got but I'll try. > > I have a running python script (capisuit incoming.py). This script shall > start a linux shell script.