From: D-Man <ds...@ri...> - 2001-06-06 16:37:06
|
On Wed, Jun 06, 2001 at 12:54:42PM +0930, Craig Turner wrote: | > Jython is really just a Java program and runs in a JVM, so it faces | > the same restrictions/requirements that other Java programs face. | | I'd thought maybe it did something special, because I had read that | multiple inheritance had been possible in an earlier release of jpython. Multiple inheritance is possible : /Python/ classes can inherit from multiple classes /Java/ classes still _can't_ because, well, they are Java. Jython is "just" a Java program, but it is a program that allows the creation of programs in a different language with a different set of rules. As far as what sort of operations are allowed, only the stuff the JVM allows is allowed. Just as with C you are not allowed to derefence a null pointer or divide by 0, neither does CPython allow you to do that. The capability of any given program is limited to the capabilities of the underlying system, whether it is a software system (JVM, OS, etc) or a hardware system (the CPU/FPU can't divide by 0 anyways). -D |