Re: Start Python programming

2021-04-30 Thread Russell via Python-list
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

Re: Start Python programming

2021-04-28 Thread Alan Gauld via Python-list
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.

Re: Start Python programming

2021-04-27 Thread Abrantes Araujo Silva Filho
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

Re: Start Python programming

2021-04-27 Thread dn via Python-list
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

Re: Start up company is looking for an experianced Django web developer .

2010-08-23 Thread Ben Finney
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

Re: start and kill process by command promt

2010-06-21 Thread Giampaolo Rodolà
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

Re: start and kill process by command promt

2010-06-20 Thread shanti bhushan
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

Re: start function in new process

2010-03-06 Thread Martin P. Hellwig
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

Re: start function in new process

2010-03-06 Thread wongjoek...@yahoo.com
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.

Re: start function in new process

2010-03-05 Thread Robert Kern
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

Re: start function in new process

2010-03-05 Thread Martin P. Hellwig
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

Re: start function in new process

2010-03-05 Thread Jonathan Gardner
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

Re: start function in new process

2010-03-05 Thread wongjoek...@yahoo.com
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

Re: start function in new process

2010-03-05 Thread Martin P. Hellwig
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()

Re: start function in new process

2010-03-05 Thread wongjoek...@yahoo.com
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

Re: start function in new process

2010-03-05 Thread Martin P. Hellwig
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

Re: start .pyo files with doubleclick on windows

2010-01-25 Thread Gabriel Genellina
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\

Re: start .pyo files with doubleclick on windows

2010-01-24 Thread News123
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:\

Re: start .pyo files with doubleclick on windows

2010-01-24 Thread Alf P. Steinbach
* 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

Re: start external program from python

2009-10-12 Thread Jorgen Grahn
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

Re: start external program from python

2009-10-12 Thread TerryP
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

Re: start default application for read a pdf from python

2009-09-09 Thread Angelo Ballabio
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

Re: start default application for read a pdf from python

2009-09-08 Thread Albert Hopkins
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

Re: start default application for read a pdf from python

2009-09-08 Thread Angelo Ballabio
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

Re: start default application for read a pdf from python

2009-09-08 Thread Grant Edwards
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

Re: Start-up program

2009-08-18 Thread Dave Angel
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

Re: Start-up program

2009-08-18 Thread MRAB
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.

Re: Start-up program

2009-08-18 Thread Jean-Michel Pichavant
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

Re: Start-up program

2009-08-18 Thread Diez B. Roggisch
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

Re: Start the interactive shell within an application

2009-06-09 Thread alex23
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:/

Re: Start the interactive shell within an application

2009-06-09 Thread Robert Kern
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

Re: Start the interactive shell within an application

2009-06-09 Thread Ben Charrow
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

Re: Start the interactive shell within an application

2009-06-09 Thread Javier Collado
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

Re: Start the interactive shell within an application

2009-06-09 Thread eGlyph
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

Re: Start Python at client side from web app

2009-01-27 Thread Arlo Belshee
> 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

Re: Start Python at client side from web app

2009-01-22 Thread Paul Rubin
"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

Re: Start Python at client side from web app

2009-01-22 Thread Rob Williscroft
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

Re: Start Python at client side from web app

2009-01-22 Thread Rob Williscroft
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.

Re: Start Python at client side from web app

2009-01-22 Thread Diez B. Roggisch
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

Re: Start Python at client side from web app

2009-01-22 Thread Thomas Guettler
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

Re: Start Python at client side from web app

2009-01-22 Thread Thomas Guettler
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

Re: Start Python at client side from web app

2009-01-22 Thread Thomas Guettler
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

Re: Start Python at client side from web app

2009-01-21 Thread Paul Rubin
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

Re: Start Python at client side from web app

2009-01-21 Thread Bryan Olson
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

Re: Start Python at client side from web app

2009-01-21 Thread Rob Williscroft
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 >>

Re: Start Python at client side from web app

2009-01-21 Thread Diez B. Roggisch
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

Re: Start Python at client side from web app

2009-01-21 Thread Rob Williscroft
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

Re: Start Python at client side from web app

2009-01-21 Thread James Stroud
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

Re: Start Python at client side from web app

2009-01-21 Thread Diez B. Roggisch
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

Re: Start Python at client side from web app

2009-01-21 Thread Thomas Guettler
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

Re: Start Python at client side from web app

2009-01-21 Thread Diez B. Roggisch
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

Re: Start Python at client side from web app

2009-01-21 Thread James Stroud
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

Re: Start Python at client side from web app

2009-01-21 Thread 7stud
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

Re: Start Python at client side from web app

2009-01-21 Thread Paul Rubin
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

Re: Start Python at client side from web app

2009-01-21 Thread Lars Behrens
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

Re: Start multiple listening servers in one file

2009-01-16 Thread MRAB
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

Re: Start two threads in same time

2009-01-16 Thread koranthala
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 -- > ---

Re: Start two threads in same time

2009-01-16 Thread koranthala
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

Re: Start learning 2.6 or wait for 3.0?

2008-11-24 Thread Giampaolo Rodola'
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

Re: Start learning 2.6 or wait for 3.0?

2008-11-24 Thread Aahz
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

Re: Start learning 2.6 or wait for 3.0?

2008-11-24 Thread Terry Reedy
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

Re: Start learning 2.6 or wait for 3.0?

2008-11-24 Thread Terry Reedy
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

Re: start reading from certain line

2008-07-10 Thread Iain King
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:

Re: start reading from certain line

2008-07-10 Thread Iain King
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

Re: start reading from certain line

2008-07-10 Thread jstrick
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'

Re: start reading from certain line

2008-07-10 Thread Steven D'Aprano
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

Re: start reading from certain line

2008-07-09 Thread norseman
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

Re: start reading from certain line

2008-07-09 Thread A.T.Hofkamp
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

Re: start reading from certain line

2008-07-09 Thread Tim Cook
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

Re: start reading from certain line

2008-07-09 Thread Tim Cook
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

Re: start reading from certain line

2008-07-09 Thread Diez B. Roggisch
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

Re: Start

2007-05-19 Thread Benjamin
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

Re: Start

2007-05-19 Thread Glich
I got started here: http://showmedo.com/videos/python -- http://mail.python.org/mailman/listinfo/python-list

Re: Start

2007-05-19 Thread Paddy
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

Re: start a multi-sockets server (a socket/per thread) with different ports but same host

2006-08-15 Thread zxo102
"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

Re: start a multi-sockets server (a socket/per thread) with different ports but same host

2006-08-15 Thread 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 socket connections. Trying to make that twisted example code in this topic for "one listener socket-all the co

Re: start a multi-sockets server (a socket/per thread) with different ports but same host

2006-08-13 Thread Jean-Paul Calderone
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

Re: start a multi-sockets server (a socket/per thread) with different ports but same host

2006-08-12 Thread Bryan Olson
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

Re: start a multi-sockets server (a socket/per thread) with different ports but same host

2006-08-12 Thread zxo102
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

Re: start a multi-sockets server (a socket/per thread) with different ports but same host

2006-08-12 Thread Jean-Paul Calderone
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

Re: start a multi-sockets server (a socket/per thread) with different ports but same host

2006-08-12 Thread zxo102
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

Re: start a multi-sockets server (a socket/per thread) with different ports but same host

2006-08-12 Thread Jean-Paul Calderone
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

Re: Start a python interactive shell from python.

2006-01-26 Thread Fernando Perez
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

Re: Start a python interactive shell from python.

2006-01-26 Thread Bo Peng
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

Re: START YOUR OWN BIZ MAKING THOUSANDS USING PAYPAL!!!

2005-08-03 Thread lemon97
) [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

Re: Start application & continue after app exits

2005-06-10 Thread Mike Meyer
"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

Re: Start application & continue after app exits

2005-06-10 Thread Terry Reedy
"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

Re: Start application & continue after app exits

2005-06-10 Thread Guy Lateur
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

Re: Start application & continue after app exits

2005-06-09 Thread Renato Ramonda
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

Re: Start application & continue after app exits

2005-06-09 Thread Paul McNett
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 >>

Re: Start application & continue after app exits

2005-06-09 Thread Mike Meyer
"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

Re: Start application & continue after app exits

2005-06-09 Thread guy lateur
>>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

Re: Start application & continue after app exits

2005-06-09 Thread Ivan Shevanski
>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

Re: Start application & continue after app exits

2005-06-09 Thread Paul McNett
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

Re: Start new process by function ?

2005-03-10 Thread Mathias Waack
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