Source

pypy / pypy / interpreter / test / test_function.py

Author Commit Message Labels Comments Date
Amaury Forgeot d'Arc
Remove unbound methods. see CPython change 48af6375207e
Branches
py3k
Amaury Forgeot d'Arc
Add FunctionType.__globals__, and update some tests because "import new" fails with py3k.
Branches
py3k
Armin Rigo
A failing test, skipped. Unsure we want to care. It's definitely an implementation detail, and it would make creating new functions (e.g. lambdas) a bit slower.
Amaury Forgeot d'Arc
Add classmethod.__func__, staticmethod.__func__
Branches
fast-forward
Amaury Forgeot d'Arc
hg merge default
Branches
fast-forward
Hakan Ardo
hg --config ui.merge=internal:local merge 90600b6d6a68
Branches
jit-unroll-loops
Dan Villiom Podlaski Christiansen
No-op merge to register the merge done in 0e3099e3cc33 with Mercurial.
Branches
fast-forward
Amaury Forgeot d'Arc
Merge from trunk: svn merge -r79849:80002 ../trunk
Branches
fast-forward
Alex Gaynor
Let the other side of __eq__ be called for comparison of methods with other types.
Antonio Cuni
merge from trunk: svn merge svn+ssh://codespeak.net/svn/pypy/trunk -r79770:HEAD .
Branches
jitypes2
Hakan Ardo
svn merge -r79225:HEAD svn+ssh://hakanardo@codespeak.net/svn/pypy/trunk
Branches
jit-unroll-loops
Amaury Forgeot d'Arc
add function.__code__ and function.__defaults__ (py3k renamed the attributes)
Branches
fast-forward
Amaury Forgeot d'Arc
**kwargs now accepts any mapping
Branches
fast-forward
Benjamin Peterson
complain when both self and class are None
Branches
fast-forward
Carl Friedrich Bolz
Merge the shrink-multidict branch: ------------------------------------------------------------------------ r68599 | cfbolz | 2009-10-17 18:49:36 +0200 (Sat, 17 Oct 2009) | 2 lines Changed paths: A /pypy/branch/shrink-multidict (from /pypy/trunk:68598) resurrect the branch to try again ------------------------------------------------------------------------ r68749 | cfbolz | 2009-10-26 14:46:32 +010…
Carl Friedrich Bolz
Prevent the changing of the func_code attribute of builtin functions. This makes some shortcuts less beautiful, but produces one guard and one getfield less a bit everywhere.
Carl Friedrich Bolz
A test that checks that using a builtin function as a special method works as expected (e.g. the builtin function is not bound to the object before being called).
Carl Friedrich Bolz
a test that checks that builtin functions have no __get__
Carl Friedrich Bolz
revert 68846 and 68847 for now, they broke untested stuff
Carl Friedrich Bolz
Make it impossible to change the code object of builtin functions. This gets rid of a getfield and a guard for all builtin function calls.
Carl Friedrich Bolz
a test about writing the func_code attribute of functions
Carl Friedrich Bolz
fix XXX from rev 4872
Armin Rigo
issue475 resolved Test and minimal fix.
Amaury Forgeot d'Arc
When calling a function with the incorrect number of parameters, don't add the number of "blind" arguments to the error message. otherwise you get misleading error messages like: >>>> len() TypeError: len() takes exactly 1 argument (1 given)
Armin Rigo
Oups. Code without test is bound to not work...
Maciej Fijalkowski
Check-in merge attempt. Diff is to huge to read it.
Armin Rigo
* Support for unicode docstrings. * Make sure the docstring of a module is in co_consts[0].
Armin Rigo
(pedronis, arigo) Fix the shortcut paths: for unbound methods, it was bypassing the check that the 1st argument is of the correct class.
Michael Hudson-Doyle
remove the extremely-rarely-not-[] argument from the newdict operation.
Samuele Pedroni
fix some potential segfaults and methods moved up to W_Root. this is a pessimisation but the old code could crash, see tests. It would be interesting to see the perf difference of using more methods vs isintance here.
  1. Prev
  2. 1
  3. 2
  4. 3
  5. Next