Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
which type for empty
#1
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?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
which type for empty - by Skaperen - Mar-27-2020, 12:58 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020