This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author raek
Recipients raek
Date 2021-10-25.19:20:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635189655.12.0.290768542952.issue45606@roundup.psfhosted.org>
In-reply-to
Content
Create a symlink that points to file that doesn't exist:

    ln -s /nonexisting_file my_symlink

Then try to glob for that symlink from Python using pathlib:

    python3
    >>> import pathlib
    >>> list(pathlib.Path(".").glob("my_symlink"))
    []
    >>> list(pathlib.Path(".").glob("my_symlink*"))
    [PosixPath('my_symlink')]

I'm a bit surprised that these two globs do not return the same results. Personally I would expect both to find the symlink.

Is this behaviour a bug or is it intentional?
History
Date User Action Args
2021-10-25 19:20:55raeksetrecipients: + raek
2021-10-25 19:20:55raeksetmessageid: <1635189655.12.0.290768542952.issue45606@roundup.psfhosted.org>
2021-10-25 19:20:55raeklinkissue45606 messages
2021-10-25 19:20:55raekcreate