hans.meine <hans_me...@gmx.net> added the comment:

I completely agree with msg322848, both with the suggested fix and with its 
rationale.  A future API improvement could be to have a "strict" mode where 
errors copying xattr are not silently ignored anymore (if there are src xattr, 
but they cannot be written, or if src xattr cannot be read, for instance), but 
the current functionality seems to be "copy xattr if possible", and that should 
be fixed accordingly.

I also opened #36850 arguing that in any case, EINVAL should be ignored when 
*reading* extended attributes, acknowledging that people might have more 
problems with ignoring errors on *writing* them when they were present on the 
source.  However, as stated above, I personally vote for the fix suggested in 
msg322848.

----------
nosy: +hans-meine

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

Reply via email to