Skip to content

bpo-38144: Add the root_dir and dir_fd parameters in glob.glob().#16075

Merged
serhiy-storchaka merged 11 commits into
python:masterfrom
serhiy-storchaka:glob-root_dir-dir_fd
Jun 18, 2020
Merged

bpo-38144: Add the root_dir and dir_fd parameters in glob.glob().#16075
serhiy-storchaka merged 11 commits into
python:masterfrom
serhiy-storchaka:glob-root_dir-dir_fd

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented Sep 12, 2019

Comment thread Doc/library/glob.rst Outdated
Comment thread Doc/whatsnew/3.9.rst Outdated
Comment thread Lib/test/test_glob.py
Comment thread Lib/glob.py
return stat.S_ISDIR(st.st_mode)

def _join(dirname, basename):
# It is common if dirname or basename is empty
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this comment is necessary.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not? It explains why the special case was added.

Or maybe you can suggest better wording?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants