Thank you for the hint !
On Fri, Oct 04, 2024 at 09:17:19AM GMT, Cameron Simpson wrote:
On 03Oct2024 22:12, Dan Ciprus (dciprus) wrote:
I'd be interested too :-).
Untested sketch:
def make_thread(target, *a, E=None, **kw):
'''
Make a new Event E and Thread T, pass `[E,*a]`
On 03Oct2024 22:12, Dan Ciprus (dciprus) wrote:
I'd be interested too :-).
Untested sketch:
def make_thread(target, *a, E=None, **kw):
'''
Make a new Event E and Thread T, pass `[E,*a]` as the target
positional arguments.
A shared preexisting Event may be
I'd be interested too :-).
On Thu, Sep 26, 2024 at 03:34:05AM GMT, marc nicole via Python-list wrote:
Could you show a python code example of this?
On Thu, 26 Sept 2024, 03:08 Cameron Simpson, wrote:
On 25Sep2024 22:56, marc nicole wrote:
>How to create a per-thread event in Python 2.7?
E
That's one of the "disadvantages" of threads: you cannot safely stop a
thread. Of course you could try, but that's never a good idea. The
reason for this is that threads share memory. They might be holding
locks that, if killed, will never be unlocked. They might (partially)
modify the shared state
Could you show a python code example of this?
On Thu, 26 Sept 2024, 03:08 Cameron Simpson, wrote:
> On 25Sep2024 22:56, marc nicole wrote:
> >How to create a per-thread event in Python 2.7?
>
> Every time you make a Thread, make an Event. Pass it to the thread
> worker function and keep it to
On 25Sep2024 22:56, marc nicole wrote:
How to create a per-thread event in Python 2.7?
Every time you make a Thread, make an Event. Pass it to the thread
worker function and keep it to hand for your use outside the thread.
--
https://mail.python.org/mailman/listinfo/python-list
How to create a per-thread event in Python 2.7?
On Wed, 25 Sept 2024, 22:47 Cameron Simpson via Python-list, <
python-list@python.org> wrote:
> On 25Sep2024 19:24, marc nicole wrote:
> >I want to know how to kill a specific running thread (say by its id)
> >
> >for now I run and kill a thread li
On 25Sep2024 19:24, marc nicole wrote:
I want to know how to kill a specific running thread (say by its id)
for now I run and kill a thread like the following:
# start thread
thread1 = threading.Thread(target= self.some_func(), args=( ...,), )
thread1.start()
# kill the thread
event_thread1 = t
Hello guys,
I want to know how to kill a specific running thread (say by its id)
for now I run and kill a thread like the following:
# start thread
thread1 = threading.Thread(target= self.some_func(), args=( ...,), )
thread1.start()
# kill the thread
event_thread1 = threading.Event()
event_thread
Kevin Peterson writes:
> I want to use the stdout of child process as an input of another thread, but
> some how I am not able to read the stdout. Using Popen I have created a
> child process and stdout of it I have redirected to PIPE (because I don't
> want that to be printed on with my main
Hi,
I want to use the stdout of child process as an input of another thread, but
some how I am not able to read the stdout. Using Popen I have created a child
process and stdout of it I have redirected to PIPE (because I don't want that
to be printed on with my main process). Now using this
mars a écrit :
> I use TurboGears to do some web service. TurboGears use cherrypy. When
> web browser access this site, the cherrypy will call my python
> program. So my program looks like a lib. When web browser access the
> site, the http server will fock a process or gerenate a thread. I need
>
En Tue, 06 Feb 2007 08:49:51 -0300, Diez B. Roggisch <[EMAIL PROTECTED]>
escribió:
> mars wrote:
>
>> On 2月6日, 下午6时14分, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>>> mars wrote:
>>> > I use TurboGears to do some web service. TurboGears use cherrypy.
>>> When
>>> > web browser access this s
mars wrote:
> On 2月6日, 下午6时14分, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>> mars wrote:
>> > I use TurboGears to do some web service. TurboGears use cherrypy. When
>> > web browser access this site, the cherrypy will call my python
>> > program. So my program looks like a lib. When web browse
On 2月6日, 下午6时14分, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> mars wrote:
> > I use TurboGears to do some web service. TurboGears use cherrypy. When
> > web browser access this site, the cherrypy will call my python
> > program. So my program looks like a lib. When web browser access the
> > si
mars wrote:
> I use TurboGears to do some web service. TurboGears use cherrypy. When
> web browser access this site, the cherrypy will call my python
> program. So my program looks like a lib. When web browser access the
> site, the http server will fock a process or gerenate a thread. I need
> sh
I use TurboGears to do some web service. TurboGears use cherrypy. When
web browser access this site, the cherrypy will call my python
program. So my program looks like a lib. When web browser access the
site, the http server will fock a process or gerenate a thread. I need
share some data or operat
Hi !
Look the smart/fun use of threads make by
http://candygram.sourceforge.net
It's good for to know...
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
Steve Holden <[EMAIL PROTECTED]> wrote:
>
>http://starship.python.net/crew/aahz/OSCON2001/index.html
Thanks! But while that's still good (for the code, if nothing else), it
ought to be at least supplemented with
http://heather.cs.ucdavis.edu/~matloff/Python/PyThre
Ah! I forgot about this link the slideshow is very informative.
--
http://mail.python.org/mailman/listinfo/python-list
Kartic wrote:
[EMAIL PROTECTED] wrote:
Hello, is any one knows websites which give a python thread tutorial
?
Sincerely Yours,
Pujo Aji
Pujo Aji,
I have not come across a tutorial but found this link rather helpful -
http://www.faqts.com/knowledge_base/index.phtml/fid/263 - to get
started.
Also, t
[EMAIL PROTECTED] wrote:
> Hello, is any one knows websites which give a python thread tutorial
?
>
> Sincerely Yours,
> Pujo Aji
Pujo Aji,
I have not come across a tutorial but found this link rather helpful -
http://www.faqts.com/knowledge_base/index.phtml/fid/263 - to get
started.
Also, there
Hello, is any one knows websites which give a python thread tutorial ?
Sincerely Yours,
Pujo Aji
--
http://mail.python.org/mailman/listinfo/python-list
23 matches
Mail list logo