merkosh at hadiko.de
Mon Jan 19 17:14:33 CET 2004
when extending a build in class, what does the constructor __init__(...)
have to return?
and how does the constructor call its base-class construtor? (or is this
I want to derive from "file" to create a class that reads record from a
def __init__(self, filename, mode="r", bufsize=-1):
just calling the basename and the constructor does not work:
>>> f = myFile("testfile")
<closed file '<uninitialized file>', mode '<uninitialized file>' at ...>
What am I missing?
Thanks for your comments
More information about the Python-list