[Python-Dev] Re: What is the pyclbr public API?

2021-01-29 Thread Guido van Rossum
+1 On Fri, Jan 29, 2021 at 6:28 PM Terry Reedy wrote: > On 1/29/2021 8:57 PM, Guido van Rossum wrote: > > On Fri, Jan 29, 2021 at 5:39 PM Terry Reedy > > wrote: > > > > Guido, thank you for the helpful discussion. I now think that we > > should > > just add

[Python-Dev] Re: Comments on PEP 558

2021-01-29 Thread Nick Coghlan
On Sat, 30 Jan 2021 at 10:30, Nick Coghlan wrote: > On Sat, 30 Jan 2021, 12:13 am Mark Shannon, wrote: >> With a direct proxy coherency is not an issue. > > For things in the frame, it *is* a direct proxy - reads pull from the frame > object, and writes go to both the frame object and the mappin

[Python-Dev] Re: Improve CPython tracing performance

2021-01-29 Thread Nick Coghlan
On Wed, 20 Jan 2021 at 19:22, Victor Stinner wrote: > > Reply to an old thread. > > On Sat, Oct 31, 2020 at 8:02 AM Nick Coghlan wrote: > > > Debuggers and profilers usually only care of specific frames or > > > function calls (ex: 10% of function calls or even a single function > > > call in a w

[Python-Dev] Re: What is the pyclbr public API?

2021-01-29 Thread Terry Reedy
On 1/29/2021 8:57 PM, Guido van Rossum wrote: On Fri, Jan 29, 2021 at 5:39 PM Terry Reedy > wrote: Guido, thank you for the helpful discussion.  I now think that we should just add 'end_lineno=None' at the end of the Function/Class __init__ signatures.  p

[Python-Dev] Re: What is the pyclbr public API?

2021-01-29 Thread Guido van Rossum
On Fri, Jan 29, 2021 at 5:39 PM Terry Reedy wrote: > Guido, thank you for the helpful discussion. I now think that we should > just add 'end_lineno=None' at the end of the Function/Class __init__ > signatures. pyclbr makes one call to each to contruct the tree it > returns, and the test functio

[Python-Dev] Re: What is the pyclbr public API?

2021-01-29 Thread Terry Reedy
Guido, thank you for the helpful discussion. I now think that we should just add 'end_lineno=None' at the end of the Function/Class __init__ signatures. pyclbr makes one call to each to contruct the tree it returns, and the test functions make another call to each. If those are the only two

[Python-Dev] Re: Comments on PEP 558

2021-01-29 Thread Nick Coghlan
On Sat, 30 Jan 2021, 12:13 am Mark Shannon, wrote: > Hi > > It is a lot more complex, because you need to worry about coherency. > With a direct proxy coherency is not an issue. > For things in the frame, it *is* a direct proxy - reads pull from the frame object, and writes go to both the frame

[Python-Dev] Re: Why aren't we allowing the use of C11?

2021-01-29 Thread Random832
On Thu, Jan 28, 2021, at 22:57, Emily Bowman wrote: > > On Thu, Jan 28, 2021 at 1:31 PM MRAB wrote: > > I have Microsoft Visual Studio Community 2019 Version 16.8.4 (it's free) > > and it supports C11 and C17. > > While an upgrade for Community is free, for Pro/Enterprise without an > annual

[Python-Dev] Re: Why aren't we allowing the use of C11?

2021-01-29 Thread Ivan Pozdeev via Python-Dev
On 29.01.2021 20:15, Victor Stinner wrote: Hi Mark, I tried to use C11 _Thread_local (Thread Local Storage, TLS) only with GCC and clang and I got issues on macOS: https://github.com/python/cpython/pull/23976 My PR uses __thread if _Thread_local is not available. I don't think that MSC (Visu

[Python-Dev] Summary of Python tracker Issues

2021-01-29 Thread Python tracker
ACTIVITY SUMMARY (2021-01-22 - 2021-01-29) Python tracker at https://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open7588 (+10) closed 47211 (+50) total 54799 (+60) Open issues wi

[Python-Dev] Re: Why aren't we allowing the use of C11?

2021-01-29 Thread Victor Stinner
Hi Mark, I tried to use C11 _Thread_local (Thread Local Storage, TLS) only with GCC and clang and I got issues on macOS: https://github.com/python/cpython/pull/23976 My PR uses __thread if _Thread_local is not available. I don't think that MSC (Visual Studio) implements C11 _Thread_local, but it

[Python-Dev] Re: Why aren't we allowing the use of C11?

2021-01-29 Thread Eric Snow
On Thu, Jan 28, 2021 at 9:28 AM Mark Shannon wrote: > Is there a good reason not to start using C11 now? Would C17 be a better choice? It sounds like it exists to fix problems with C11 (and doesn't actually add any new features). -eric ___ Python-Dev

[Python-Dev] Re: Comments on PEP 558

2021-01-29 Thread Mark Shannon
Hi Nick, On 29/01/2021 1:21 pm, Nick Coghlan wrote: On Thu, 28 Jan 2021, 11:18 pm Mark Shannon, > wrote: Hi Nick, Regarding `f_locals` PEP 558 states: """ Instead of being a direct reference to the internal dynamic snapshot used to populate the inde

[Python-Dev] Re: Comments on PEP 558

2021-01-29 Thread Nick Coghlan
On Thu, 28 Jan 2021, 11:18 pm Mark Shannon, wrote: > > Hi Nick, > > Regarding `f_locals` PEP 558 states: > > """ > Instead of being a direct reference to the internal dynamic snapshot > used to populate the independent snapshots returned by locals(), > frame.f_locals will be updated to instead re

[Python-Dev] Re: Why aren't we allowing the use of C11?

2021-01-29 Thread Charalampos Stratakis
- Original Message - > From: "Nathaniel Smith" > To: "Gregory P. Smith" > Cc: "Charalampos Stratakis" , "Python Dev" > > Sent: Friday, January 29, 2021 6:29:58 AM > Subject: Re: [Python-Dev] Re: Why aren't we allowing the use of C11? > > On Thu, Jan 28, 2021 at 9:03 PM Gregory P. Sm