is it possible to have conditional defines? something like this? class Foo: #if defined (_WIN32) def foo() pass #endif i'm wrapping a cross-platfrom library, and unfortunately it has function that only exists in the windows build. thanks, bryan