Re: [Tutor] Initializing with a call like: someClass.open(someFile)?

2005-02-22 Thread Christian Meesters
Thanks Guys, Guess I have to look once more into decorator functions - and guess it's worth doing so. Anyway: My problem is solved. Cheers Christian ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Initializing with a call like: someClass.open(someFile)?

2005-02-21 Thread Christian Meesters
Hi My cryptic subject is perhaps not sufficient - I'll try to make it a little better: Assume you'd like to write something like: import someClass x = someClass.open(someFile) Here '.open' should read in the data and initialize the instance - with or without calling __init__. How is this

RE: [Tutor] Initializing with a call like: someClass.open(someFile)?

2005-02-21 Thread Ryan Davis
] Initializing with a call like: someClass.open(someFile)? Hi My cryptic subject is perhaps not sufficient - I'll try to make it a little better: Assume you'd like to write something like: import someClass x = someClass.open(someFile) Here '.open' should read in the data and initialize