referencing disjoint array indexes

Brad Hards bhards at bigpond.net.au
Mon Nov 11 07:50:03 EST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 11 Nov 2002 23:28, Padraig Brady wrote:
> Hi,
>
> Is there any way you can do something like
>
> size, mtime = os.stat()[8,6]
I'm still getting the hang of this, but does:
size, ignore, mtime = os.stat("thefile")[6:9]
solve the problem for you?

Brad

- -- 
http://linux.conf.au. 22-25Jan2003. Perth, Aust. I'm registered. Are you?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9z6d8W6pHgIdAuOMRAv8aAJwOKRL6eRlQh1nAL2wLUjGsNYyb1gCfSETg
S4DTz7wuaPdQiUQkE7seKmk=
=RSk8
-----END PGP SIGNATURE-----





More information about the Python-list mailing list