[Python-Dev] Re: Deadlock when interrupting interpreter initialisation with ptrace?

2022-06-06 Thread Gabriele
ch I've only seen during interpreter initialisation. So perhaps Python itself is off the hook! On Mon, 6 Jun 2022 at 19:20, Barry Scott wrote: > > > > On 6 Jun 2022, at 17:52, Gabriele wrote: > > I've found it hard to give an answer to this question. Because austinp > is

[Python-Dev] Re: Deadlock when interrupting interpreter initialisation with ptrace?

2022-06-06 Thread Gabriele
ould have clarified that this is just a plain fork/exec from C: https://github.com/P403n1x87/austin/blob/e3d79ddc9f9737a791362e6962b5cac25a4e3dc2/src/py_proc.c#L972-L1010 Cheers, Gabriele On Mon, 6 Jun 2022 at 16:30, Victor Stinner wrote: > > On Mon, Jun 6, 2022 at 4:35 PM Gabriele wrote:

[Python-Dev] Deadlock when interrupting interpreter initialisation with ptrace?

2022-06-06 Thread Gabriele
Python to be expected or is it perhaps an indication of a potential bug? Whilst I find it conceivable that something like this could happen, given the locking that happens around imports, is it acceptable that the pausing and resuming of the execution of a thread lead to a potential deadlock? Cheers, Ga

[Python-Dev] Re: code.replace() and Python 3.11 exception table

2022-04-01 Thread Gabriele
Does this mean that this line in the bytecode library is likely to fail with 3.11, with no way to fix it? https://github.com/MatthieuDartiailh/bytecode/blob/7b0423234b0e999b45a4eb0c58115b284314f46b/bytecode/concrete.py#L398 On Fri, 1 Apr 2022, 10:40 Victor Stinner, wrote: > I created

[Python-Dev] Request for feedback on new features for 3.11

2022-03-17 Thread Gabriele
atible way. However, I am not very satisfied with the way I have implemented this for now, nor can I think of a better solution. Cheers, Gabriele ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python

[Python-Dev] Re: Compiling of ast.Module in Python 3.10 and co_firstlineno behavior

2022-02-17 Thread Gabriele
Hi Fabio Does the actual function object get re-created as well during the recompilation process that you have described? Perhaps it might help to note that the __code__ attribute of a function object f can be mutated and that f is hashable? Cheers, Gabriele On Thu, 17 Feb 2022 at 19:33, Fabio

[Python-Dev] Re: About the new CFrame structure

2021-12-20 Thread Gabriele Tornetta
> That's already the case for 3.11 Ah, that's awesome news! Like with the rest, I'll wait and see what shape this ends up taking :). Cheers, Gab ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to

[Python-Dev] Re: About the new CFrame structure

2021-12-20 Thread Gabriele
be benefits from the locality of reference, although it's not obvious to me why this would be the case at the moment). Best, Gabriele On Mon, 20 Dec 2021 at 20:16, Pablo Galindo Salgado wrote: > Hi Gabriele, > > In addition to what Guido and Brandt have already said, I can help to you &

[Python-Dev] About the new CFrame structure

2021-12-20 Thread Gabriele
: either iterate over CFrame.previous, or the more traditional PyFrameObject.f_back. I suspect there are reasons why these are perhaps not actually equivalent, and indeed this is mainly what I'd like to read in the literature I've requested above. Cheers, Gabriele -- "Egli è scritto in l

[Python-Dev] Re: Question regarding the value of PyThreadState.thread_id

2021-04-17 Thread Gabriele
the new field added. I'm happy to do the work myself if it gets accepted. Cheers, Gabriele On Sat, 17 Apr 2021, 11:07 Victor Stinner, wrote: > Hi, > > There are two reasons: > > * PyThread_get_thread_native_id() was only added recently (Python 3.8) > * PyThread_ge

[Python-Dev] Question regarding the value of PyThreadState.thread_id

2021-04-16 Thread Gabriele
over to local VM and then guess where the tid field might be. So, if there's no fundamental reason for thread_id to be PyThread_get_thread_ident, I would like to propose to change it to PyThread_get_thread_native_id instead. Thanks, Gabriele -- "Egli è scritto in lingua matematica, e i cara

Re: [Python-Dev] What is the purpose of the _PyThreadState_Current symbol in Python 3?

2018-09-29 Thread Gabriele
Ah ok, this might be related to Victor's observation based on the latest sources. I haven't tested 3.7 yet, but if _PyRuntime is available from dynsym then this is already enough. Thanks, Gabriele On Sat, 29 Sep 2018 at 11:00, Nathaniel Smith wrote: > > On Fri, Sep 28, 2018 at 3:29 PM, Ga

Re: [Python-Dev] What is the purpose of the _PyThreadState_Current symbol in Python 3?

2018-09-28 Thread Gabriele
On Fri, 28 Sep 2018 at 23:12, Nathaniel Smith wrote: > What information do you wish the interpreter provided, that would make your > program simpler and more reliable? An exported global variable that points to the head of the PyInterpreterState linked list (i.e. the return value of

[Python-Dev] What is the purpose of the _PyThreadState_Current symbol in Python 3?

2018-09-28 Thread Gabriele
t periods where they sit idle waiting for a timer to trigger the next operations, that fire very quickly and put the threads back to sleep again. If this is what the _PyThreadState_Current is designed for, then I guess I cannot really rely on it, especially when attaching A

[Python-Dev] What is the purpose of the _PyThreadState_Current symbol in Python 3?

2018-09-26 Thread Gabriele
for finding a valid PyInterpreterState, is there a more reliable approach for the version of Python that I'm targeting? Thanks, Gabriele ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https