appending * to glob returns files with '*' !!

alex23 wuwei23 at gmail.com
Sun Sep 21 19:50:51 EDT 2008


On Sep 20, 6:37 am, "John [H2O]" <washa... at gmail.com> wrote:
> My routine cannot handle the '*' and it should'nt be returned anyway? :-/
>
> A bug?

Not at all. That's the same behaviour you'll get if you do 'ls EN*'.

In your case, you're asking to match on anything that begins with EN,
a subset of files that -includes- EN*.

Why do you consider this behaviour surprising?



More information about the Python-list mailing list