Deutsch   English   Français   Italiano  
<mailman.95.1738284090.2912.python-list@python.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: Rob Cliffe <rob.cliffe@btinternet.com>
Newsgroups: comp.lang.python
Subject: sys.call_tracing
Date: Fri, 31 Jan 2025 00:38:38 +0000
Lines: 22
Message-ID: <mailman.95.1738284090.2912.python-list@python.org>
References: <a5f32320-e41a-4991-9ffc-89ee06e3df69@btinternet.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de YGXxNjxv6LNjveii8AohXQdgBC/N70lrkJe4CREKAMow==
Cancel-Lock: sha1:IcB53AIrAe4oQOrv68CPnGGzt7M= sha256:dzSweKof8FT9QSHbRjWOkzCoR4QRtnbuw3qFVTR7yo4=
Return-Path: <rob.cliffe@btinternet.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=btinternet.com header.i=@btinternet.com header.b=XlMSK7Bz;
 dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.126
X-Spam-Level: *
X-Spam-Evidence: '*H*': 0.77; '*S*': 0.02; 'debug': 0.07; 'infinite':
 0.09; 'afterwards.': 0.16; 'debugger': 0.16; 'explicit': 0.16;
 'recursion': 0.16; 'code.': 0.19; 'to:addr:python-list': 0.20;
 'function': 0.27; 'header:User-Agent:1': 0.30; 'module': 0.31;
 "doesn't": 0.32; 'to:name:python': 0.32; 'received:192.168.1':
 0.32; 'there': 0.33; 'received:192.168': 0.37; 'url-
 ip:151.101.0.223/32': 0.38; 'url-ip:151.101.128.223/32': 0.38;
 'url-ip:151.101.192.223/32': 0.38; 'url-ip:151.101.64.223/32':
 0.38; 'wishes': 0.40; 'best': 0.61; 'profile': 0.64; 'enabled.':
 0.84; 'restored': 0.84; 'rob': 0.84; 'saved,': 0.84; 'skip:| 10':
 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btinternet.com;
 s=btmx2012311; t=1738284087; 
 bh=lhPfhrCsL+k0waXDk+tVlUbBKeAB3BOsBxREn+/geKY=;
 h=Message-ID:Date:MIME-Version:To:From:Subject;
 b=XlMSK7Bz88qThPz9ijSeJg6PtBbAUlEo6v3HXjnt1m5N4kqjm3DjJK6CVxsAZZAS8VAx+V7XZp/ZDe0U8q0FGT+/kJuQLWy18jROVt3hDYYPUChx/0H6UXM9AkEjZFtiP3PDw1QjO2h1LtqajVLDoNVUz+CIOeZh6a14SsgWVoJPfQSJv3lnPZo3UwbMknktPRiTNIHDjdxmlLCYvny62fnlS6oOltu0B79MOQEsFjrB/mLQMuo7ARSxpnFOOSI5lZCfp7pa/TWKc/gpa9cP81B8ZM/4qiDYV7I3d/k5uOA0EAf8m/tzC2L1Tj19xcUNN/C1Cc4AFBoV8NWkp4oVKg==
X-SNCR-Rigid: 674901FF06CC3848
X-Originating-IP: [86.188.58.1]
X-OWM-Source-IP: 86.188.58.1
X-OWM-Env-Sender: rob.cliffe@btinternet.com
X-VadeSecure-score: verdict=clean score=0/300, class=clean
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdejfedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecunecujfgurheptgfkffggfgfvhffusegrtderredtvdejnecuhfhrohhmpeftohgsucevlhhifhhfvgcuoehrohgsrdgtlhhifhhfvgessghtihhnthgvrhhnvghtrdgtohhmqeenucggtffrrghtthgvrhhnpedtuedtuefggedvkefffeeuueduueejheeihfehheetvedtieeifffflefgvdekueenucffohhmrghinhepphihthhhohhnrdhorhhgnecukfhppeekiedrudekkedrheekrddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddvtdekngdpihhnvghtpeekiedrudekkedrheekrddupdhmrghilhhfrhhomheprhhosgdrtghlihhffhgvsegsthhinhhtvghrnhgvthdrtghomhdprhgvvhfkrfephhhoshhtkeeiqddukeekqdehkedquddrrhgrnhhgvgekiedqudekkedrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrheprhhosgdrtghlihhffhgvsegsthhinhhtvghrnhgvthdrtghomhdpghgvohfkrfepifeupdfovfetjfhoshhtpegsthhprhgurhhgohdttdekpdhnsggprhgtphhtthhopedupdhrtghpthhtohepphihthhhohhnqdhlihhsthesphihthhhohhnrdhorhhg
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
X-SNCR-hdrdom: btinternet.com
X-SNCR-hdrdom: btinternet.com
X-SNCR-hdrdom: btinternet.com
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
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: <a5f32320-e41a-4991-9ffc-89ee06e3df69@btinternet.com>
Bytes: 5264

 From the documentation on the sys module at 
https://docs.python.org/3/library/sys.html:

sys.call_tracing(/func/, /args/)
Call |func(*args)|, while tracing is enabled. The tracing state is 
saved, and restored afterwards. This is intended to be called from a 
debugger from a checkpoint, to recursively debug or profile some other 
code.
Tracing is suspended while calling a tracing function set by 
|settrace()| <https://docs.python.org/3/library/sys.html#sys.settrace> 
or |setprofile()| 
<https://docs.python.org/3/library/sys.html#sys.setprofile> to avoid 
infinite recursion. |call_tracing()| enables explicit recursion of the 
tracing function.
Is there any reason it doesn't support
sys.call_tracing(/func/, /args/, kargs)
to call
func(*args, **kargs)
?
Best wishes
Rob Cliffe