[Tutor] Filesystem Usage

Steve Nelson sanelson at gmail.com
Fri Jan 19 16:02:55 CET 2007


On 1/19/07, Kent Johnson <kent37 at tds.net> wrote:

> The attribute access uses . notation and an attribute name. You can do
> stat.f_blocks and gstat.gr_gid. Python takes care of looking up the
> actual attribute value.

Excellent - thank you.

> I suggest you use the attribute form for both, it is more compact and
> readable, consistent between both types of objects, and doesn't require
> the import of statvfs.

Done.

> Kent

S.


More information about the Tutor mailing list