I am also having trouble setting it to null in this way:
import PyV8
class NewClass(PyV8.JSClass):
def __init__(self):
pass
class Global(PyV8.JSClass):
def __init__(self):
self.x = NewClass()
def write(self, val):
print val
with PyV8.JSContext(Global()) as ctx:
ctx.eval(""" write( x.__proto__ ) """)
ctx.eval(""" x.__proto__ = null """)
ctx.eval(""" write(x.__proto__) """)
My Output is:
[object Object]
[object Object]