Movatterモバイル変換


[0]ホーム

URL:


why does activestate (win98) python not support globbing

Robert AmeszrcameszREMOVETHIS at dds.removethistoo.nl
Fri Apr 13 11:31:23 EDT 2001


Steve Holden wrote:>"Fredrik Lundh" <fredrik at pythonware.com> wrote ...>> Paul Prescodwrote:>>> It's simply Windows versus Unix. On Unix the *shell* does>>> globbing. The program never sees the unexpanded filename. On>>> Windows, the application must do globbing (if it wants to).>>>> to be precise, it's a linking issue.  to get globbing behaviour,>> just link the executable with setargv.obj (provided with visual>> C).>>>> for some reason, GvR didn't want this as a default.  cannot recall>> his arguments, though...>>>Seems sensible since it's not the platform default for other command>line programs? Nasty to have to glob wildcards, but consistent with>the DOS heritage.Why nasty? This is one instance were I think UNIX has got it wrong. It's much better to leave commandline parameters alone than to try and interpret them in a particular way. Explicit is better than implicit.Robert Amesz


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp