[Python-Dev] Re: [RELEASE] The cursed fourth Python 3.11 beta (3.11.0b4) is available

2022-07-14 Thread Stephen J. Turnbull
Alan G. Isaac writes: > 4. It implements ISO 8601 (which exists for a reason): > https://en.wikipedia.org/wiki/ISO_8601#Calendar_dates Yes!!! "Standardization is my Valentine!" :-D -- RIP WotR Bombshell ___ Python-Dev mailing list --

[Python-Dev] Re: Presenting PEP 695: Type Parameter Syntax

2022-07-14 Thread Terry Reedy
On 7/14/2022 6:16 PM, Guido van Rossum wrote: In addition, we already use square brackets for *using* generics (e.g. list[int]), and most surveyed languages use the same type of brackets in declarations and uses. I do not yet use annotations, but knowing about 'list[int]', etc, I could

[Python-Dev] Re: [RELEASE] The cursed fourth Python 3.11 beta (3.11.0b4) is available

2022-07-14 Thread Alan G. Isaac
4. It implements ISO 8601 (which exists for a reason): https://en.wikipedia.org/wiki/ISO_8601#Calendar_dates On 7/14/2022 6:25 PM, MRAB wrote: I much prefer -MM-DD (or .MM.DD) because: 1. It's consistent with HH:MM:SS and other instances where there are multiple  units (they go from 

[Python-Dev] Re: [RELEASE] The cursed fourth Python 3.11 beta (3.11.0b4) is available

2022-07-14 Thread MRAB
On 13/07/2022 12:12, h.vetin...@gmx.com wrote: Also the GH bot is using DD/MM/ date format :-( whyy? Because github is international, and everyone but the US seems to agree that ``` /\ / \ /\ / day \ /\ / \

[Python-Dev] Re: Presenting PEP 695: Type Parameter Syntax

2022-07-14 Thread Guido van Rossum
Yeah, we all would have liked angle brackets, but there would be problems with breaking lines between those. E.g. def foo< T: str, S: int > (arg1: T, arg2: S) -> tuple[T, S]: ... cannot be parsed because the lexer doesn't treat angle brackets as matching pairs. In addition, we

[Python-Dev] Re: Exceptions and tracebacks and frames, oh my!

2022-07-14 Thread Guido van Rossum
This may be something you've already figured out, or not useful for your use case, but the key insight here tends to be that traceback objects form a singly-linked list from the frame where the exception was caught up to the frame where it was raised, whereas the frames are linked in the opposite

[Python-Dev] Re: Presenting PEP 695: Type Parameter Syntax

2022-07-14 Thread o . jacob . nilsson
Hi, I like this PEP but I couldn't find the motivation for using angle brackets over square braces (brackets?). The survey in Appendix A is great but lacks any conclusions. From that survey alone I would assume that angle brackets would have been chosen over square braces, given that they are

[Python-Dev] Exceptions and tracebacks and frames, oh my!

2022-07-14 Thread Yonatan Zunger
Hi everyone, Apologies for pinging the dev list; I'm shaving a very hairy yak, and the python-help crew, the docs, and the source are all unable to help. Context: I'm working on a library function to dump stack traces for all threads, sorta like _Py_DumpTracebackThreads but in Python and meant

[Python-Dev] Re: [RELEASE] The cursed fourth Python 3.11 beta (3.11.0b4) is available

2022-07-14 Thread h . vetinari
> Also the GH bot is using DD/MM/ date format :-( whyy? Because github is international, and everyone but the US seems to agree that ``` /\ / \ /\ / day \ /\ / \ /month \ /__\ /

[Python-Dev] Presenting PEP 692: Using TypedDict for more precise **kwargs typing

2022-07-14 Thread Franek Magiera
Hello, PEP 692 is posted. It proposes to use TypedDicts to type **kwargs that consist of different types. This feature has gained a lot of interest from the community (https://github.com/python/mypy/issues/4441). The PEP also proposes a grammar change and a new dunder __unpack__. Here is the

[Python-Dev] Re: [RELEASE] The cursed fourth Python 3.11 beta (3.11.0b4) is available

2022-07-14 Thread Mike mcleod
You have: Report bugs at [https://bugs.python.org%5D(https://bugs.python.org). Why not change to https://github.com/python/cpython/issues ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org