X Tutup

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Antony.Lee, brett.cannon, hrik2001, mark.dickinson, rhettinger, vstinner
Date 2021-08-31.21:56:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630447008.79.0.651478192046.issue44019@roundup.psfhosted.org>
In-reply-to
Content
> `call(f, *args, **kwargs) == f(*args, **kwargs)`

So you can want to reintroduce the Python 2 apply() function which was removed in Python 3.

You can reimplement it in 2 lines, no?

def call(func, *args, **kwargs):
  return func(*args, **kwargs)
History
Date User Action Args
2021-08-31 21:56:48vstinnersetrecipients: + vstinner, brett.cannon, rhettinger, mark.dickinson, Antony.Lee, hrik2001
2021-08-31 21:56:48vstinnersetmessageid: <1630447008.79.0.651478192046.issue44019@roundup.psfhosted.org>
2021-08-31 21:56:48vstinnerlinkissue44019 messages
2021-08-31 21:56:48vstinnercreate
X Tutup