Brett Cannon

Number of videos:
6
Opening Statements - PyCon 2014 (2014/04/11)
PyCon US 2014
Brett Cannon
Recorded: April 11, 2014Language: English
From Source to Code: How CPython's Compiler Works
PyCon CA 2013
Brett Cannon
Recorded: Aug. 10, 2013Language: English

How the heck does CPython take a blob of bytes you call source code and create another blob of bytes called bytecode which it is able to execute to make the magic of Python programs work? This talk's aim is to provide a conceptual answer to that question. The overall process of tokenizing, parsing, creating an AST, and then finally emitting bytecode will be covered.

If you have no clue what any of those previous words meant, don't worry! This talk will be accessible to people who are not compiler experts. We'll also cover how various parts of the compiler are exposed through Python's standard library so you can play with what you learn afterwards.

How Import Works
PyCon US 2013
Brett Cannon
Recorded: March 17, 2013Language: English

This talk will go over how the simple from sys import version turns out to be slightly complicated. The details of imports -- from how the import statement is interpreted to deciding what object to return -- will be discussed. While the talk will discuss things from the perspective of Python 3.3 (and thus importlib), the overall semantics will (mostly) apply to older versions of Python.

Python 3.3: Trust Me, It's Better than 2.7
PyCon US 2013
Brett Cannon
Recorded: March 15, 2013Language: English

In this talk I will try to convince you that Python 3.3 is superior to Python 2.7 by going over the differences between Python 2.7 and Python 3.3 along with benchmark information to show where Python 3.3 shines in comparison to Python 2.7 (and vice-versa). If I accomplish my goal, you will walk out of this talk convinced that Python 2.7 is not the final version of Python you want to support.