[pypy-dev] os.major? os.minor?

Dan Stromberg drsalists at gmail.com
Thu Dec 9 17:25:40 CET 2010


What would be the best way to add os.major and os.minor to the os module?

They appear to be C macros on some systems, so I'm guessing most FFI's
aren't going to see them without a wrapper.

On Linux, there's a C function that a macro is #ifdef'd to, but that
seems less than amazingly portable.



More information about the Pypy-dev mailing list