A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/025222.html below:

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

[Python-Dev] os.stat(filename).r_devMartin v. Loewis martin@v.loewis.de
09 Jun 2002 22:46:26 +0200
Gustavo Niemeyer <niemeyer@conectiva.com> writes:

> It seems like we really need some way to decode r_dev. One possible
> solutions are to implement major(), minor(), and makedev() somewhere.
> Another solution, if r_dev's raw value has no obvious use, would be to
> turn it into a two elements tuple like (major, minor).
> 
> Any suggestions?

I'd add a field r_dev_pair which splits this into major and minor. I
would not remove r_dev, since existing code may break.

Notice that major, minor, and makedev is already available through
TYPES on many platforms, although this has the known limitations, and
is probably wrong for Linux at the moment.

Regards,
Martin





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4