Movatterモバイル変換
[0]ホーム
why does activestate (win98) python not support globbing
Laura LewinLaura_01 at MailAndNews.com
Fri Apr 13 15:39:47 EDT 2001
Hi,I just wanted to clarify a point about the book Programming Python: I'm fairly certain that the comments here refer to the 1st edition of Programming Python, not the 2nd (current edition)! Example 4.1 in the 1st edition does indeed assume a unix-like command line, and page 113 in that edition is where globbing shows up. So I would just point you towards the 2nd edition, which covers directory tools. The 1st edition was very Unix-biased, but the 2nd is not. Hope this helps.LauraLLewin at oreilly.com>===== Original Message Fromtim at vegeta.ath.cx (Tim Hammerquist) =====>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 followingerror>> is generated.>>>> In unix it expands the *.py to all the associated files. In windows itdoes>> 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-listmailing list
[8]ページ先頭