SyntaxFix
Write A Post
Hire A Developer
Questions
You can do objects the JavaScript way... It makes no sense but it works ;)
>>> def FakeObject(): ... def test(): ... print "foo" ... FakeObject.test = test ... return FakeObject >>> x = FakeObject() >>> x.test() foo