31.10.18 13:07, Antoine Pitrou пише:
l.pop(default=...) has the potential to be multi-thread-safe, while your alternatives haven't.
The multi-thread-safe alternative is:
try:
value = l.pop()
except IndexError:
value = default
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
