[issue11014] 'filter' argument for Tarfile.add needs to be a keyword-only argument

Raymond Hettinger report at bugs.python.org
Wed Jan 26 07:00:42 CET 2011


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

Also note the 'filter' argument to the add() method is also in Py2.7 though it doesn't have the same issue of the preceding argument being deprecated.  For 2.7, I recommend adding a note to the docs and docstring to not use the 'filter' argument positionally; otherwise, there will be a minor 2-to-3 issue.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11014>
_______________________________________


More information about the Python-bugs-list mailing list