Gazoo wrote:
>
>
> I'd like to start learning Python programming. What sites/tutorials
> could you recommend for beginner, please.
>
I liked the book found at https://automatetheboringstuff.com/
You can read the whole book online. I think you used to be able to
download a copy too. It has lot
On 27/04/2021 18:32, Gazoo wrote:
> I'd like to start learning Python programming. What sites/tutorials
> could you recommend for beginner, please.
There is a getting started page on the python web site with
links to guide you to many listed suggestions - books,
web tutorials, video courses etc.
On Tue, 27 Apr 2021 17:32:22 +, Gazoo wrote:
> I'd like to start learning Python programming. What sites/tutorials
> could you recommend for beginner, please.
Have you tried this book?
https://greenteapress.com/wp/think-python-2e/
It is a good book, written by Allan B. Downey, which is avai
On 28/04/2021 05.32, Gazoo wrote:
>
>
> I'd like to start learning Python programming. What sites/tutorials
> could you recommend for beginner, please.
Start with the Python Tutorial
(https://docs.python.org/3/tutorial/index.html), thereafter there are
other 'docs' at the same site.
There are
writes:
> Our company is looking for an experienced full time Django programmer
[…]
Please don't use the Python forum for this. Instead, post it to the
Python Jobs Board http://www.python.org/community/jobs/>.
> Accepted applicants will be required to sign a non-disclosure agreement.
I would s
There's no need to use taskill.exe;
keep a reference of the subprocess.Popen() object around and use its
kill() method instead.
--- Giampaolo
http://code.google.com/p/pyftpdlib
http://code.google.com/p/psutil
2010/6/21 shanti bhushan :
> On Jun 21, 10:41 am, shanti bhushan wrote:
>> Hi,
>> I w
On Jun 21, 10:41 am, shanti bhushan wrote:
> Hi,
> I want to invoke local wen server named mogoose, and kill it after
> some time by python script.
> Then i want to change the argument and invoke it again.
>
> I am able to do this with below code.
>
> import subprocess
> import time
>
> def invoke
On 03/06/10 09:45, wongjoek...@yahoo.com wrote:
Yes, I saw this example also before. HOwever what I want is to call an
internal function which gets a reference of another internal function
as input and not calling an external program. Do you have any example
on that with subprocess module ?
Tha
On 5 mrt, 21:40, "Martin P. Hellwig"
wrote:
> On 03/05/10 20:09, wongjoek...@yahoo.com wrote:
>
>
>
> > On 5 mrt, 21:02, "Martin P. Hellwig"
> > wrote:
> >> On 03/05/10 19:45, wongjoek...@yahoo.com wrote:
>
> >>> On 5 mrt, 20:40, "Martin P. Hellwig"
> >>> wrote:
> On 03/05/10 19:21, wongjoek.
On 2010-03-05 14:09 PM, wongjoek...@yahoo.com wrote:
I can't use multiprocessing module since it comes only with python 2.6
and I am bound to python2.4.
It is available as a third party package for Python 2.4:
http://pypi.python.org/pypi/multiprocessing
--
Robert Kern
"I have come to believ
On 03/05/10 20:09, wongjoek...@yahoo.com wrote:
On 5 mrt, 21:02, "Martin P. Hellwig"
wrote:
On 03/05/10 19:45, wongjoek...@yahoo.com wrote:
On 5 mrt, 20:40, "Martin P. Hellwig"
wrote:
On 03/05/10 19:21, wongjoek...@yahoo.com wrote:
Any specific reason why threading.Thread or multiprocessin
You're really close. See inline comment below.
On Fri, Mar 5, 2010 at 11:21 AM, wongjoek...@yahoo.com
wrote:
>
> def c():
> print "function c"
>
> def f(a,b, d):
> # function I want to run in a new child process
> print a, b
> d()
>
> def g():
> pidID = os.fork()
> if pidID == 0
On 5 mrt, 21:02, "Martin P. Hellwig"
wrote:
> On 03/05/10 19:45, wongjoek...@yahoo.com wrote:
>
>
>
> > On 5 mrt, 20:40, "Martin P. Hellwig"
> > wrote:
> >> On 03/05/10 19:21, wongjoek...@yahoo.com wrote:
> >>
> >> Any specific reason why threading.Thread or multiprocessing is not
> >> suitable t
On 03/05/10 19:45, wongjoek...@yahoo.com wrote:
On 5 mrt, 20:40, "Martin P. Hellwig"
wrote:
On 03/05/10 19:21, wongjoek...@yahoo.com wrote:
Any specific reason why threading.Thread or multiprocessing is not
suitable to solve your problem?
--
mph
Because I got a memory leak in my function f()
On 5 mrt, 20:40, "Martin P. Hellwig"
wrote:
> On 03/05/10 19:21, wongjoek...@yahoo.com wrote:
>
> Any specific reason why threading.Thread or multiprocessing is not
> suitable to solve your problem?
>
> --
> mph
Because I got a memory leak in my function f(). It uses scipy, numpy,
pylab, and I a
On 03/05/10 19:21, wongjoek...@yahoo.com wrote:
Any specific reason why threading.Thread or multiprocessing is not
suitable to solve your problem?
--
mph
--
http://mail.python.org/mailman/listinfo/python-list
En Sun, 24 Jan 2010 19:36:53 -0300, News123 escribió:
Hi Alf,
Alf P. Steinbach wrote:
* News123:
Hi,
I'd like to start .pyo files under windows with a double click.
C:\> assoc .pyo
.pyo=Python.CompiledFile
C:\> ftype python.compiledfile
python.compiledfile="C:\Program Files\cpython\
Hi Alf,
Alf P. Steinbach wrote:
> * News123:
>> Hi,
>>
>>
>> I'd like to start .pyo files under windows with a double click.
>
> C:\> assoc .pyo
> .pyo=Python.CompiledFile
>
> C:\> ftype python.compiledfile
> python.compiledfile="C:\Program Files\cpython\python31\python.exe" "%1" %*
>
> C:\
* News123:
Hi,
I'd like to start .pyo files under windows with a double click.
(I know I can just write a .bat wrapper, but somehow it would be more
fun to start with a direct double click)
Currently this works if the file does not import any other .pyo file.
The problem is, that a doblecl
On Mon, 2009-10-12, Bjorn wrote:
>
> Hi, I woul like to start a program from within python (under linux):
> This works fine:
>
> import os
> path = 'tclsh AppMain.tcl hej.gb'
> os.system(path)
>
> The file AppMain.tcl is the executable
Not really -- tclsh is the executable from Python's and the sy
On Oct 12, 10:15 am, Bjorn wrote:
> Hi, I woul like to start a program from within python (under linux):
> This works fine:
>
> import os
> path = 'tclsh AppMain.tcl hej.gb'
> os.system(path)
>
> The file AppMain.tcl is the executable and the file hej.gb is a
> textfile in the same directory.
> Th
Thenks for this suggestion, at the end I find this solution
import os
.
.
#then where I decide to show the file in the default application I put this
#file_name the name I construct with path and all necessary
#recor contain all the data of one record end the 4th position
On Tue, 2009-09-08 at 22:22 +0200, Angelo Ballabio wrote:
> My problem is a way to run a default application to read and show a
> pdf
> file from unix or windows, i have a mixed ambient in the office, so I
> am
> try to find a way to start a application to show this pdf file I
> generate whith r
Sorry to not be very specific
My problem is a way to run a default application to read and show a pdf
file from unix or windows, i have a mixed ambient in the office, so I am
try to find a way to start a application to show this pdf file I
generate whith reportlab. actualy I write a file in a
On 2009-09-08, Angelo Ballabio wrote:
> I try to start a default application for reading a pdf file
> inside the python script.
>
> I try
>
> os.startfile(name,option) but say me startfile not implemented
Are you _sure_ it says startfile not implemented? Or does
it say this:
>>> os.startfil
Virgil Stokes wrote:
How
difficult is to create a program that will be executed when Windows
Vista is started? As Windows Calendar does, for example.
I am actually more interested in the Python tools that might be used
for this task. I hope that this question is not inappropriate for the
lis
Virgil Stokes wrote:
How difficult is to create a program that will be executed when Windows
Vista is started? As Windows Calendar does, for example.
I am actually more interested in the Python tools that might be used for
this task. I hope that this question is not inappropriate for the list.
Virgil Stokes wrote:
How difficult is to create a program that will be executed when
Windows Vista is started? As Windows Calendar does, for example.
I am actually more interested in the Python tools that might be used
for this task. I hope that this question is not inappropriate for the
list
Virgil Stokes wrote:
> How difficult is to create a program that will be executed when Windows
> Vista is started? As Windows Calendar does, for example.
>
> I am actually more interested in the Python tools that might be used for
> this task. I hope that this question is not inappropriate for th
On Jun 10, 1:40 am, Ben Charrow wrote:
> If you're looking to debug your program, try "import pdb"
Another option, if you wish to debug an error, is to run python using
the -i parameter. This will leave you inside the interpreter at the
point that execution stops. Very handy.
- alex23
--
http:/
On 2009-06-09 03:49, Jean-Michel Pichavant wrote:
I was wondering if there is a way to start an interactive shell within a
script/application.
I'm sometimes tired of adding prints to scan the current namespace so
I'd like to pause the execution and give the user the shell prompt.
This is obviousl
If you're looking to debug your program, try "import pdb" and then wherever you
want to debug put:
pdb.set_trace()
Your program will then enter the debugger when it executes that line. It's
quite nice really. If you get confused on what to do, just type "help"
http://docs.python.org/library/pd
Take a look either at code.interact or at
IPython.ipapi.launch_new_instance. Basically, the only thing that you
have to provide is a dictionary object that contains the namespace
that you would like to have in your shell once it's launched.
Best regards,
Javier
2009/6/9 eGlyph :
> On Jun 9, 1
On Jun 9, 11:49 am, Jean-Michel Pichavant
wrote:
> I'm sometimes tired of adding prints to scan the current namespace so
> I'd like to pause the execution and give the user the shell prompt.
> This is obviously for debugging purpose.
This is definitely doable, have look at rhythmbox or gedit - th
> We create a custom mime-type and register it on the client PC. The web
> application
> can send signed python code to the client PC. If the signature is correct,
> the code will be executed at the client. The signature prevents others from
> executing
> code.
This will let you start a program
"Diez B. Roggisch" writes:
> Before posting, I tried a jQuery-ajax-call inside Firebug from some
> random site to google. It bailed out with a security execption.
You should be able to get around the security policy with XUL in
Firefox, or with an ActiveX control in MSIE. In the Netscape
Navigat
Diez B. Roggisch wrote in news:6ts0dnfc9s0...@mid.uni-berlin.de in
comp.lang.python:
> Rob Williscroft schrieb:
>> Diez B. Roggisch wrote in news:6tpo16fbacf...@mid.uni-berlin.de in
>> comp.lang.python:
>>
2) create a localhost web server, for the client side manipulation.
Then have y
Thomas Guettler wrote in news:6tr453fca5h...@mid.individual.net in
comp.lang.python:
> Diez B. Roggisch schrieb:
>>
>>> 2) create a localhost web server, for the client side manipulation.
>>> Then have your remote webserver render a form that posts via
>>> javavscript to the localhost webserver.
Rob Williscroft schrieb:
Diez B. Roggisch wrote in news:6tpo16fbacf...@mid.uni-berlin.de in
comp.lang.python:
2) create a localhost web server, for the client side manipulation.
Then have your remote webserver render a form that posts via
javavscript to the localhost webserver. The localhost
Paul Rubin schrieb:
> Thomas Guettler writes:
>> 1. The user pushes a button in the web app.
>> 2. Webserver sends signed python code to the client with own mime type
>> 3. IE sends code to the python application.
>> 4. Signature gets checked, Python code on the client gets executed.
>> 5. Maybe s
Diez B. Roggisch schrieb:
>
>> 2) create a localhost web server, for the client side manipulation.
>> Then have your remote webserver render a form that posts via
>> javavscript to the localhost webserver. The localhost server would
>> post back in
>> the same way.
>
> AFAIK the JS security mode
Bryan Olson schrieb:
> Thomas Guettler wrote:
>> Sorry, I described my problem not well. Here is more information:
>
> Actually you did pretty well.
>
> [...]
>> The main application is the intranet web application used with IE (ms
>> windows client).
>
> Your idea of a custom mime-type, with a
Thomas Guettler writes:
> 1. The user pushes a button in the web app.
> 2. Webserver sends signed python code to the client with own mime type
> 3. IE sends code to the python application.
> 4. Signature gets checked, Python code on the client gets executed.
> 5. Maybe send some data to the server
Thomas Guettler wrote:
Sorry, I described my problem not well. Here is more information:
Actually you did pretty well.
[...]
The main application is the intranet web application used with IE (ms windows
client).
Your idea of a custom mime-type, with a browser extension, should work.
I don
Diez B. Roggisch wrote in news:6tpo16fbacf...@mid.uni-berlin.de in
comp.lang.python:
>
>> 2) create a localhost web server, for the client side manipulation.
>> Then have your remote webserver render a form that posts via
>> javavscript to the localhost webserver. The localhost server would
>>
2) create a localhost web server, for the client side manipulation.
Then have your remote webserver render a form that posts via javavscript
to the localhost webserver. The localhost server would post back in
the same way.
AFAIK the JS security model prevents that.
Diez
--
http://mail.pyth
Thomas Guettler wrote in news:6toehtfbrb8...@mid.individual.net in
comp.lang.python:
> Sorry, I described my problem not well. Here is more information:
>
> The main application is the intranet web application used with IE (ms
> windows client). But some action needs to be done on the client sin
Thomas Guettler wrote:
Sorry, I described my problem not well. Here is more information:
The main application is the intranet web application used with IE (ms windows
client).
But some action needs to be done on the client since you can't do it with html
or javascript.
1. The user pushes a bu
Thomas Guettler wrote:
> Sorry, I described my problem not well. Here is more information:
>
> The main application is the intranet web application used with IE (ms
> windows client). But some action needs to be done on the client since you
> can't do it with html or javascript.
>
> 1. The user
Sorry, I described my problem not well. Here is more information:
The main application is the intranet web application used with IE (ms windows
client).
But some action needs to be done on the client since you can't do it with html
or javascript.
1. The user pushes a button in the web app.
2. W
James Stroud wrote:
> Thomas Guettler wrote:
>> Hi,
>>
>> I want to start Python at the client side from a web application. The
>> app is an intranet application, and all client PCs are under our control
>> (we can install software on them).
>>
>> But I don't want to update the installation too
Thomas Guettler wrote:
Hi,
I want to start Python at the client side from a web application. The
app is an intranet application, and all client PCs are under our control (we
can install software on them).
But I don't want to update the installation too often. Here is my idea:
We create a custo
On Jan 21, 1:10 am, Thomas Guettler wrote:
> Hi,
>
> I want to start Python at the client side from a web application. The
> app is an intranet application, and all client PCs are under our control (we
> can install software on them).
>
> But I don't want to update the installation too often. Here
Thomas Guettler writes:
> I want to start Python at the client side from a web
> application. The app is an intranet application, and all client PCs
> are under our control (we can install software on them).
Is it supposed to be OS independent? If not, is it for a specific OS?
Which one?
--
http
Thomas Guettler wrote:
> But I don't want to update the installation too often. Here is my idea:
>
> We create a custom mime-type and register it on the client PC. The web
> application can send signed python code to the client PC. If the signature
> is correct, the code will be executed at the c
Thomas W wrote:
I`m working on a django-project where I`m using the awsome pyftpdlib
for ftpserver-functionality. I also have a simple worker deamon
running in the background, but not listening to any port. How can I
start all of these processes on one file? Tried using subprocess and
popen bu
On Jan 16, 7:46 pm, koranthala wrote:
> On Jan 16, 7:36 pm, vedrandeko...@gmail.com wrote:
>
> > Hello,
>
> > Does anybody know how can I start two threads in same time?
>
> > Regards,
> > John
>
> Use threading module.
> Creating a new thread is as easy as --
> ---
On Jan 16, 7:36 pm, vedrandeko...@gmail.com wrote:
> Hello,
>
> Does anybody know how can I start two threads in same time?
>
> Regards,
> John
Use threading module.
Creating a new thread is as easy as --
---
import threading
cla
Definitively 2.X.
Whether 2.5 or 2.6 doesn't really matter.
--- Giampaolo
http://code.google.com/p/pyftpdlib/
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
Alan Biddle <[EMAIL PROTECTED]> wrote:
>
>I am planning on learning Python, primarily for my own interest,
>rather than any immediate need. I am wondering whether I would be
>wasting my time to start with the latest 2.6 version which has a lot
>of good instructiona
Alan Biddle wrote:
I am planning on learning Python, primarily for my own interest,
rather than any immediate need. I am wondering whether I would be
wasting my time to start with the latest 2.6 version which has a lot
of good instructional material, or wait a bit for version 3.0?
If you want
Alan Biddle wrote:
I am planning on learning Python, primarily for my own interest,
rather than any immediate need. I am wondering whether I would be
wasting my time to start with the latest 2.6 version which has a lot
of good instructional material, or wait a bit for version 3.0?
--
http://ma
On Jul 10, 4:54 pm, Iain King <[EMAIL PROTECTED]> wrote:
> On Jul 10, 2:45 pm, jstrick <[EMAIL PROTECTED]> wrote:
>
> > Here's a simple way to do it with a minimum amount of loopiness (don't
> > forget to use 'try-except' or 'with' in real life):
>
> > f = open("item1.txt")
>
> > for preline in f:
On Jul 10, 2:45 pm, jstrick <[EMAIL PROTECTED]> wrote:
> Here's a simple way to do it with a minimum amount of loopiness (don't
> forget to use 'try-except' or 'with' in real life):
>
> f = open("item1.txt")
>
> for preline in f:
> if "Item 1" in preline:
> print preline,
> for
Here's a simple way to do it with a minimum amount of loopiness (don't
forget to use 'try-except' or 'with' in real life):
f = open("item1.txt")
for preline in f:
if "Item 1" in preline:
print preline,
for goodline in f:
# could put an end condition with a 'break'
On Wed, 09 Jul 2008 09:59:32 -0700, norseman wrote:
> I would use:
>
> readthem= 0
> file=open(filename,'r')
> while readthem == 0:
>line=file.readline()
>if not line:
> break
>if 'Item 1' in line:
> readthem= 1
> # print line # uncomment if 'Item 1' is to
Tim Cook wrote:
On Wed, 2008-07-09 at 03:30 -0700, antar2 wrote:
I am a starter in python and would like to write a program that reads
lines starting with a line that contains a certain word.
For example the program starts reading the program when a line is
encountered that contains 'item 1'
T
On 2008-07-09, antar2 <[EMAIL PROTECTED]> wrote:
> I am a starter in python and would like to write a program that reads
> lines starting with a line that contains a certain word.
> For example the program starts reading the program when a line is
> encountered that contains 'item 1'
>
>
> The weat
On Wed, 2008-07-09 at 03:30 -0700, antar2 wrote:
> I am a starter in python and would like to write a program that reads
> lines starting with a line that contains a certain word.
> For example the program starts reading the program when a line is
> encountered that contains 'item 1'
>
>
> The we
On Wed, 2008-07-09 at 03:30 -0700, antar2 wrote:
> I am a starter in python and would like to write a program that reads
> lines starting with a line that contains a certain word.
> For example the program starts reading the program when a line is
> encountered that contains 'item 1'
>
>
> The w
antar2 wrote:
> I am a starter in python and would like to write a program that reads
> lines starting with a line that contains a certain word.
> For example the program starts reading the program when a line is
> encountered that contains 'item 1'
>
>
> The weather is nice
> Item 1
> We will g
On May 19, 10:18 am, Nautilus <[EMAIL PROTECTED]> wrote:
> Can anybody halp me start using Python.
First you'll need to download Python. You can do that at http://www.python.org.
Then download and read the tutorial at http://python.org/doc/.
--
http://mail.python.org/mailman/listinfo/python-list
I got started here: http://showmedo.com/videos/python
--
http://mail.python.org/mailman/listinfo/python-list
On May 19, 4:18 pm, Nautilus <[EMAIL PROTECTED]> wrote:
> Can anybody halp me start using Python.
http://wiki.python.org/moin/BeginnersGuide
And welcome :-)
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
"That twisted example only accepts one client connection" if only one
port is available.
zxo102 写道:
> Bryan,
>Thanks for your note. Finally, I have made "one listener socket for
> all the connections" work plus Queue-communication between the threads
> in wxpython Gui and the threads for s
Bryan,
Thanks for your note. Finally, I have made "one listener socket for
all the connections" work plus Queue-communication between the threads
in wxpython Gui and the threads for socket connections.
Trying to make that twisted example code in this topic for "one
listener socket-all the co
On 12 Aug 2006 21:59:20 -0700, zxo102 <[EMAIL PROTECTED]> wrote:
>Jean-Paul,
>I just start to learn Twisted. Here is my simple case: I can find
>the data sent by clients in dataReceived but I don't know which
>client/which port the data is from. After I know where the data comes
>from, I can do
zxo102 wrote:
>I am doing a small project using socket server and thread in python.
> This is first time for me to use socket and thread things.
>Here is my case. I have 20 socket clients. Each client send a set
> of sensor data per second to a socket server. The socket server will
> do
Jean-Paul,
I just start to learn Twisted. Here is my simple case: I can find
the data sent by clients in dataReceived but I don't know which
client/which port the data is from. After I know where the data comes
from, I can do different things there, for example, write them into
different files
On 12 Aug 2006 10:44:29 -0700, zxo102 <[EMAIL PROTECTED]> wrote:
>Jean-Paul,
>Thanks a lot. The code is working. The python twisted is new to me too.
>Here are my three more questions:
>1. Since the code need to be started in a wxpyhon GUI (either by
>clicking a button or up with the GUI), do I ha
Jean-Paul,
Thanks a lot. The code is working. The python twisted is new to me too.
Here are my three more questions:
1. Since the code need to be started in a wxpyhon GUI (either by
clicking a button or up with the GUI), do I have to run the code in a
thread (sorry, I have not tried it yet)?
2. Ho
On 12 Aug 2006 09:00:02 -0700, zxo102 <[EMAIL PROTECTED]> wrote:
>Hi,
> I am doing a small project using socket server and thread in python.
> This is first time for me to use socket and thread things.
> Here is my case. I have 20 socket clients. Each client send a set
>of sensor data per seco
Bo Peng wrote:
>
> I think I find what I need:
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/355319
That's a nice, lightweight one. Note that if you want to have all the bells
and whistles of ipython (and you have ipython already), then a simple
if __name__ == '__namin__':
f
I think I find what I need:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/355319
Bo
--
http://mail.python.org/mailman/listinfo/python-list
) [EMAIL PROTECTED]
2) [EMAIL PROTECTED]
3) [EMAIL PROTECTED]
4) [EMAIL PROTECTED]
5) [EMAIL PROTECTED]
6) [EMAIL PROTECTED]
The following addresses above, ARE all yours!
You are just another SCAMMER.
And the method for making this money, is completely idiotic.
Here is my example:
[EMAIL PROTECT
"Guy Lateur" <[EMAIL PROTECTED]> writes:
> To be honest, I don't really understand what it means to have the same file
> open for writing by several processes. You don't want to modify data which
> is already being modified by someone else, do you? I mean, how do you
> determine what changes to
"Guy Lateur" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> To be honest, I don't really understand what it means to have the same
> file open for writing by several processes. You don't want to modify data
> which is already being modified by someone else, do you? I mean, how do
This may be getting somewhat OT, but I'd like to dig a little deeper into
this.
First of all, security (as in some other proces reading/disclosing the data)
is not an issue in this case. The thing is, though, a user could run the
script twice, not having closed Word after the first time. So I g
guy lateur ha scritto:
> I see what you mean, but wouldn't a call to open(fn, 'w') on a filename
> that's in use (for reading or writing) result in an error condition or
> something? I'm a noob, btw.
Uh... no, not on linux.
Try this:
$ touch foo.txt
$ gedit foo.txt & (write something in it an
Mike Meyer wrote:
> "guy lateur" <[EMAIL PROTECTED]> writes:
>
>
Also note that this method of creating tempfiles is technically unsafe,
as it is theoretically possible that another process would create a file
of the same name in the same directory and then try to use it, resulting
>>
"guy lateur" <[EMAIL PROTECTED]> writes:
>>>Also note that this method of creating tempfiles is technically unsafe,
>>>as it is theoretically possible that another process would create a file
>>>of the same name in the same directory and then try to use it, resulting
>>>in a race condition between
>>Also note that this method of creating tempfiles is technically unsafe,
>>as it is theoretically possible that another process would create a file
>>of the same name in the same directory and then try to use it, resulting
>>in a race condition between the two processes. This is practically
>>unli
>From: Paul McNett <[EMAIL PROTECTED]>
>To: python-list@python.org
>Subject: Re: Start application & continue after app exits
>Date: Thu, 09 Jun 2005 09:07:47 -0700
>
>Guy Lateur wrote:
> > I was wondering if it would be possible to launch an application, block
&g
Guy Lateur wrote:
> I was wondering if it would be possible to launch an application, block
> until the app exits, and do some cleanup afterwards.
> Maybe an example will be clearer: I would like to make a temperary (text)
> file, open it with MS Word for the user to edit/layout/print, and then
George Sakkis wrote:
> Is it possible to start a new process by specifying a function call
> (in similar function to thread targets) instead of having to write
> the function in a separate script and call it through os.system or
> os.spawn* ? That is, something like
>
> def foo(): pass
> os.spawn
95 matches
Mail list logo