Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You will overcome the attacks of jealous associates.


comp / comp.lang.python / Re: How to stop a specific thread in Python 2.7?

SubjectAuthor
o Re: How to stop a specific thread in Python 2.7?Cameron Simpson

1
Subject: Re: How to stop a specific thread in Python 2.7?
From: Cameron Simpson
Newsgroups: comp.lang.python
Date: Thu, 26 Sep 2024 01:06 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: cs@cskk.id.au (Cameron Simpson)
Newsgroups: comp.lang.python
Subject: Re: How to stop a specific thread in Python 2.7?
Date: Thu, 26 Sep 2024 11:06:03 +1000
Lines: 5
Message-ID: <mailman.10.1727312780.2990.python-list@python.org>
References: <CAGJtH9QwwYDRcqkM7Vtgy_ZraOZbrCcsyGODveNPFtpT7+L_6g@mail.gmail.com>
<ZvSzeyCOL1fd97UJ@cskk.homeip.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
X-Trace: news.uni-berlin.de av1Z45GdpD9ijbwB3V3MWgBrmmn93avyg+rhUaibs77Q==
Cancel-Lock: sha1:sQVmm71X9i3x1teTHJrEo3wUm3c= sha256:QS450GkPSBJqiRzVJtWvkpadEhJyZEJK8O642u2hZk0=
Return-Path: <cameron@cskk.id.au>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'thread': 0.05; 'worker':
0.09; 'subject:Python': 0.12; 'from:addr:cs': 0.16;
'from:addr:cskk.id.au': 0.16; 'from:name:cameron simpson': 0.16;
'message-id:@cskk.homeip.net': 0.16; 'received:13.237': 0.16;
'received:13.237.201': 0.16; 'received:13.237.201.189': 0.16;
'received:cskk.id.au': 0.16; 'received:id.au': 0.16;
'received:mail.cskk.id.au': 0.16; 'subject:2.7': 0.16;
'subject:stop': 0.16; 'subject:thread': 0.16; 'thread.': 0.16;
'wrote:': 0.16; 'python': 0.16; 'to:addr:python-list': 0.20;
'to:no real name:2**1': 0.22; 'subject:How': 0.23; 'function':
0.27; 'event.': 0.28; 'header:User-Agent:1': 0.30; 'sfxlen:2':
0.31; 'header:In-Reply-To:1': 0.34; 'received:au': 0.35; 'use':
0.39; 'hand': 0.40; 'event': 0.40; 'pass': 0.64; 'received:13':
0.64; 'your': 0.64; 'received:userid': 0.66; 'outside': 0.67;
'subject:specific': 0.84
Mail-Followup-To: Tutor@python.org, python-list@python.org
Content-Disposition: inline
In-Reply-To: <CAGJtH9QwwYDRcqkM7Vtgy_ZraOZbrCcsyGODveNPFtpT7+L_6g@mail.gmail.com>
User-Agent: Mutt/2.2.13 (2024-03-09)
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <ZvSzeyCOL1fd97UJ@cskk.homeip.net>
X-Mailman-Original-References: <CAGJtH9QwwYDRcqkM7Vtgy_ZraOZbrCcsyGODveNPFtpT7+L_6g@mail.gmail.com>
View all headers

On 25Sep2024 22:56, marc nicole <mk1853387@gmail.com> 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.

1

rocksolid light 0.9.8
clearnet tor