[Python-ideas] Add OS-dependent automatic glob support

random832 at fastmail.us random832 at fastmail.us
Wed Jan 7 00:35:05 CET 2015


On Tue, Jan 6, 2015, at 18:11, Victor Stinner wrote:
> Hi,
> 
> This idea was already proposed as part of a larger PEP:
> https://www.python.org/dev/peps/pep-0471/#wildcard-support

Not the same idea, really. The _main_ thrust of this idea is to have a
way to have a single function (OS-specific algorithms or otherwise)
which acts (roughly) like itertools.chain(map(glob,lst)) on windows and
simply uses the original list unmodified on unix, and to use this in
places like fileinput. The point is that command line argument wildcard
processing belongs in a different place on each platform.

The windows-specific matching algorithm is just an aside.


More information about the Python-ideas mailing list