[C++-sig] V2 enum convertors

Peter Bienstman pbienst at MIT.EDU
Mon Apr 1 22:40:55 CEST 2002


>However, I'm not completely sure what the best interface would be. In
>particular, should enums really be exposed as Python Ints? Wouldn't it
>be better to expose a Python subclass of Int whose str() and repr()
>functions return user-friendly names?

Well, I think the latter is definitely much better from the end user's
point of view.

However, if I had to implement it myself right here and right now, I'd
settle for the first option at the moment, because of my lack of
familiarity with the code ;-)

Peter








More information about the Cplusplus-sig mailing list