Hi Dan,

On Thu, Dec 9, 2010 at 5:25 PM, Dan Stromberg <[email protected]> wrote:
> What would be the best way to add os.major and os.minor to the os module?

It's amazing the kind of stuff there is in the 'os' module that I've
never heard about before. :-)

> 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.

Indeed.  See for example pypy.rlib._rsocket_rffi.FD_ZERO, which is
also typically a macro.  There is a bit of workaround code to write,
I'm afraid.  This is mostly to support direct testing; if the goal is
only to have it work after translation, then it does not matter that
it is actually a macro.


A bientôt,

Armin.
_______________________________________________
[email protected]
http://codespeak.net/mailman/listinfo/pypy-dev

Reply via email to