News for hackers. Stuff that matters.
Re:Show HN: Pydb – a lightweight database with Python syntax... by sirtaj on Sunday January 29, 2017 @02:24AM (#13512806)
In the cases where I need to do this, I use a singleton:

  DEFAULT=object() # used for no other purpose

  def fun(arg=DEFAULT):
      arg_val = {} if arg is DEFAULT else arg

There are no comments on this comment yet.