[Python-Dev] Re: glob's new include_hidden parameter

2022-09-12 Thread Mats Wichmann
On 9/12/22 19:48, Eryk Sun wrote: On 9/12/22, Mats Wichmann wrote: If `include_hidden` is true, the patterns '*', '?', '**' will match hidden directories. Shouldn't this explain what a "hidden directory" is? For example, a Windows user may think this means a

[Python-Dev] glob's new include_hidden parameter

2022-09-12 Thread Mats Wichmann
Just spotted that 3.11 adds an include_hidden. At the moment a little confused because there's an apparent mismatch between docstring and docs. Lib/glob.py: If `include_hidden` is true, the patterns '*', '?', '**' will match hidden directories. Doc/library/glob.rst: If

[Python-Dev] Re: Switching to Discourse

2022-07-21 Thread Mats Wichmann
On 7/21/22 11:16, Skip Montanaro wrote: >> No, Discord is a different thing; it does text and voice communication >> channels in real-time. If you're familiar with Slack, it's broadly >> similar in purpose. > > Thanks (and to the others who replied). It seems like they've tried to > make it a

[Python-Dev] Re: Switching to Discourse

2022-07-21 Thread Mats Wichmann
On 7/21/22 11:11, Mariatta wrote: > > > On Thu, Jul 21, 2022 at 10:05 AM Skip Montanaro > mailto:skip.montan...@gmail.com>> wrote: > > I have a perhaps stupid question. Is Discord the same as > discuss.python.org , just by another > name? I find the

[Python-Dev] Re: 3.11 enhanced error location - can it be smarter?

2022-07-13 Thread Mats Wichmann
On 7/12/22 00:11, John Belmonte wrote: > On 1/18/22 10:43 AM, Mats Wichmann wrote: > >> A thought - how about omitting the underline line if the >> to-be-underlined part would be the whole line? > > I wasn't aware of this thread, but that's exactly what I implemented fo

[Python-Dev] Re: [RELEASE] The first Python 3.11 beta (3.11.0b1) is available - Feature freeze is here

