fnmatch() vs. glob.glob()

Ben Finney ben+python at benfinney.id.au
Mon Mar 7 20:00:19 EST 2016


Jinghui Niu <niujinghui at gmail.com> writes:

> Thank you for your reply. So if for a beginner learner who doesn't
> care so much about Unix-compliant, which one is a better choice for
> learning purpose?

Learn to care about the difference :-) They are both useful and both do
different things.

-- 
 \     “I must say that I find television very educational. The minute |
  `\       somebody turns it on, I go to the library and read a book.” |
_o__)                                                    —Groucho Marx |
Ben Finney




More information about the Python-list mailing list