Re: "." and ".." returned by dir()
- Posted by Juergen Luethje <j.lue at gmx.de> Aug 31, 2006
- 604 views
Robert Craig wrote: > Juergen Luethje wrote: >> in the documentation of dir() it reads: >> <quote> >> If st names a *directory* you may have entries for "." and ".." >> </quote> >> >> After my experience, those entries are normally at the _beginning_ >> of the list which is returned by dir(). Can I rely on the assumption >> that this is _always_ the case? > > I don't know. > I don't force it to be that way. Thank you, both Ricardo and Rob! So in order to play it safe, I'll not rely on that assumption. Regards, Juergen