[pypy-commit] pypy py3k: (prestontimmons) remove the implementation of jumpahead() as well.
arigo
noreply at buildbot.pypy.org
Mon Mar 12 20:21:08 CET 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: py3k
Changeset: r53334:c480a271615c
Date: 2012-03-12 12:20 -0700
http://bitbucket.org/pypy/pypy/changeset/c480a271615c/
Log: (prestontimmons) remove the implementation of jumpahead() as well.
diff --git a/pypy/module/_random/interp_random.py b/pypy/module/_random/interp_random.py
--- a/pypy/module/_random/interp_random.py
+++ b/pypy/module/_random/interp_random.py
@@ -73,16 +73,6 @@
w_item = space.getitem(w_state, space.newint(rrandom.N))
self._rnd.index = space.int_w(w_item)
- def jumpahead(self, space, w_n):
- try:
- n = space.int_w(w_n)
- except OperationError, e:
- if not e.match(space, space.w_TypeError):
- raise
- num = space.bigint_w(w_n)
- n = intmask(num.uintmask())
- self._rnd.jumpahead(n)
-
assert rbigint.SHIFT <= 32
@unwrap_spec(k=int)
def getrandbits(self, space, k):
@@ -107,6 +97,5 @@
seed = interp2app(W_Random.seed),
getstate = interp2app(W_Random.getstate),
setstate = interp2app(W_Random.setstate),
- jumpahead = interp2app(W_Random.jumpahead),
getrandbits = interp2app(W_Random.getrandbits),
)
More information about the pypy-commit
mailing list