A queue retrives items in FIFO (first in, first out) order. A priority queue retrieves item based on _priority_, higher priority items come first. Well, what happens if you submit items that have equa...
When testing codepaths that generate images, one might want to ensure that the generated image is what is expected. Matplotlib has a nice decorator @image_comparison that can be applied for this purpo...
I've noticed a common area of misunderstanding for people newer to Python testing is _how_ to apply mock.patch and _where_ to patch (i.e. what the target positional argument to unittest.mock.patch sho...
The CBC padding oracle attack demonstrates how what might initially seem like a small issue can balloon into a devastating attack that can result in total reconstruction of the plaintext by the attack...
Recently I wanted to generate UML (Unified Modeling Language) diagrams of the structure of an existing codebase for the purpose of having an architecture discussion.