On 1/19/07, Kent Johnson <[EMAIL PROTECTED]> 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.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to