Skip to content

Add a command-line interface for the glob module #118133

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

Closed
ZeroIntensity opened this issue Apr 21, 2024 · 1 comment
Closed

Add a command-line interface for the glob module #118133

ZeroIntensity opened this issue Apr 21, 2024 · 1 comment
Labels
type-feature A feature request or enhancement

Comments

@ZeroIntensity
Copy link
Member

ZeroIntensity commented Apr 21, 2024

Feature or enhancement

Proposal:

The following command:

python -m glob *.txt

would be more or less equivalent to

print(" ".join(glob("*.txt")))

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

@ZeroIntensity ZeroIntensity added the type-feature A feature request or enhancement label Apr 21, 2024
@terryjreedy terryjreedy changed the title Allowing the glob module to be executed with -m Add a command-line interface for the glob module Apr 21, 2024
@terryjreedy
Copy link
Member

terryjreedy commented Apr 21, 2024

Closing for now because adding new command-line interfaces should be discussed 'elsewhere'.
See for example the discussion of doing the same for random, which resulted in #118131.

@ZeroIntensity ZeroIntensity closed this as not planned Won't fix, can't repro, duplicate, stale Apr 21, 2024
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

No branches or pull requests

2 participants