PEP — это не стиль. это язык, которым ты думаешь о коде

Я долго думала, что PEP — это про оформление. PEP 8: называй переменные вот так, PEP 257: пиши докстринги вот так. Потом начала использовать их по‑настоящему и выяснилось, что часть из них вообще не про то, как выглядит код!

https://habr.com/ru/articles/1006908/

#pep8 #pep544 #pep698 #pep634 #pep695 #python312 #python3 #python

PEP — это не стиль. это язык, которым ты думаешь о коде

Я долго думала, что PEP — это про оформление. PEP 8: называй переменные вот так, PEP 257: пиши докстринги вот так. Потом начала использовать их по‑настоящему и выяснилось,...

Хабр

I actually like #PEP695, I've been meaning to use and implement generic classes more, especially when developing #opensource packages that are extendable.

https://peps.python.org/pep-0695/

@Python #Python

PEP 695 – Type Parameter Syntax | peps.python.org

This PEP specifies an improved syntax for specifying type parameters within a generic class, function, or type alias. It also introduces a new statement for declaring type aliases.

Python Enhancement Proposals (PEPs)

Woo, PEP 695: Type Parameter Syntax has been accepted for Python 3.12! Soon you will be able to define generic functions and classes without using TypeVar ugliness.

More info: https://discuss.python.org/t/pep-695-type-parameter-syntax/21646/92

#python #pep695

PEP 695: Type Parameter Syntax

On behalf of the Steering Council, we’d like to report that we are happy to accept PEP 695. Thanks to everyone for the reinvigorated discussion in the last few weeks – I look forward to this step forward for typing in Python.

Discussions on Python.org

#Python needs a simpler generics syntax. The proposal PEP 695 is already here: https://peps.python.org/pep-0695/ Hope it advances to the next stage this year. In the mean time, is there a transpiler like #Babel or another way to use proposed syntax for hobby projects?

#pep695 #generics

PEP 695 – Type Parameter Syntax | peps.python.org

This PEP specifies an improved syntax for specifying type parameters within a generic class, function, or type alias. It also introduces a new statement for declaring type aliases.

Python Enhancement Proposals (PEPs)