[Python-Dev] os.stat(filename).r_dev

Gustavo Niemeyer niemeyer@conectiva.com
Mon, 10 Jun 2002 09:58:52 -0300


> > Isn't st_rdev being made available only in 2.3, trough stat attributes?
> 
> No, it was available in 2.2 already. So there is a backwards
> compatibility issue.

You're right then. st_rdev_pair may be the way to go. I'm not sure if
introducing major(), minor(), and makedev() would be a good idea,
since they are completely platform dependent.

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]