[issue27840] functools.partial: don't copy keywoard arguments in partial_call()?

Antoine Pitrou report at bugs.python.org
Wed Aug 24 16:36:25 EDT 2016


Antoine Pitrou added the comment:

Modifying the keyword arguments dict is quite common so this change would be a heavy compatibility breaker.

A well-known idiom:

  def some_function(..., **kwargs):
      some_option = kwargs.pop('some_option', None)
      # further process kwargs

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27840>
_______________________________________


More information about the Python-bugs-list mailing list