2022-05-08 Thread Mats Wichmann
On 5/7/22 21:22, Pablo Galindo Salgado wrote: > We **strongly encourage** maintainers of third-party Python projects to > **test with 3.11** during the beta phase and report issues found to [the > Python bug tracker](https://bugs.python.org ) > as soon as possible. 

[Python-Dev] Re: Increase of Spammy PRs and PR reviews

2022-01-30 Thread Mats Wichmann
On 1/30/22 04:45, Inada Naoki wrote: > On Sun, Jan 30, 2022 at 7:37 PM Irit Katriel > wrote: > Some people may do "approval without review" to make their "Profile" > page richer, because GitHub counts it as a contribution. > Creating spam issues or pull requests can be reported as spam very >

[Python-Dev] 3.11 enhanced error location - can it be smarter?

2022-01-18 Thread Mats Wichmann
"When printing tracebacks, the interpreter will now point to the exact expression that caused the error instead of just the line." I get the motivation for better error messages, but there are scenarios where you can't provide useful new information. I've been lax in getting to testing the

[Python-Dev] Re: Python 3.10 vs 3.8 performance degradation

2021-12-19 Thread Mats Wichmann
On 12/19/21 06:46, aivazian.tig...@gmail.com wrote: > Hello, > > Being a programmer myself I realise that a report on performance degradation > should ideally contain a small test program that clearly reproduces the > problem. However, unfortunately, I do not have the time at present to isolate

[Python-Dev] Re: Repealing PEP 509 (Add a private version to dict)

2021-07-30 Thread Mats Wichmann
On 7/29/21 1:32 PM, Brett Cannon wrote: On Thu, Jul 29, 2021 at 3:47 AM Mark Shannon > wrote: Hi everyone, I would like to repeal PEP 509. We don't really have a process for repealing a PEP. Presumably I would just write another PEP. Yeah, it's probably

[Python-Dev] Re: Speeding up CPython

2021-05-13 Thread Mats Wichmann
On 5/12/21 4:10 PM, Terry Reedy wrote: On 5/12/2021 5:14 PM, Antoine Pitrou wrote: On Wed, 12 May 2021 17:05:03 -0400 Terry Reedy wrote: Yet you always see it: new people not knowing where to start, highly skilled contributors drowning and intermediate contributors moving slowly I have

[Python-Dev] Re: Security releases of CPython

2021-02-20 Thread Mats Wichmann
On 2/19/21 11:55 PM, Steve Holden wrote: The PSF needs needs sufficient money to hire a couple of people, so the PSF can turn release management and security maintenance from unpaid volunteers into paid fulltime jobs. Oh, is that all? Sustainability of the PSF, as has been shown

[Python-Dev] Re: Python 0.9.1

2021-02-16 Thread Mats Wichmann
On 2/16/21 3:44 PM, Guido van Rossum wrote: Awesome, Skip! Was there a date somewhere? I can't recall if this would have been the first open source release (from just about 30 years ago, sometime in February 1991) or some time later in the same year? Guido van Rossum unread, Python 0.9.1 part

[Python-Dev] Re: Python standardization

2021-02-13 Thread Mats Wichmann
On 2/12/21 5:19 PM, Guido van Rossum wrote: From talking to people who at various times have participated in a language standardization process, I've learned that it's not a panacea, it's an enormous amount of work, it doesn't guarantee a good outcome, and plenty of languages do just fine

[Python-Dev] Re: 3.10 change (?) for __bool__

2021-01-11 Thread Mats Wichmann
On 1/11/21 1:00 PM, Guido van Rossum wrote: All that said (I agree it's surprising that 3.10 seems backwards incompatible here) I would personally not raise AttributeError but TypeError in the `__bool__()` method. eh, that was just me picking a cheap something to demo it. the program raises

[Python-Dev] Re: 3.10 change (?) for __bool__

2021-01-11 Thread Mats Wichmann
On 1/8/21 4:31 PM, Mats Wichmann wrote: Someone reported a testsuite break on stuff I work on (scons) with 3.10a4, and it looks similar to this which appears in the changelog at https://docs.python.org/3.10/whatsnew/changelog.html#changelog bpo-23898: Fix inspect.classify_class_attrs

[Python-Dev] 3.10 change (?) for __bool__

2021-01-08 Thread Mats Wichmann
Someone reported a testsuite break on stuff I work on (scons) with 3.10a4, and it looks similar to this which appears in the changelog at https://docs.python.org/3.10/whatsnew/changelog.html#changelog bpo-23898: Fix inspect.classify_class_attrs() to support attributes with overloaded

[Python-Dev] nanosecond stat fields, but not os.path methods ?

2020-12-07 Thread Mats Wichmann
there are stat fields now for ns precision, e.g. st_mtime now has an analogue st_mtime_ns. But os.path didn't grow corresponding methods - there's an os.path.getmtime but not _ms. Was that intentional? The wrappers in genericpath.py are trivial and arguably aren't particularly needed, but

[Python-Dev] Re: Please do not remove random bits of information from the tutorial

2020-11-10 Thread Mats Wichmann
On 11/9/20 12:46 PM, Mike Miller wrote: On 2020-11-09 10:44, Simon Cross wrote: That's quite subjective. Personally I prefer a more complete tutorial which explains many details so that I don't immediately run into fundamentals I don't understand when I start using what I've learned. K was

[Python-Dev] Re: Who is target reader of tutorial?

2020-11-06 Thread Mats Wichmann
On 11/6/20 9:07 AM, Marco Sulla wrote: I started to learn Python with the tutorial, and two things come into my mind: 1. The class section seems quite difficult and intimidating for a novel, while classes in Python are really more simple than in other OO languages Indeed - we got some

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

2020-10-19 Thread Mats Wichmann
On 10/19/20 9:52 AM, Gregory P. Smith wrote: > > > On Mon, Oct 19, 2020 at 6:28 AM Ivan Pozdeev via Python-Dev > mailto:python-dev@python.org>> wrote: > > > On 19.10.2020 14:47, Steve Dower wrote: > > On 19Oct2020 1242, Steve Dower wrote: > >> On 15Oct2020 2239, Rob Cliffe via

[Python-Dev] Re: unable to create PR on github

2020-09-23 Thread Mats Wichmann
On 9/22/20 1:20 AM, Antoine Pitrou wrote: > On Mon, 21 Sep 2020 20:56:18 -0700 > Ethan Furman wrote: >> And even more data: >> >> I added a body to the PR I was originally having trouble with: >>button stayed gray >> >> I went away for a while, say 5 - 10 minutes, and when I went back to >>

[Python-Dev] Re: Python 4 FAQ

2020-09-16 Thread Mats Wichmann
On 9/15/20 8:54 PM, Steven D'Aprano wrote: > There's still a lot of community angst over the possibility that > some hypothetical Python 4 will be like the 2/3 transition. Some people > even imagine that the version after 3.9 could be that transition. > > I know we're not responsible for the

[Python-Dev] Re: Python Documentation, Python language improvement, and productive discussion

2020-08-09 Thread Mats Wichmann
On 8/5/20 10:43 AM, Dominic Davis-Foster wrote: > Hi Carol, > > I was wondering if you've been able to set up the workgroup yet? I'd > certainly be interested in participating the there's an opportunity. > > > Stay safe > > Dom Indeed, I was wondering if there were any updates - I'm also

[Python-Dev] Re: Accepting PEP 602 -- Annual Release Cycle for Python

2019-10-31 Thread Mats Wichmann
On 10/30/19 4:20 PM, Barry Warsaw wrote: On Oct 30, 2019, at 14:31, Łukasz Langa wrote: Yes. This allows for synchronizing the schedule of Python release management with Fedora. They've been historically very helpful in early finding regressions not only in core Python but also in