How to call built in function 'open' from inside object that has 'open' method?

sik0fewl xxdigitalhellxx at hotmail.com
Wed Apr 30 10:20:07 EDT 2003


vadim wrote:
> I am new to Python and do not know the answer to very
> simple how to 'open' from inside another object that
> has 'open' method. I know that in C++ I should use
> following syntax ::open. 
> 
> More details on reasons. I have met this problem trying to 
> write a simple script use ActiveScripting  inside IE.
> I am trying "file = open(...) but because context window
> object has 'open' method that just opens window it is called
> first. Sorry for simple question. I was trying to find 
> the answer but either it is not on the surface or too simple.

Hmm, maybe I'm missing something but should open() call the builtin function 
and self.open() call your class function?

-- 
Ryan





More information about the Python-list mailing list