Source

pypy / pypy / objspace / std / noneobject.py

Author Commit Message Labels Comments Date
Armin Rigo
Adapt the _immutable_ and _immutable_fields_ hints left and right. I think this branch is now ready to be merged, if it passes all tests.
Branches
out-of-line-guards-2
Armin Rigo
A generous sprinkle of "_immutable_=True" in the std object space.
Armin Rigo
(the jit band) Special support for newbool(), linked from pypyjit with the timeshifter. Returns a VirtualBool which simply stores the boolean value. Not integrated with "translate --jit" yet.
Samuele Pedroni
merged dist-simpler-multimethods branch.
Armin Rigo
Moved the branch back into the trunk.
Michael Hudson-Doyle
remove not_ multimethod make next() non-special multimethod rename is_true() -> nonzero(), make non-special space.is_true() now descroperation method that unwraps result of nonzero() (and participates in ugly hacks to avoid infinte recursion)
Armin Rigo
First round at fixing the standard object space to adapt it to the new, descriptor-based object model.
holger krekel
the final merge of the builtinrefactor branch into the trunk. See http://codespeak.net/pipermail/pypy-dev/2003q3/001012.html for in-depth discussion and description of what is new.
holger krekel
moved register_all into objspace so we spare an import (armin's suggestion). to avoid circular imports register_all has the imports now inside instead of at module global level.
Jacob Hallén
Refactored register_all to live in its own module.
holger krekel
added some docstrings (+ status info)
holger krekel
revised multimethod registration machinery - now functions whose name is of the form "X__Y1_Y2_..." are registered on the multimethod "X" on StdObjSpace or (if that doesn't exist) on an alternatively provided namespace's multimethod. The Y1, Y2, ... specify the "multimethod implementation signature" and must match the number of arguments the function takes. Otherwise a value Error is raised. For a given Y first "W_Y" is loo…
Michael Hudson-Doyle
teach None to print itself
Armin Rigo
classes and inheritance, still missing __init__() support
Armin Rigo
that's it, type methods are now real multimethods just like the space's
Armin Rigo
multimethods and basic type system coexist now
Armin Rigo
BROKEN, we are changing a hell lot of things
Michael Hudson-Doyle
make None false
Armin Rigo
added default_ne
Armin Rigo
Wohoo! 'python interactive.py std' will successfully run a (very) limited set of operations on top of the standard object space! It can now be used to test, say, integer operations (for example, 'import sys; sys.maxint+1' which raises an OverflowError). --This line, and those below, will be ignored-- M /home/arigo/python/pypy/pypy/trunk/src/pypy/interpreter/test/test_pyframe_app.py M /home/arigo/python/pypy/pypy/trunk/src/pypy/interpreter/opcode.py M /home/arigo/python/pypy/pypy/trunk/src/pypy/interpreter/opcode_app.py M /home/arigo/python/pypy/pypy/trunk/src/pypy/interpreter/pyframe_app.py M /home/arigo/python/pypy/pypy/trunk/src/pypy/interpreter/pyframe.py M /home/arigo/pyt…
Jens-Uwe Mager
Move the pypy trunk into its own top level directory so the path names stay constant.