Python Forum
which type for empty - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: which type for empty (/thread-25329.html)



which type for empty - Skaperen - Mar-27-2020

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?