The Python snippet collection contains helper functions for Python 3.6. It includes utilities for most common data types, such as primitivies, lists, dictionaries and date objects.
Builds a list, using an iterator function and an initial seed value.
Python, Function · Nov 2, 2020
Returns the difference between two lists, after applying the provided function to each list element of both.
Python, List · Nov 2, 2020
Returns a list of elements that exist in both lists, after applying the provided function to each list element of both.
Python, List · Nov 2, 2020
Mutable default arguments can trip up Python beginners and veterans alike. Here's a quick workaround to deal with them.
Python, Function · Feb 27, 2022
Creates a function that will invoke a predicate function for the specified property on a given dictionary.
Python, Function · Nov 2, 2020
Tests a value, x
, against a testing function, conditionally applying a function.
Python, Function · Nov 9, 2020
Invokes the provided function after ms
milliseconds.
Python, Function · Nov 2, 2020