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
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
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
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
Thank you all for your kind explanations.
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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.
> 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
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,
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
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
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 <[
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_
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,
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
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
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
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
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
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
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
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
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
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
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
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
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 -
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
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
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
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
<[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
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
> 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://
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
probably a Thread.
--
http://mail.python.org/mailman/listinfo/python-list
> "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
Look into the subprocess module. Possibly relevant link follows:
http://docs.python.org/lib/node244.html
--
http://mail.python.org/mailman/listinfo/python-list
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
"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")
>
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.
>
>
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.
>
> 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
> >>> 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
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
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
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
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
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
$ python -i myscript.py
Michele Simionato
--
http://mail.python.org/mailman/listinfo/python-list
Thank you. 'os.environ["PYTHONINSPECT"] = "1"' does the job.
Raghu.
--
http://mail.python.org/mailman/listinfo/python-list
"[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
[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
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
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
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
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
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
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
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.
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
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.
67 matches
Mail list logo