X Tutup
The Wayback Machine - https://web.archive.org/web/20260401081108/https://github.com/python/cpython/pull/25239
Skip to content

bpo-43756: Add new audit event to incorporate new arguments added to glob.glob#25239

Merged
zooba merged 2 commits intopython:masterfrom
gousaiyang:audit-glob-root_dir-dir_fd
Apr 21, 2021
Merged

bpo-43756: Add new audit event to incorporate new arguments added to glob.glob#25239
zooba merged 2 commits intopython:masterfrom
gousaiyang:audit-glob-root_dir-dir_fd

Conversation

@gousaiyang
Copy link
Copy Markdown
Contributor

@gousaiyang gousaiyang commented Apr 7, 2021

Add a new audit event glob.glob/2 to incorporate the new root_dir and dir_fd arguments added to glob.glob and glob.iglob in Python 3.10.

https://bugs.python.org/issue43756

match.

.. audit-event:: glob.glob pathname,recursive glob.glob
.. audit-event:: glob.glob/2 pathname,root_dir,dir_fd,recursive glob.glob
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't see any particular reason to insert the new parameters compared to the previous event - why not keep the first two the same and just add the new ones on the end?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was just matching the order as presented in the function signature documentation. I've revised the PR to append new parameters at the end.

@zooba zooba merged commit a32f8fe into python:master Apr 21, 2021
@gousaiyang gousaiyang deleted the audit-glob-root_dir-dir_fd branch April 21, 2021 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

X Tutup