Gimme a (Type) Hint in Python

Veröffentlicht am: 15 Dezember 2022
auf dem Kanal: Matt Layman
670
35

Types are a core part of understanding how Python works. This Python Frederick presentation introduces Python types (like str, int, float), explains how Python uses types, shows how to use Python type hints to improve your code, then covers a number of examples of showing types and type hints in action for a number of common scenarios.

0:00 - Introduction
0:25 - What are types?
2:20 - Python is dynamically typed!
3:49 - Where are the types?
5:54 - Duck Typing
7:47 - Can I get a hint?
8:16 - Type Hint Anatomy
9:52 - Type Hint Benefits
12:10 - Demo!
15:14 - Basic function example with types
21:45 - variables: scalar, list, dict
26:59 - Optional parameters
32:00 - future annotations
38:31 - The typing module
42:12 - dataclasses
47:48 - Q&A


Auf dieser Seite können Sie das Online-Video Gimme a (Type) Hint in Python mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Matt Layman 15 Dezember 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 670 Mal angesehen und es wurde von 35 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!