Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 21, 2021

Conversation

gousaiyang
Copy link
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

@@ -65,6 +65,7 @@ For example, ``'[?]'`` matches the character ``'?'``.
match.

.. audit-event:: glob.glob pathname,recursive glob.glob
.. audit-event:: glob.glob/2 pathname,root_dir,dir_fd,recursive glob.glob
Copy link
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
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