Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #196756

Re: [Tutor] How to stop a specific thread in Python 2.7?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From marc nicole <mk1853387@gmail.com>
Newsgroups comp.lang.python
Subject Re: [Tutor] How to stop a specific thread in Python 2.7?
Date Thu, 26 Sep 2024 03:34:05 +0200
Lines 15
Message-ID <mailman.11.1727314460.2990.python-list@python.org> (permalink)
References <CAGJtH9QwwYDRcqkM7Vtgy_ZraOZbrCcsyGODveNPFtpT7+L_6g@mail.gmail.com> <ZvSzeyCOL1fd97UJ@cskk.homeip.net> <CAGJtH9ReXKatCd45MXcqQqr+2ZA3y0i_hwyK_4ETDUw+W-1jQw@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace news.uni-berlin.de Q/78qnU+oJGHc68tRq33aQngMx5X373uZ3ZLtSfI+AcQ==
Cancel-Lock sha1:GK5bYlqauGOp2MDYutmvzg1F4lc= sha256:0cDq1/DvBCXe9Vx+waiwudwRzGU7/RbGrQ9cf7otwA8=
Return-Path <mk1853387@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
Authentication-Results mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=O9UBTzvz; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'thread': 0.05; '-\xc2\xa0': 0.09; 'worker': 0.09; 'subject:Python': 0.12; 'url:mailman': 0.15; 'cameron': 0.16; 'sept': 0.16; 'subject:2.7': 0.16; 'subject:stop': 0.16; 'subject:thread': 0.16; 'thread.': 0.16; 'url:tutor': 0.16; 'wrote:': 0.16; 'python': 0.16; 'thu,': 0.19; 'to:addr:python-list': 0.20; 'subject:: [': 0.21; 'subject:] ': 0.21; 'to:no real name:2**1': 0.22; 'code': 0.23; 'subject:How': 0.23; 'url-ip:188.166.95.178/32': 0.25; 'url- ip:188.166.95/24': 0.25; 'url:listinfo': 0.25; 'url- ip:188.166/16': 0.25; 'function': 0.27; 'event.': 0.28; 'this?': 0.29; 'skip:_ 40': 0.31; 'url-ip:188/8': 0.31; 'subject:Tutor': 0.32; 'message-id:@mail.gmail.com': 0.32; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34; 'from:addr:gmail.com': 0.35; 'change': 0.36; 'could': 0.38; 'use': 0.39; 'hand': 0.40; 'event': 0.40; 'tutor': 0.61; 'pass': 0.64; 'your': 0.64; 'outside': 0.67; 'unsubscribe': 0.72; 'subject:specific': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727314457; x=1727919257; darn=python.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Ykf2FbSi4qxx/PaLaLTqxzhpdXZj0BvtxnoMA1Nqjj4=; b=O9UBTzvzDMQ+SmN+HCNRQQlCn3FO5aXTrFqAPAOSALx5V5aMw2bc+pW98MRmPPe1dK 9crTpf3xnuTacRAlCPT8b7aJ4/uQMec0P87vk3s5mL9KBeWUlZwiiIr2uInA7Y09UC1n k8pT4ddaelYUIEVbIeBp5Rp0qx861ygtvEq+JqpZYRPm4yIZ2SVw8aF+2pA8lLFt1NgG JxsH1lTCsPyT0JsY565VdWHUFGJZAgYqrGU3wXsNJMLeOA57co3s1zL+gLUTpnjX8i9P 4b822E/Duzg+UWcsSoo+1Xd2iqkGqOChjrM1RGcDdF7MfMTrAAO3+MMo8vLUcIyZgYwc ELmA==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727314457; x=1727919257; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ykf2FbSi4qxx/PaLaLTqxzhpdXZj0BvtxnoMA1Nqjj4=; b=QE/STnzqRkHR/aGWs4QHo8lk5BKtwmkqa09neuz+0/3KWFv5hTGAbctD47lwLgYoVN 0Njz8fjvkKyE0jFuxtwUjjMI+0XcIs9bC4IbgtPBZJzG8cWXYk3QZDC74iGLgcgHAQRu Hbr+9aaW+J/oSSRIWBX/vu01eurdjAVdgN7S7VdASMxOgIscNfXUmOKJyZmWSQyW0SI4 55iEgPXs4wC0wxdNtaTLftBMhA17niWSya/w9qTUQmLhksS53DDiJMyEJO96cctaY4nX lL9vMU1ynw02sSmafLJ+P2cdUqg/eaf4u0C2u1SJ8lpc+JlWdw7gbdQz6yIG+d3XXQTU E6yQ==
X-Forwarded-Encrypted i=1; AJvYcCWLEjKy727Nth73ve7giix04efKuJYQdmO1bobOe47ZK1Hvx18hyxWNm3Z+XCTLmSHHkJd00xrlMdkGhw==@python.org
X-Gm-Message-State AOJu0Yy1K/LN7VAef53huMd8n7Z4wrQBjKEHn9fd2UEmsUBul0cHZ4jc bERGhljdD164b37/yjSBA3nHrxvq3kaMJsJMu/lObi1FVosGtDNmZVBdo4yrj1TrE0sgFfTD7XX +UU8wkGtT8t9iODd28gYetAKldutwtg==
X-Google-Smtp-Source AGHT+IHtBV6m/vw3Sz/MHDl4XdzfBk4jc+BVAumMFpNtkIUwarMgZUjwMP4o9u7C0sDaWcn1BcbQ5nORlUTxtdM5Fdc=
X-Received by 2002:a05:690c:730a:b0:6ae:e4b8:6a46 with SMTP id 00721157ae682-6e21da8c2b6mr47023557b3.44.1727314457340; Wed, 25 Sep 2024 18:34:17 -0700 (PDT)
In-Reply-To <ZvSzeyCOL1fd97UJ@cskk.homeip.net>
X-Content-Filtered-By Mailman/MimeDel 2.1.39
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 <CAGJtH9ReXKatCd45MXcqQqr+2ZA3y0i_hwyK_4ETDUw+W-1jQw@mail.gmail.com>
X-Mailman-Original-References <CAGJtH9QwwYDRcqkM7Vtgy_ZraOZbrCcsyGODveNPFtpT7+L_6g@mail.gmail.com> <ZvSzeyCOL1fd97UJ@cskk.homeip.net>
Xref csiph.com comp.lang.python:196756

Show key headers only | View raw


Could you show a python code example of this?


On Thu, 26 Sept 2024, 03:08 Cameron Simpson, <cs@cskk.id.au> wrote:

> 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.
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: [Tutor] How to stop a specific thread in Python 2.7? marc nicole <mk1853387@gmail.com> - 2024-09-26 03:34 +0200

csiph-web