Add unwrap support.

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@102784 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
markh%activestate.com
2001-09-12 01:46:43 +00:00
parent 25a26c0129
commit 3da7154e02
2 changed files with 14 additions and 5 deletions

View File

@@ -40,6 +40,10 @@ def WrapObject(ob, iid, policy = None, bWrapClient = 1):
ob = tracer(ob)
return _xpcom.WrapObject(policy( ob, iid ), iid, bWrapClient)
# Unwrap a Python object back into the Python object
def UnwrapObject(ob):
return _xpcom.UnwrapObject(ob)._obj_
# Create the main module for the Python loader.
# This is a once only init process, and the returned object
# if used to load all other Python components.