~mwhudson/pypy/imported-builtinrefactor

Viewing all changes in revision 826.

  • Committer: hpk
  • Date: 2003-07-10 13:27:20 UTC
  • Revision ID: svn-v4:fd0d7bf2-dfb6-0310-8d31-b7ecfe96aada:pypy/branch/builtinrefactor:1119
Starting to refactor builtins / appspace<->interpreter-space interaction.

Currently, only StdObjSpace and TrivialObjSpace work on this branch. AnnSpace 
horribly breaks (because it was relying on CPythonObjects IMO) and should 
be fixed later in the branch.

"refactoring" fixes:

- new builtin 'execfile' (not completly implemented)

- builtin_app is now executed via execfile  and not via
  AppFile anymore. 

- Now the the BltinModule doesn't have "cpythonobject" default 
  bindings like "type, None, TypeError etc." but takes the
  defaults from the objspace (objspace.w_type etc.)

- thus builtin functions (and classes) from builtin_app are no 
  longer CPythonObject Instances 

- moved builtin testcases to AppTestCase.  The former would
  directly *import* builtin_app and test in CPython which is
  not really a good test.  Now the tests execute in AppSpace
  with pypy-builtins.  Some tests broke (test_var because the
  vars/locals machinery is not quite right, and test_minmax
  because it required mixed comparisons which PyPy doesn't 
  have on StdObjSpace) so i disabled some of them. 

- removed some mostly duplicate test-files
  (test_funtional/test_functional/test_map)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: