Title: documentation: os.setxattr() errno EEXIST and ENODATA
Type: behavior Stage:
Components: Documentation Versions: Python 3.8
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, w0rthle$$
Priority: normal Keywords:

Created on 2020-07-11 05:45 by w0rthle$$, last changed 2020-09-19 18:51 by iritkatriel.

Messages (1)
msg373516 - (view) Author: Pablo Dumas (w0rthle$$) Date: 2020-07-11 05:45
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!
Date User Action Args
2020-09-19 18:51:40iritkatrielsetassignee: docs@python

components: + Documentation
nosy: + docs@python
2020-07-11 05:45:59w0rthle$$create