[Python-ideas] Re: Comparison operator support (>= and <=) for type

2019-06-19 Thread Jeffrey Kintscher
On 6/19/19 8:56 AM, Franklin? Lee wrote: For example, if (A <: B or A <: C) and A <: D: This expression makes makes very clear the high-level logic being used to determine the relationships between A, B, C, and D that is being checked, and I just need to lookup what <: means to understand

[Python-ideas] Re: Comparison operator support (>= and <=) for type

2019-06-20 Thread Jeffrey Kintscher
On 6/20/19 3:03 PM, David Mertz wrote: On Wed, Jun 19, 2019, 7:35 PM Jeffrey Kintscher <mailto:websur...@surf2c.net>> wrote: It is not at all intuitive that issubclass(A, (B, C)) means "Is A a subclass of B or a subclass of C?" when it could also mean "

[Python-ideas] Re: 'Infinity' constant in Python

2020-09-04 Thread Jeffrey Kintscher
"from foo import *" is a really lazy programming practice that assumes there are no symbol clashes between the module's namespace and the current namespace.  It makes production code harder to maintain because the reader has to figure out whether a given function or class name is defined in the

[Python-ideas] Re: 'Infinity' constant in Python

2020-09-05 Thread Jeffrey Kintscher
On 9/5/20 12:00 AM, Stephen J. Turnbull wrote: Jeffrey Kintscher writes: > "from foo import *" is a really lazy programming practice However much corporate policies and educators may deprecate widely adopted coding practices, complaining about them will get you disliked, and no