> I have investigated this further and found that python appears to > compile the Value call for each loop iteration (dynamic.py, row 300). > The compiled python objects are somehow kept during the lifetime of > the script. Is this correct?
That is not expected. _make_method_ stores a copy of the method in self._builtMethods_ (line 309). A further __getattr__ for that name should locate it. You may have found a 'bug' (or maybe it should be called an un-optimization) when the default method name is used though - what is the callstack? > Is is possible to use early binding (with the code generated from > makepy) in a self-hosted python script? I'm not sure what you mean by 'self-hosted'. If you mean py2exe, then that tool supports a 'typelibs' attribute which can package and use makepy generated files. Google might help you there, but sadly the examples and docs are a little light at the moment. Mark _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32