Python Forum

Full Version: which type for empty
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
a function/method has an argument that gets a bunch of hashable things, such as strings. it can accept a list or tuple or set or frozenset. when i want to pass an empty to it, which type should i pass, considering efficiency and/or being pythonic?