[Python-ideas] Re: A “big picture” question.

2022-06-10 Thread Steven D'Aprano
On Fri, Jun 10, 2022 at 09:59:36PM -0500, James Johnson wrote: > I guess I was jumping to conclusions. Thank you for taking the time to look > at my email. > > I apologize if I wasted your time. No stress -- opening issues up for discussion is not a waste of time. This would be a good time to

[Python-ideas] Re: A “big picture” question.

2022-06-10 Thread Steven D'Aprano
On Wed, Jun 08, 2022 at 06:51:54AM -0500, James Johnson wrote: > When an amateur develops code incorrectly, s/he sometimes ends up with a > code object that doesn’t run because of intermediate compiler optimizations. If that happens, that's a bug in the compiler. Optimizations should never

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

2022-06-10 Thread Thomas Grainger
No because existence of this attribute is dynamic On Fri, Jun 25, 2021, 3:44 PM Guido van Rossum wrote: > Would a static type checker have found this? > > On Fri, Jun 25, 2021 at 02:07 Thomas Grainger wrote: > >> I was debugging some code that was using TLSv1.2 when I expected it to >> only

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

2022-06-10 Thread Thomas Grainger
urllib3 was also burned by this problem https://github.com/urllib3/urllib3/issues/2636 On Fri, Jul 9, 2021, 5:39 PM Thomas Grainger wrote: > > if we find time to implement it for 3.11. > > https://www.python.org/dev/peps/pep-0543/#configuration > was Withdrawn > > would this need a new PEP? >

[Python-ideas] Re: A “big picture” question.

2022-06-10 Thread Chris Angelico
On Fri, 10 Jun 2022 at 21:20, James Johnson wrote: > > The unasked question never gets answered. I don’t know if you can practically > use the following suggestion, but it may be clarifying anyway. > > When an amateur develops code incorrectly, s/he sometimes ends up with a code > object that

[Python-ideas] A “big picture” question.

2022-06-10 Thread James Johnson
The unasked question never gets answered. I don’t know if you can practically use the following suggestion, but it may be clarifying anyway. When an amateur develops code incorrectly, s/he sometimes ends up with a code object that doesn’t run because of intermediate compiler optimizations. As an

[Python-ideas] Re: Null wildcard in de-structuring to ignore remainder and stop iterating

2022-06-10 Thread Rob Cliffe via Python-ideas
On 09/06/2022 10:28, Paul Moore wrote: On 09/06/2022 09:50, Paul Moore wrote: On Thu, 9 Jun 2022 at 01:12, Steve Jorgensen wrote: My current thinking in response to that is that using islice is a decent solution except that it's not obvious. You have to jump outside of the thinking about