[pypy-svn] r44066 - pypy/branch/prolog-bytecode/pypy/lang/prolog/builtin
cfbolz at codespeak.net
cfbolz at codespeak.net
Thu Jun 7 01:24:35 CEST 2007
Author: cfbolz
Date: Thu Jun 7 01:24:35 2007
New Revision: 44066
Modified:
pypy/branch/prolog-bytecode/pypy/lang/prolog/builtin/metacall.py
Log:
make the once implementation simpler
Modified: pypy/branch/prolog-bytecode/pypy/lang/prolog/builtin/metacall.py
==============================================================================
--- pypy/branch/prolog-bytecode/pypy/lang/prolog/builtin/metacall.py (original)
+++ pypy/branch/prolog-bytecode/pypy/lang/prolog/builtin/metacall.py Thu Jun 7 01:24:35 2007
@@ -13,9 +13,7 @@
expose_builtin(impl_call, "call", unwrap_spec=["callable"],
handles_continuation=True)
-def impl_once(engine, clause, continuation):
+def impl_once(engine, clause):
engine.call(clause)
- return continuation.call(engine, choice_point=False)
-expose_builtin(impl_once, "once", unwrap_spec=["callable"],
- handles_continuation=True)
+expose_builtin(impl_once, "once", unwrap_spec=["callable"])
More information about the Pypy-commit
mailing list