how can I in python call method from outside which is situated inside the class?
print 'Hello worl'
>>> x = C
Dont you need to have self in your definition?
class C(object): def write(self): print 'Hello world'
Now it should be fine, i.e.
x = C() x.write()