Static Typing in Python

[Pages:119]Static Typing in Python

EuroPython 2020

@di_codes

Hi, I'm Dustin

? Developer Advocate @ Google ? PyTexas (Austin, TX, Oct 24-25th 2020) ? Python Package Index

@di_codes

Pop quiz:

Is Python dynamically or statically typed?

@di_codes

Answer:

Dynamically typed... but can optionally be statically typed.

@di_codes

Steps to understand that:

? Types in Python ? Type systems in general ? Dynamic typing in Python ? Static typing in Python

@di_codes

Once we understand that:

? How to use static typing ? When you should use static typing ? When you shouldn't use static typing

@di_codes

Let's talk about

types (and type)

@di_codes

>>> type(42)

@di_codes

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download