codehaus


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Metaclasses and classproperties


Thank you for your thoughts.
I'm trying to migrating en existing python2 api, 
which has been build using boost::python with pure python3 code. 
All of the py2 classes do have these additional properties names and values.
You are right, using dict(Ordinal.__members__) for names
could have been used as well but I thought, 
if someone else wants to change something it might be easier
to understand if both properties look the same, maybe a wrong assumption.
(something I seem to do often :-)

Eren