why does activestate (win98) python not support globbing

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Fri Apr 13 10:08:51 EDT 2001


Thu, 12 Apr 2001 11:25:43 -0700, Bob Cannard <bob_cannard at mentor.com> pisze:

> from glob import glob
> for arg in sys.argv[1:]:
>     for name in glob(arg):
> 
> This generally works in Unix also, where the glob effectively
> becomes a no-op.

Not exactly. When I want to pass a filename containing characters
like * or [, I quote it for the shell. This would break it.

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



More information about the Python-list mailing list