[Python-Dev] Re: os.scandir bug in Windows?

2020-10-28 Thread Eryk Sun
On 10/28/20, Stephen J. Turnbull wrote: > > Note: you can "fix" directory updates by mounting the filesystem r/o. Mounting the filesystem as readonly is the extreme case. Popular Unix systems support a "noatime" mount option that disables updating file access times, unless one of the other

[Python-Dev] Accepting PEP 626

2020-10-28 Thread Pablo Galindo Salgado
On behalf of the steering council, I am happy to announce that as BDFL-Delegate I am accepting PEP 626 -- Precise line numbers for debugging and other tools. I am confident this PEP will result in a better experience for debuggers, profilers and tools that rely on tracing functions. All the

[Python-Dev] Re: fail keyword like there is pass keyword

2020-10-28 Thread Luciano Ramalho
Homonyms are words spelled the same way with different meanings, like bat (flying mammal) and bat (club used to hit a baseball) (btw, club (a blunt instrument) and club (a closed association of people))... In 22 years of programming Python, I always understood the "pass" keyword as "to forgo an

[Python-Dev] Steering Council Election Timeline for 2021 term

2020-10-28 Thread Ewa Jodlowska
Hi! The timeline for this year's election will be the same as last year. * The nomination period will begin Nov 1, 2020 (do not post nominations until then) * Nomination period will end Nov 15, 2020 * Voting will begin Dec 1, 2020 * Voting will end Dec 15, 2020 Nominations will be collected via

[Python-Dev] Re: fail keyword like there is pass keyword

2020-10-28 Thread Jonathan Goble
On Wed, Oct 28, 2020 at 12:48 PM Emily Bowman wrote: > On Wed, Oct 28, 2020 at 6:49 AM Jean Abou Samra > wrote: > >> where `impossible` raises AssertionError. >> > > Reserving a common English word as a new keyword (whether fail or > impossible) is the mother of all breaking changes. The

[Python-Dev] Re: fail keyword like there is pass keyword

2020-10-28 Thread Emily Bowman
On Wed, Oct 28, 2020 at 6:49 AM Jean Abou Samra wrote: > where `impossible` raises AssertionError. > Reserving a common English word as a new keyword (whether fail or impossible) is the mother of all breaking changes. The syntactic sugar it provides is not only tiny, it's pretty much negative,

[Python-Dev] Re: fail keyword like there is pass keyword

2020-10-28 Thread Jean Abou Samra
Hello, In the context of pattern matching, not accepting a match subject that does not match any of the case clauses is probably going to be frequent if not the most frequent. Thus, when PEP 634, 635, 636 are -- hopefully -- accepted, and experience with the feature is gained, this idea might be

[Python-Dev] Re: Macro for logging

2020-10-28 Thread Serhiy Storchaka
21.10.20 15:30, Antoine Pitrou пише: > On Wed, 21 Oct 2020 14:19:37 +0200 > Marco Sulla wrote: >> If not already present, do you think it's useful to add a macro that does >> something like >> >> # ifdef Py_DEBUG >> fprintf(stderr, "%s\n", message); >> # endif > > In general, you want to do

[Python-Dev] Re: Macro for logging

2020-10-28 Thread Marco Sulla
Thank you Victor, I know. I meant a macro in CPython. Maybe not so sane to have a unique global logger in C, as Antoine pointed out. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org

[Python-Dev] Re: _PyBytesWriter/_PyUnicodeWriter could be faster

2020-10-28 Thread Ma Lin
Thanks for your very informative reply. I replied you in issue41486. Maybe memory blocks will not bring performance improvement to _PyBytesWriter/_PyUnicodeWriter, which is a bit frustrating. > For a+b, Python first computes "a", then "b", and finally "a+b". I don't see > how your API could

[Python-Dev] Re: os.scandir bug in Windows?

2020-10-28 Thread Stephen J. Turnbull
Greg Ewing writes: > Also it's kind of weird that just looking at data on the > disk can change something about it. The "something about it" *did* change. The world is a dynamic entity, it does change. What you think is weird is that the metadata change is recorded. Note: you can "fix"