1. Miki Tebeka
  2. pythonwise

Commits

Miki Tebeka  committed e9db374

lambda

  • Participants
  • Parent commits 466d258
  • Branches default

Comments (0)

Files changed (1)

File trylock.py

View file
  • Ignore whitespace
         def push(day, records):
             ...
     '''
+    keyfn = keyfn or (lambda args, kw: 7)  # Return the same key
     by_key_locks = defaultdict(RLock)
     master_lock = RLock()