Watch Out for Snakes! A Byte-Sized Introduction to Python
summary
Practical checklist for Java-to-Python migration: target Python 3.10, run python3 --version in builds, and avoid Python 2.x; follow PEP8 and prefer f-strings over %-formatting or str.format; treat bytes vs str explicitly and encode/decode at I/O boundaries; skip the surprising else on for/while idiom; expect immutable tuples, mutable lists/dicts/sets, and useful extras like collections.Counter and deque; try pyfunctional for immutable map/filter/reduce pipelines; live REPL demos run but show minor hiccups (lights flicker).
AI-written summary · about
chapters (17)
- 0:00Introduction
- 2:11What to expect
- 3:35Pythonic for Java devs
- 5:03Python version & style rules
- 8:34Whitespace & structure
- 10:16Bytes vs strings
- 15:58String interpolation
- 23:45Why f-strings
- 24:07Avoid surprising else blocks
- 25:52Immutability & functional
- 28:20Decorators & higher-order
- 30:50Python collections
- 35:27Advanced collections module
- 37:35Limitations of default collections
- 39:03Introducing pi_functional
- 42:31Python vs Java
- 43:12Q&A
related talks
44mHow to Build a Plan to Migrate to Python 3
26mPython 2 to 3: How to Upgrade and What Features to Start Using
40mA Few Python Tips
45mWriting Python 2/3 compatible code
31mIntroduce Syntax and History of Python from 2.4 to 3.6
26mPython 2 is dead! Drag your old code into the modern age
57mFrom C# to Python – 10 Things I Learned Along the Way
31mPython 3 for People Who Haven't Been Paying Attention
