Python Oddities Explained

By Trey Hunner

Elevator Pitch

Sometimes you’ll find what might seem like a bug in Python but sometimes these bugs reveal themselves to be misunderstood features. During this talk we’ll look at a number of Python’s unique features and quirks and attempt to re-shape our mental models of how Python works.

Description

A number of Python features often seem counter-intuitive at first glance, especially when moving from another programming language to Python. Often what at first seems like a bug, will later reveal itself to be a misunderstood feature.

During this talk we’ll look at a number of Python’s unique features and quirks and attempt to re-shape our mental models of Python to better match reality. By the end of this talk you’ll have a deeper understanding of Python’s rules behind objects, scope, and variables.

Warning: this talk will include many Python head scratchers so show up prepared to think on your feet!

Notes

This talk is aimed at curious Python programmers who want to know about Python’s quirks. Even experienced Python programmers should learn something from this talk.

The audience is expected to already have an understanding of Python’s core data types and programming constructs (lists, functions, variables, etc.) Audience members will come out of this talk with a better appreciation for less obvious Python features and edge cases to watch out for.