[New-bugs-announce] [issue41277] documentation: os.setxattr() errno EEXIST and ENODATA

Pablo Dumas report at bugs.python.org
Sat Jul 11 01:45:59 EDT 2020


New submission from Pablo Dumas <pablodumas94 at gmail.com>:

Shouldn't os.setxattr() errno EEXIST be when "XATTR_CREATE was specified, and the attribute exists already" and errno ENODATA be when "XATTR_REPLACE was specified, and the attribute does not exist."? In the current os module documentation, it's the other way around: "If XATTR_REPLACE is given and the attribute does not exist, EEXISTS will be raised. If XATTR_CREATE is given and the attribute already exists, the attribute will not be created and ENODATA will be raised."... Thanks!

----------
messages: 373516
nosy: w0rthle$$
priority: normal
severity: normal
status: open
title: documentation: os.setxattr() errno EEXIST and ENODATA
type: behavior
versions: Python 3.8

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


More information about the New-bugs-announce mailing list