Tag Archives: conference

PyCon 2015 Talks: Best of

The following list are the talks I loved, am very curious about or plan on watching because I heard they were amaze-balls (in no particular order).

Keynote – Jacob Kaplan-Moss – Pycon 2015

Keynote – Gabriella Coleman – PyCon 2015

Julia Evans – Systems programming as a swiss army knife – PyCon 2015

David Beazley – Python Concurrency From the Ground Up: LIVE! – PyCon 2015

Allison Kaptur – Exploring is never boring: understanding CPython without reading the code

Type Hints – Guido van Rossum – PyCon 2015

Curtis Lassam – Hash Functions and You: Partners in Freedom – PyCon 2015

Sasha Laundy – Your Brain’s API: Giving and Getting Technical Help – PyCon 2015

Brandon Rhodes – Pandas From The Ground Up – PyCon 2015

Kate Heddleston – How our engineering environments are killing diversity (and how we can fix it).

Amy Hanlon – Investigating Python Wats – PyCon 2015

Raymond Hettinger – Beyond PEP 8 — Best practices for beautiful intelligible code – PyCon 2015

Brett Slatkin – How to Be More Effective with Functions – PyCon 2015

The full list of talks available on youtube here

Some notes from PyGotham (corrections welcome)

Getting Rich with Comparison Methods 

Matt Story

the truth of x == y does not imply that x != y is false […] Mind == blown and mind != blown.

pro tip: when defining ‘__eq__’ also define ‘__ne__’ its reflection method

operators like ‘<‘ have reflection properties to handle ‘>’ when overridden
right-side reflection for left-side method

how much of life is wasted by not reading documentation first?

keep-calm-and-rtfm

python has a NotImplemented error. singleton constant

MRO –> method resolution order –> use the more specific class’s methods, regardless on which side of comparison
this is the reason to use mix-ins as opposed to normal inheritance

test ALL the things
import operator module to test all the cases for bitwise and arithmetic operators

eq, ne, lt, le, gt, ge – check for existence, return the thing or NotImplemented

@functools.total_ordering – may drastically reduce the code

comparison methods are well documented. fairly robust methodology to learn which method to use on right/left side. complex so need to test.

comparison methods do not need to return bools, so you can do whatever you want. harness asymmetrical and non-boolean comparisons… useful for lazy-loaded filtering, iteration

Continue reading