[Python-ideas] Re: Add InvalidStateError to the standard exception hierarchy

2022-09-03 Thread Bluenix
I am not sure this is necessary: RuntimeError already encapsulates this somewhat well. You'll find RuntimeError already widely used, especially in concurrency where it is easy to get into a situation where the state is invalid for a specific action.

[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2022-06-12 Thread Bluenix
I stumbled upon PEP 671 again today, and for what it's worth I fully agree with everything said here. For the same reasons as you listed, I am generally opposed to PEP 671. Wrapping functions in one way or another is extremely common and this PEP will make a problem which is currently super

[Python-ideas] Re: disallow assignment to unknown ssl.SSLContext attributes

2021-06-25 Thread Bluenix
I am not fully aware of how ssl.SSLContext is used, but adding __slots__ would prevent this. You would see an error similar to: AttributeError: 'MyClass' object has no attribute 'my_attribute' ___ Python-ideas mailing list -- python-ideas@python.org To