GNOME Bugzilla – Bug 658362
refactor in/out marshalling to be to_py/from_py
Last modified: 2011-09-13 20:11:00 UTC
* in/out make sense from a C perspective but when you get to the python layers it makes more sense to label them as to_py and from_py to denote which way we are marshalling * this helps clear up the difference between callbacks which call into python and invoked functions which call into C * in the callback case we marshal in values to Python objects and out values to C types but in the invoke case we do the reverse. Dealing with to_py/from_py makes the code much more resuable and consistant
Created attachment 195786 [details] [review] refactor in/out marshalling to be to_py/from_py
Maintainer's prerogative - committing this as it has been sitting here too long and is holding up my other fixes. It is better to get this out in the wild to test. It is also a minor change even if it touches a lot of code because it is mostly a re-factoring of function names to better fit what is actually happening during marshalling/demarshalling stages.