[Python-ideas] Re: Magnitude and ProtoMagnitude ABCs — primarily for argument validation

2020-03-08 Thread Steven D'Aprano
On Thu, Mar 05, 2020 at 04:46:14PM -0600, Tim Peters wrote: > [Steven D'Aprano ] > > Sorting doesn't require a total order. Sorting only requires a weak > > order where the only operator required is the "comes before" operator, > > or less than. That's precisely how sorting in Python is

[Python-ideas] Re: When type hint is used, Python forbids checking variable types at run time

2020-03-08 Thread Steven D'Aprano
Type hints are not checked by the interpreter, so we don't need a parameter to turn static type checks off. They are already off. Type hints are only checked by optional third-party checkers, linters, IDEs, etc. There is, as far as I know, no plans to build static type-checking into the

[Python-ideas] When type hint is used, Python forbids checking variable types at run time

2020-03-08 Thread 铁皮石斛
An immature idea. Python now has a type prompt, so you can provide a parameter for the Python interpreter to control whether to open the check type operation. For example, in the code, I explicitly use the type prompt, such as: # Test1.py def foo(a: str, b: str) -> str: c = None #

[Python-ideas] Re: Mailman 3 monthly summaries broken for Python-ideas

2020-03-08 Thread Guido van Rossum
I think this is more of an issue to bring up with postmas...@python.org. On Sun, Mar 8, 2020 at 7:41 AM André Roberge wrote: > I am currently attempting to go through the entire archives of > Python-ideas to make a summary of the discussions about adding a syntax for > decimal literals in

[Python-ideas] Re: Possible Addition to Python Language: Marked Sub-condition

2020-03-08 Thread Paul Moore
On Sun, 8 Mar 2020 at 15:02, Shrinivas Kulkarni wrote: > > Hello Everyone > > While writing python code, I frequently come across the need to do > certain tasks based on combined conditions. > > Much of the task for all the sub-conditions are common but some are > specific to one or more of these

[Python-ideas] Fwd: Possible Addition to Python Language: Marked Sub-condition

2020-03-08 Thread Shrinivas Kulkarni
Hello Everyone While writing python code, I frequently come across the need to do certain tasks based on combined conditions. Much of the task for all the sub-conditions are common but some are specific to one or more of these sub-conditions. A simplified example: ##

[Python-ideas] Mailman 3 monthly summaries broken for Python-ideas

2020-03-08 Thread André Roberge
I am currently attempting to go through the entire archives of Python-ideas to make a summary of the discussions about adding a syntax for decimal literals in Python. In doing so, I encountered a weird bug which I find especially annoying since it makes me look like a spammer. If one goes through