N
naveen
Is it possible to split up a class definition over multiple files?
Is it possible to split up a class definition over multiple files?
Not exactly, but you can do variations of this: .... [subclass a class]
Steven
Ben Finney
Not exactly, but you can do variations of this:
In file A.py, create:
class Parent:
def method(self):
return "Method"
In file B.py, do this:
import A
class Child(B.parent):
18-08-2009 o 06:58:58 Xavier Ho said:Answer in short, I don't think so.
Now why would you want to do that?
naveen said:Not exactly, but you can do variations of this:
... [subclass a class]
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.