[Python-ideas] Re: Make fnmatch.filter accept a tuple of patterns

2021-03-26 Thread Peter Otten
On 24/03/2021 23:35, [email protected] wrote: Several attempts in this thread to write "simpler" code that does this job proved to be buggy. I feel there's some ground to say that having this in the library could prevent other less talented writers make those or even bigger mistakes. I feel a

[Python-ideas] Allow adding custom logging levels as attributes

2021-03-26 Thread harry . lees
I have just been writing some code in which I define a custom log level with the logging module. I wanted to call the new log level as an attribute but currently the logging library lacks a nice way to do this. I know that in the docs https://docs.python.org/3/howto/logging.html#custom-levels it

[Python-ideas] A "name" attribute for synchronization primitives

2021-03-26 Thread Patrick Riehecky
Hello, I've been chasing down various synchronization bugs in a large codebase I'm working on. In the process I began to realize how useful it would be to have some sort of descriptor (a name if you will) attached to some of my primitives. In this code base, I've a number of threading.Event obje

[Python-ideas] Re: A "name" attribute for synchronization primitives

2021-03-26 Thread Chris Angelico
On Sat, Mar 27, 2021 at 6:01 AM Patrick Riehecky wrote: > > Hello, > > I've been chasing down various synchronization bugs in a large codebase > I'm working on. > > In the process I began to realize how useful it would be to have some > sort of descriptor (a name if you will) attached to some of m