Skip to content →

Lee's Blog Posts

Static vs Shared Libraries

In this post I will answer the questions: what is a library, why are they used, and how do they work? What is a library? In computer science, a library is conceptually similar to the library where people go to read and borrow books, except in computer science, a library is just a file that resides…

Leave a Comment

Creating Permutations of Strings in Python

The non-repeating permutations of the string “yes” are: There are always n! permutations, where n is the length of the string. To get all the permutations of a string in Python, you can use the itertools.permutations function.

Leave a Comment

Python pip eggs

Many Python applications I’ve seen define their dependencies in a file called requirements.txt. Sometimes these files have a line that looks something like this. I never really understood what #egg= means. The “egg” string is the directory that gets checked out as part of the install. Will, from Stack Overflow…

Leave a Comment