846
|
|
|
hpk |
20 years ago
|
|
|
845
|
|
|
arigo |
20 years ago
|
|
|
844
|
|
|
arigo |
20 years ago
|
|
|
843
|
|
|
arigo |
20 years ago
|
|
|
842
|
|
|
arigo |
20 years ago
|
|
|
841
|
|
|
hpk |
20 years ago
|
|
|
840
|
|
|
arigo |
20 years ago
|
|
|
839
|
|
|
arigo |
20 years ago
|
|
|
838
|
|
|
arigo |
20 years ago
|
|
|
837
|
|
|
arigo |
20 years ago
|
|
|
836
|
|
|
arigo |
20 years ago
|
|
|
835
|
|
|
arigo |
20 years ago
|
|
|
834
|
|
|
arigo |
20 years ago
|
|
|
833
|
|
|
hpk |
20 years ago
|
|
|
832
|
|
|
hpk |
20 years ago
|
|
|
831
|
|
|
hpk |
20 years ago
|
|
|
830
|
|
|
hpk |
20 years ago
|
|
|
829
|
|
|
hpk |
20 years ago
|
|
|
828
|
|
- got rid of pyframe_app, and pyframe_app by introducing a new mechanism for *exposing app-level defined methods at interp-level*. This is not really perfect but i begins to work so i check it in. the mechanism is invoked like so (it's not perfect, i know)
class someclass:
def app_method(self, fixed, number, of, args): # do app-level stuff, don't use 'self' for the time beeing # examples: decode_code_arguments, normalize_exception method = app2interp(app_method)
def othermethod(self): # 'self.space' *must* contain an objectspace instance self.method(fixed, number, of, args)
- there is a new (experimental, of course!) approach to executing code objects. Actually the "app2interp" method when called makes up an "AppBuiltinCode" instance which is a simple form of a code object. Instead of the whole "build_arguments" to-dict-locals- and-then-get-it-out-of-locals business it constructs arguments in a straightforward manner. Thus it's currently not possible to pass anything like the exact number of arguments (no defaults, etc.) It probably makes sense to extend argument-parsing by using Michael's extmodule's subclassing technique for handling various argument-passing cases.
Not that AppBuiltinCode creates a new kind of frame called "AppFrame" which subclass PyFrame but has an easy initialization (see above)
- moved tests to applevel and added one for execfile
|
hpk |
20 years ago
|
|
|
827
|
|
|
hpk |
20 years ago
|
|
|