In a recent phone screen, I decided to use a class attribute in my implementation of a certain Python API. My interviewer challenged me, questioning whether my code was syntactically valid, when it was executed, etc. In fact, I wasn’t sure of the answers myself. So I did some digging. Python class attributes. No one […]
Author: Charles Marsh, Head of Community @ TOPTAL
Computational Geometry in Python: From Theory to Application
When people think computational geometry, in my experience, they typically think one of two things: 1. Wow, that sounds complicated. 2. Oh yeah, convex hull. In this post, I’d like to shed some light on computational geometry, starting with a brief overview of the subject before moving into some practical advice based on my own […]
Why Are There So Many Pythons? A Python Implementation Comparison
Python is amazing. Surprisingly, that’s a fairly ambiguous statement. What do I mean by ‘Python’? Do I mean Python the abstract interface? Do I mean CPython, the common Python implementation? Or do I mean something else entirely? Maybe I’m obliquely referring to Jython, or IronPython, or PyPy. Or maybe I’ve really gone off the deep […]