why does activestate (win98) python not support globbing
Tim Hammerquist
tim at vegeta.ath.cx
Thu Apr 12 21:51:11 EDT 2001
Palmer, Dan [SKY:1G21:EXCH] <dpalmer at americasm01.nt.com> wrote:
> I was working through Programing python by Mark Lutz, and I can get Example
> 4-1 working under unix (from the 2.0 tar.gz), but when I tried to run this
> under windows (win98 or win2000) it generates an error. The following error
> is generated.
>
> In unix it expands the *.py to all the associated files. In windows it does
> not. Why the difference.
I remember these examples from the (disappointing) book, and remember that
they were rather Unix-oriented, despite his frequent mention of Windoze.
But I also thought I remembered Mark addressing this in a footnote or box
somewhere, but couldn't find anything regarding the differences between
globbing on *nix and DOS/Win32.
I was further disappointed.
However, later in the chapter (p113 or p115?) he describes how to go about
using Python's built-in globbing, which is, of course, more
platform-independent.
So yeah, Mr. Lutz stiffed Win32 users. This concept should have been
covered in the book, even if 80% of the book was devoted to Tkinter.
HTH
--
-Tim Hammerquist <timmy at cpan.org>
Any emotion, if it is sincere, is involuntary.
-- Mark Twain
More information about the Python-list
mailing list