Gimme a (Type) Hint in Python

Pubblicato il: 15 dicembre 2022
sul canale di: 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


In questa pagina del sito puoi guardare il video online Gimme a (Type) Hint in Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Matt Layman 15 dicembre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 670 volte e gli è piaciuto 35 spettatori. Buona visione!