Python provides a useful data type for easily finding common or unique items (also referred to as elements) between two or more groups of data: sets. Like dictionaries, lists, and tuples, sets are a type of collection—a container for separate pieces of data. Here’s what distinguishes...
Read more
Python sets and dictionaries
In previous articles on this blog, we’ve discussed Python tuples and lists. Today we’ll be talking about another useful Python data type: dictionaries.
Understanding Python Dictionaries
Unlike lists and tuples, which are both sequence types, a Python dictionary is a mapping object which is also mutable. Objects which...
Read more
PyPy: Faster Than an Unladen Swallow (Part 2)
In our last article, we discussed some of the alternative runtimes available for Python and the potential benefits of using them. Of the many we mentioned, we focused mostly on Pyston and PyPy.
But there’s a question we left unanswered: Why did Dropbox pull the plug on Pyston after less than three years...
Read more
PyPy: Faster Than an Unladen Swallow (Part 1)
Much of Python’s success as a language—including it’s widespread adoption, extensive software ecosystem, and ease of use—is due to the robust design of the language’s official interpreter which actually implements the functions of the language.. This implementation is called “CPython” because it is written in C. Python’s syntax borrows heavily from C and some Python...
Read more