axw/pushy — Issue #31: Proxied old-style classes can't be instantiated
Author: axw
Created: 2012-02-07 15:01:11+00:00
State: open
Labels: Fix Committed, Medium

>>> conn = pushy.connect("local:")
>>> conn.execute("""\
... class X:
... def __init__(self):
... print 123
""", locals=locals_)
>>> locals_["X"]()

Traceback (most recent call last):
File "test_local.py", line 14, in
locals_["X"]()
TypeError: 'ObjectProxy' object is not callable