Re: "...which takes a callable (the lambda here)" Python lamdas have some severe restrictions. In any place that takes a callable, if a lambda can't serve, just use def to write a function and use the function name.
---- Joseph S. Teledyne Confidential; Commercially Sensitive Business Data -----Original Message----- From: Python-list <python-list-bounces+joseph.schachner=teledyne....@python.org> On Behalf Of python-list-requ...@python.org Sent: Wednesday, April 20, 2022 12:00 PM To: python-list@python.org Subject: Python-list Digest, Vol 223, Issue 20 ---External Email--- Send Python-list mailing list submissions to python-list@python.org To subscribe or unsubscribe via the World Wide Web, visit https://mail.python.org/mailman/listinfo/python-list or, via email, send a message with subject or body 'help' to python-list-requ...@python.org You can reach the person managing the list at python-list-ow...@python.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Python-list digest..." -- https://mail.python.org/mailman/listinfo/python-list