Python 3.12 adds type parameter syntax and if you bring your experience from a language like C# of Java, you immediately recognize what it does. But if you are not used to generic programming, you might wonder what all the fuzz is about. In this video, you will see three things: What are generics and what role do they play in python? And get ready for some experimental syntax to use the type information at runtime!
C H A P T E R S
0:25 Why use generics in Python?
1:10 Type hints
1:45 PEP 695 Type parameter syntax
2:50 Generic list class
4:00 Use type info at runtime
M Y O N L I N E T R A I N I N G
🎓Like my style of teaching? Enroll in one of my courses online: https://pythonforeveryone.com
L I N K S I N T H E V I D E O
PEP 695: https://docs.python.org/3/whatsnew/3....
#generics #programming #python