Re: fnmatch() vs. glob.glob()

2016-03-07 Thread Jinghui Niu
On Monday, March 7, 2016 at 5:16:44 PM UTC-8, Ben Finney wrote: > Jinghui Niu writes: > > > May I take this opportunity to ask a bold question for a beginner > > No problem, your questions are on topic here. Thank you for being civil. > > > if I want to mimic Sublim

Re: fnmatch() vs. glob.glob()

2016-03-07 Thread Jinghui Niu
On Monday, March 7, 2016 at 5:00:57 PM UTC-8, Ben Finney wrote: > Jinghui Niu 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? > >

Re: fnmatch() vs. glob.glob()

2016-03-07 Thread Jinghui Niu
On Monday, March 7, 2016 at 1:37:45 PM UTC-8, Ben Finney wrote: > Jinghui Niu writes: > > > Hi, I've been studying python 3 modules. I'm a bit confused about the > > possibly overlap between fnmatch() and glob(), they seem to achieve > > the same goals exac

fnmatch() vs. glob.glob()

2016-03-07 Thread Jinghui Niu
Hi, I've been studying python 3 modules. I'm a bit confused about the possibly overlap between fnmatch() and glob(), they seem to achieve the same goals exactly. Why duplicate? Or maybe something I've missed? Thank you. -- https://mail.python.org/mailman/listinfo/python-list

Re: time module vs. datetime module: plain language for beginners

2015-03-27 Thread Jinghui Niu
On Wednesday, March 25, 2015 at 2:17:03 PM UTC-7, Jinghui Niu wrote: > I am learning python programming. One thing that gives me a lot of confusion > is the division of labours between the time module and the datetime module. > > As it turns out to be, time module is not only abou

time module vs. datetime module: plain language for beginners

2015-03-25 Thread Jinghui Niu
I am learning python programming. One thing that gives me a lot of confusion is the division of labours between the time module and the datetime module. As it turns out to be, time module is not only about time, it's about date too. And datetime doesn't natively support timezone, you have to cre