Fernando Lujan wrote:
For instance, if I create the class:

class MyClass:
    "A simple example class"
    i = 12345
    def f(self):
        return 'hello world'

Can I invoke the following code inside a Python Script?

x = MyClass()
x.f()

Yes, but you shouldn't want to ;-)

I'm using zope 2.7.x series.

Why? 2.8 is much much better...

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to