Source

pypy / pypy / objspace / thunk.py

Author Commit Message Labels Comments Date
Amaury Forgeot d'Arc
kill most unwrap_spec in objspace
Branches
improve-unwrap_spec
Armin Rigo
Revert r58914 and r58919, moving it to a branch.
Antonio Cuni
(arigo, antocuni) make {get,set,del}slice real multimethods, and implement list.__{get,set,del}slice__
Maciej Fijalkowski
(antocuni, cfbolz, fijal) - Merge the unicode-objspace branch, history below ------------------------------------------------------------------------ r48508 | cfbolz | 2007-11-10 16:14:06 +0100 (Sat, 10 Nov 2007) | 3 lines Changed paths: M /pypy/branch/unicode-objspace/pypy/objspace/std/unicodetype.py helper function for unwrapping encoding and error. will be needed in various places ------------------------------------------------------------------------ r48507 | cfb…
Carl Friedrich Bolz
solve various recurivity problems in the thunk space
Carl Friedrich Bolz
proposed fix for the test
Carl Friedrich Bolz
some more doc strings
Carl Friedrich Bolz
rename pypymagic -> __pypy__, step 1
Samuele Pedroni
make this translate again.
Armin Rigo
Add a space.unichars_w() as a hack to get at the list of characters of a unicode string.
Armin Rigo
Fix a not-really-broken-but-strange import.
Armin Rigo
Add a thunk space @pypymagic.lazy, to decorate functions that you want to return a lazy result (the function is really only called when the result is needed).
Carl Friedrich Bolz
(janzert): Add a bigint_w method to object spaces to unwrap python longs to rbigints. thanks a lot, janzert!
Carl Friedrich Bolz
move thunk, is_thunk and become to pypymagic (if the thunk object space is used)
Armin Rigo
Tell the annotator that w_thunkalias is allowed in W_Root when translating with the thunk object space. (Hack)
Armin Rigo
A few docstrings, more to come.
Armin Rigo
restored old version, and did the simple optimisation that I originally meant.
Armin Rigo
* fix descroperations to not call space.is_w() with potentally None arguments. * fix the broken is_thunk() that didn't have any test.
Armin Rigo
Minor optimizations in the thunk object space. Removed the special marker object and replaced it with a special condition (more implicit maybe...).
Armin Rigo
Hint for the annotator.
Armin Rigo
- conftest fix for testing the thunk objspace (the previous version didn't put the 'raises' in the space) - some fix in the thunk, more things marked "XXX in-progress" (It's getting late)
Armin Rigo
Removed the default argument that was never used (and that was broken -- passing a [] instead of a space). Added a check that prevents the annotator from flowing a None past this point (though that's probably not important).
Armin Rigo
Oups! test_thunkobjspace was patching the global stdobjspace in-place to become a thunk object space. So all tests running after this one would actually run in a thunk object space. Clean-up of the proxying logic: thunk.Space() now always creates a fresh StdObjSpace and then patches it.
Armin Rigo
Small clean-up of the thunk object space. This should also make it translatable :-)
Armin Rigo
issue47 in-progress New official entry points into PyPy: A dist/pypy/bin/py.py A dist/pypy/bin/translator.py D pypy/interpreter/py.py translate_pypy and associated files have been moved: A dist/pypy/translator/goal D dist/goal There is a new directory for demo material, where I kept some of the examples of the old goal directory and commented them: RM dist/demo M dist/demo/foodbill.py M dist/…
Armin Rigo
Removed idhack and put become() in the thunk objspace, because it's really easy to do so and we avoid all the space composition nightmare.
Armin Rigo
added is_thunk() in the thunk objspace.
Armin Rigo
We need a way to combine proxy levels on object spaces... For now I need the "thunk_and_idhack object space"...
Armin Rigo
For convenience, allow thunk(callable, *args, **kwds).
Armin Rigo
fixeol, typo, test for thunkobjspace.
  1. Prev
  2. 1
  3. 2
  4. Next