Differences between Methods and functions
Aahz
aahz at pythoncraft.com
Wed Jan 1 14:09:59 EST 2003
In article <3e1328fe$0$11376$626a54ce at news.free.fr>,
adfgvx <adfgvx at free.fr> wrote:
>
>I have noticed a strange thing (for me). I have written a function that
>recursively walk throught a tree produced by the pyRXP XML parser.
>Everything is ok, fast and produces good result.
>
>I transformed it a little (just add self. !) to include it in an object as a
>method (still recursive) but now the walk is very much slower (about 100
>times !!).
>I don't understand why !
Please post your code.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"There are three kinds of lies: Lies, Damn Lies, and Statistics." --Disraeli
More information about the Python-list
mailing list