Generics at runtime in Python 3.12. Type hints are borderline magic!

Published: 18 October 2023
on channel: Python for Everyone
2,200
90

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


Watch video Generics at runtime in Python 3.12. Type hints are borderline magic! online, duration hours minute second in high quality that is uploaded to the channel Python for Everyone 18 October 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 2,200 times and liked it 90 visitors.