Specific performance question - Python vs. Java

2006-05-19 Thread reinsn
Hi,

I have got a specific question on performance: Is the overhead of
object creation in Python lower than in Java? I mean, I would argue, in
Java by object creation, the complete class is the model and all
methods and attributes are generated for the object.
In Python, methods and objects are only generated, if reached: so could
this represent a performance advantage for Python?

Thanks!

-- 
http://mail.python.org/mailman/listinfo/python-list


How to dervie from an instance object?

2006-03-09 Thread reinsn
Hi,

I am currently working with ZopeX3. Because python doesn't include
concept of interfaces, those were defined by the module zope.interface.

So interfaces were defined like:

class IMyInterface(zope.interface.Interface):
   .


I have looked into the module zope.interface and found, that
zope.interface.Interface is an object instance and no class object! But
how does this work? How can I derive from an object instance?

I mean is something like this possible in Python?

class X: pass

x = X()

class Y (x):
  .


Thanks for the replies in advance!

-- 
http://mail.python.org/mailman/listinfo/python-list


Implement EJBs in Python/Jython

2006-03-13 Thread reinsn
Hi,

I'd like to know, if it's possible to implement EJB bean classes in
Python. I mean, Jython provides to possible to create *.class files
from python modules. How must my python module look like to create a
valid enterprise bean class from it.

Thanks in advance,

-- 
http://mail.python.org/mailman/listinfo/python-list


Other languages for PVM

2006-03-15 Thread reinsn
Hi,
I am cuurently working with Python and the PVM. I found that there is
something interesting like Jython, which allows to compile python
source code in *.class file.
What I am looking for, are languages for the Python Virtual Machine,
which means, languages that could be compiled to the Python byte code.

Thanks a lot in advance!

-- 
http://mail.python.org/mailman/listinfo/python-list