Home Page Icon
Home Page
Table of Contents for
Cover
Close
Cover
by Patrick Viafore
Robust Python
1. Introduction to Robust Python
Robustness
What Does “Robust” Mean?
Why Does Robustness Matter?
What’s Your Intent?
Asynchronous Communication
Examples of Intent In Python
Collections
Iteration
Law of Least Surprise
Wrap-up
2. Introduction to Python Types
What’s In a Type?
Mechanical Representation
Semantic Representation
Typing Systems
Strong vs. Weak
Dynamic vs. Static
Duck Typing
Wrap-up
3. Type Annotations
Type Annotations
Benefits
Autocomplete
Typecheckers
Exercise: Spot the Bug
When To Use
Wrap-up
4. Constraining Types
Optional Type
Union Types
Product and Sum Types
Literal Types
Annotated Types
NewType
Final Types
Wrap-up
5. Collection Types
Annotating Collections
Homogeneous vs. Heterogeneous Collections
TypedDict
Creating New Collections
Generics
Modifying Existing Types
As Easy as ABC
Wrap-up
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
Robust Python
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset