Regular expressions are basically a tiny language all their own that you can use inside of Python and many other programming languages. You will often hear regular expressions referred to as "regex", "regexp" or just "RE". Some languages, such as Perl and Ruby, actually support regular expression syntax directly in the language itself. Python only […]
This week we welcome Kenneth Reitz (@kennethreitz) as our PyDev of the Week! Kenneth is the developer behind the Requests package, which is one of my favorites. He is also the co-author of the upcoming O'Reilly Book, The Hitchhiker's Guide to Python. You can visit his website to see what he's been up to or […]
This week we welcome R. David Murray (@rdavidmurray) as our PyDev of the Week. Mr. Murray is a core developer of the Python language and is currently maintainer of the email module. He has a Python blog, although it hasn't been updated in a while. You might want to check out his Github profile to […]
Python provides the importlib package as part of its standard library of modules. Its purpose is to provide the implementation to Python's import statement (and the __import__() function). In addition, importlib gives the programmer the ability to create their own custom objects (AKA an importer) that can be used in the import process. What about […]
I've written about super briefly in the past, but decided to take another go at writing something more interesting about this particular Python function. The super built-in function was introduced way back in Python 2.2. The super function will return a proxy object that will delegate method calls to a parent or sibling class of […]
What does it mean to benchmark ones code? The main idea behind benchmarking or profiling is to figure out how fast your code executes and where the bottlenecks are. The main reason to do this sort of thing is for optimization. You will run into situations where you need your code to run faster because […]