Thanks for the feedback
kevin
De : Pradyun Gedam
Envoyé : 21 mai 2021 15:54
À : Languedoc, Kevin
Cc : docs@python.org
Objet : Re: [docs] os.setxattr
ATTENTION: Ce courriel provient de l'extérieur de l'organisation. Ne cliquez pas sur les liens et n'ouvrez pas les pièces jointes, à moins de connaître l'expéditeur et de savoir que le contenu est sécuritaire
On Fri, 21 May 2021, 17:17 Languedoc, Kevin, mailto:Kevin.Languedoc@ccq.org> wrote:
Hi,
In the 3.9.5 documentation in the os module, the setxattr is listed
https://docs.python.org/3/library/os.html#os.setxattr
but the os.py source file doesn’t have that function
https://github.com/python/cpython/blob/3.9/Lib/os.py
Has this functionality been removed or moved to another module?
Thanks
Kevin Languedoc
Data Engineering Specialist
Hi Kevin,
Certain functions in the OS module are implemented in C, and imported in os.py.
See https://github.com/python/cpython/blob/3.9/Lib/os.py#L55 and https://github.com/python/cpython/blob/3.9/Modules/posixmodule.c for example.
Best,
Pradyun