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

2021-01-28 Thread Nathaniel Smith
On Thu, Jan 28, 2021 at 9:03 PM Gregory P. Smith wrote: > > On Thu, Jan 28, 2021 at 10:52 AM Charalampos Stratakis > wrote: >> >> >> >> - Original Message - >> > From: "Mark Shannon" >> > To: "Python Dev" >> > Sent: Thursday, January 28, 2021 5:26:37 PM >> > Subject: [Python-Dev] Why

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

2021-01-28 Thread Gregory P. Smith
On Thu, Jan 28, 2021 at 10:52 AM Charalampos Stratakis wrote: > > > - Original Message - > > From: "Mark Shannon" > > To: "Python Dev" > > Sent: Thursday, January 28, 2021 5:26:37 PM > > Subject: [Python-Dev] Why aren't we allowing the use of C11? > > > > Hi everyone, > > > > PEP 7

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

2021-01-28 Thread Guido van Rossum
On Thu, Jan 28, 2021 at 8:08 PM Terry Reedy wrote: > On 1/27/2021 7:01 PM, Guido van Rossum wrote: > > It's likely that the additions are going to break someone's code; > > Since at least 2007, when Georg moved the 3i reST tree into the 3k > branch, the instances have been described as

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

2021-01-28 Thread Terry Reedy
On 1/27/2021 7:01 PM, Guido van Rossum wrote: It's likely that the additions are going to break someone's code; Since at least 2007, when Georg moved the 3i reST tree into the 3k branch, the instances have been described as "Class/Function Descriptor Objects", returned by readmodule(_ex),

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

2021-01-28 Thread Emily Bowman
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 license it's not. They've gone 100% subscription now, but people

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

2021-01-28 Thread MRAB
On 2021-01-28 19:20, Terry Reedy wrote: On 1/28/2021 11:26 AM, Mark Shannon wrote: PEP 7 says that C code should conform to C89 with a subset of C99 allowed. As I remember, when the Python C dialect was discussed about 4 years ago, no one seriously proposed moving beyond a subset of C99

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

2021-01-28 Thread Terry Reedy
On 1/28/2021 11:26 AM, Mark Shannon wrote: PEP 7 says that C code should conform to C89 with a subset of C99 allowed. As I remember, when the Python C dialect was discussed about 4 years ago, no one seriously proposed moving beyond a subset of C99 addition, because of the state of MSVC.

[Python-Dev] Re: New sys.module_names attribute in Python 3.10: list of all stdlib modules

2021-01-28 Thread Jim J. Jewett
I see a bunch of similar -- but not quite the same -- use cases. I feel like instead of a set, it should be a dict pointing to an object with attributes that describe the module in various ways (top-level vs subpackage, installed on this machine or not, test module or not, etc). I'll

[Python-Dev] Re: New sys.module_names attribute in Python 3.10: list of all stdlib modules

2021-01-28 Thread Jim J. Jewett
I probably wouldn't think of that on my own, but the need is rare enough that having the recipe in the documentation (preferably including the docstring) might be enough. (Or it might not.) ___ Python-Dev mailing list -- python-dev@python.org To

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

2021-01-28 Thread Charalampos Stratakis
- Original Message - > From: "Mark Shannon" > To: "Python Dev" > Sent: Thursday, January 28, 2021 5:26:37 PM > Subject: [Python-Dev] Why aren't we allowing the use of C11? > > Hi everyone, > > PEP 7 says that C code should conform to C89 with a subset of C99 allowed. > It's 2021 and

[Python-Dev] PR review request: shutil permission errors

2021-01-28 Thread Winson Luk
Hi folks, I've had an open PR for a few weeks that still needs a review: https://github.com/python/cpython/pull/24001 This PR fixes a shutil.move() bug when permission to a directory is denied. Thanks, Winson ___ Python-Dev mailing list --

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

2021-01-28 Thread Antoine Pitrou
On Thu, 28 Jan 2021 16:26:37 + Mark Shannon wrote: > Hi everyone, > > PEP 7 says that C code should conform to C89 with a subset of C99 allowed. > It's 2021 and all the major compilers support C11 (ignoring the optional > parts). I think that CPython is supposed to compile on

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

2021-01-28 Thread Brett Cannon
On Thu, Jan 28, 2021 at 8:31 AM Mark Shannon wrote: > Hi everyone, > > PEP 7 says that C code should conform to C89 with a subset of C99 allowed. > It's 2021 and all the major compilers support C11 (ignoring the optional > parts). > > C11 has support for thread locals, static asserts, and

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

2021-01-28 Thread Mark Shannon
Hi everyone, PEP 7 says that C code should conform to C89 with a subset of C99 allowed. It's 2021 and all the major compilers support C11 (ignoring the optional parts). C11 has support for thread locals, static asserts, and anonymous structs and unions. All useful features. Is there a good

[Python-Dev] Comments on PEP 558

2021-01-28 Thread Mark Shannon
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 return a dedicated proxy type (implemented as a private subclass