Skip to content

os.access raises where CPython would return False #6334

@ShaharNaveh

Description

@ShaharNaveh

snippet:

import os
os.access("/does/not/exists", os.X_OK)

CPython:

False

RustPython:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
FileNotFoundError: (2, 'No such file or directory (os error 2)')

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-compatA discrepancy between RustPython and CPythongood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions