Source

pypy / pypy / objspace / std / boolobject.py

Author Commit Message Labels Comments Date
Konstantin Lopuhin
use int formatter for bool, cause it already calls str if spec is empty
Konstantin Lopuhin
#1180 - extend test and implement bool formatting - delegate to str
Carl Friedrich Bolz
negative bools??!
Maciej Fijalkowski
tests and fixes
Branches
kill-unary-multimethods
Maciej Fijalkowski
remove int_w, bigint_w and uint_w as multimethods
Branches
kill-unary-multimethods
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
(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.
Armin Rigo
Added "small integers" as a tagged, odd-valued pointer. Disabled by default, see WITHSMALLINT. Gives a small slow-down in pypy-c. Some more optimizations could be done in rtagged.py, though.
Armin Rigo
Just for fun, or maybe to try to win the largest diff award: refactored the StdObjSpace to no longer store the 'space' attribute on any of the W_XxxObject classes. It was not really used in any essential way any more.
Carl Friedrich Bolz
Added and_, or_ and xor implementation to bool. Until now True | True returned 1.
Samuele Pedroni
merged dist-simpler-multimethods branch.
Armin Rigo
Moved the branch back into the trunk.
rxe
representation for debugging purposes. (Mainly for traceobjectspace's benefit)
Michael Hudson-Doyle
mass unrelativization of imports in the std objspace.
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.
Jacob Hallén
Made str for booleans same as repr.
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.
Armin Rigo
Still some light refactoring of the multimethod mecanisms. Now we give enough static clues about the types to allow for a complete list of what-to-try-in-which-order to be built for each input argument types. This cleanly separates method selection from method call, as wished by mwh and Samuele. It should also speed up pypy a bit but not dramatically enough to notice I'm afraid.
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.
Christian Tismer
reviewed, added test and tested, seems complete.
Armin Rigo
a major rewrite of the user-defined types and the delegation part of multi-methods. Now I'm starting to feel better about it. See comments in objspace.std.mm_notes.txt. --This line, and those below, will be ignored-- M /home/arigo/python/pypy/pypy/trunk/src/pypy/interpreter/test/test_interpreter.py A /home/arigo/python/pypy/pypy/trunk/src/pypy/interpreter/threadlocals.py M /home/arigo/python/pypy/pypy/trunk/src/pypy/interpreter/executioncontext.py M /home/arigo/python/pypy/pypy/trunk/src/pypy/interpreter/baseobjspace.py M /home/arigo/python/pypy/…
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
add boolean reprs
Armin Rigo
classes and inheritance, still missing __init__() support
Tomek Meka
ok
Armin Rigo
that's it, type methods are now real multimethods just like the space's
Michael Hudson-Doyle
string exceptions are eeviil...
Armin Rigo
safety check
  1. Prev
  2. 1
  3. 2
  4. Next