Tarek Ziadé <ziade.ta...@gmail.com> added the comment:

> TarInfo does not need set_uid() or set_gid() methods, 
> both can be set using the uid and gid attributes.

I was thinking about the set_ methods to be able to use
"root" (str) instead of "0" (int) for example, like 
what the tar command seems to allow with --uid and --gid.


> I am not against adding a new option. Although, it's too bad that 
> I added the exclude option in 2.6 not long ago, which does 
> something very similar and would again be replaced by this 
> more general "include" option. BTW, I think calling 
> the option "filter" would be more suitable for what it's doing.

Maybe we could add the "filter" option for 2.7/3.2 together with the
exclude option? And add a deprecation warning for "exclude" when it's
used, since it would then become *one* use case for "filter".

We could also add an exclude callable in the module, as an example
usage of the filter option, exactly like I did for shutil.copytree
(look for ignore_patterns).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6856>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to