[pypy-svn] r28277 - pypy/dist/pypy/module/_pickle_support
mwh at codespeak.net
mwh at codespeak.net
Sun Jun 4 17:28:27 CEST 2006
Author: mwh
Date: Sun Jun 4 17:28:26 2006
New Revision: 28277
Modified:
pypy/dist/pypy/module/_pickle_support/maker.py
Log:
comment out wads of translation-breaking code.
please don't re-break translation when you uncomment it again :)
Modified: pypy/dist/pypy/module/_pickle_support/maker.py
==============================================================================
--- pypy/dist/pypy/module/_pickle_support/maker.py (original)
+++ pypy/dist/pypy/module/_pickle_support/maker.py Sun Jun 4 17:28:26 2006
@@ -53,49 +53,52 @@
return W_ReverseSeqIterObject(space, w_seq, index)
def frame_new(space, __args__):
- args_w, kwds_w = __args__.unpack() #stolen from std/fake.py
- args = [space.unwrap(w_arg) for w_arg in args_w]
- f_back, builtin, pycode, valuestack, blockstack, last_exception,\
- globals, last_instr, next_instr, f_lineno, fastlocals, f_trace,\
- instr_lb, instr_ub, instr_prev = args
- w = space.wrap
-
- new_frame = PyFrame(space, pycode, w(globals), None)
- new_frame.f_back = f_back
- new_frame.builtin = builtin
- #new_frame.blockstack = blockstack
- #new_frame.valuestack = valuestack
- new_frame.last_exception = last_exception
- new_frame.last_instr = last_instr
- new_frame.next_instr = next_instr
- new_frame.f_lineno = f_lineno
- #new_frame.fastlocals_w = w(fastlocals)
-
- if space.is_w(f_trace, space.w_None):
- new_frame.w_f_trace = None
- else:
- new_frame.w_f_trace = w(f_trace)
-
- new_frame.instr_lb = instr_lb #the three for tracing
- new_frame.instr_ub = instr_ub
- new_frame.instr_prev = instr_prev
+ return None
+## args_w, kwds_w = __args__.unpack() #stolen from std/fake.py
+## args = [space.unwrap(w_arg) for w_arg in args_w]
+## f_back, builtin, pycode, valuestack, blockstack, last_exception,\
+## globals, last_instr, next_instr, f_lineno, fastlocals, f_trace,\
+## instr_lb, instr_ub, instr_prev = args
+## w = space.wrap
+
+## new_frame = PyFrame(space, pycode, w(globals), None)
+## new_frame.f_back = f_back
+## new_frame.builtin = builtin
+## #new_frame.blockstack = blockstack
+## #new_frame.valuestack = valuestack
+## new_frame.last_exception = last_exception
+## new_frame.last_instr = last_instr
+## new_frame.next_instr = next_instr
+## new_frame.f_lineno = f_lineno
+## #new_frame.fastlocals_w = w(fastlocals)
+
+## if space.is_w(f_trace, space.w_None):
+## new_frame.w_f_trace = None
+## else:
+## new_frame.w_f_trace = w(f_trace)
+
+## new_frame.instr_lb = instr_lb #the three for tracing
+## new_frame.instr_ub = instr_ub
+## new_frame.instr_prev = instr_prev
- return space.wrap(new_frame)
+## return space.wrap(new_frame)
frame_new.unwrap_spec = [ObjSpace, Arguments]
def traceback_new(space, __args__):
- args_w, kwds_w = __args__.unpack() #stolen from std/fake.py
- args = [space.unwrap(w_arg) for w_arg in args_w]
- frame, lasti, lineno, next = args
- return PyTraceback(space, frame, lasti, lineno, next)
+ return None
+## args_w, kwds_w = __args__.unpack() #stolen from std/fake.py
+## args = [space.unwrap(w_arg) for w_arg in args_w]
+## frame, lasti, lineno, next = args
+## return PyTraceback(space, frame, lasti, lineno, next)
traceback_new.unwrap_spec = [ObjSpace, Arguments]
def generator_new(space, __args__):
- args_w, kwds_w = __args__.unpack() #stolen from std/fake.py
- args = [space.unwrap(w_arg) for w_arg in args_w]
- frame, running, exhausted = args
- new_generator = GeneratorIterator(frame)
- new_generator.running = running
- new_generator.exhausted = exhausted
- return new_generator
+ return None
+## args_w, kwds_w = __args__.unpack() #stolen from std/fake.py
+## args = [space.unwrap(w_arg) for w_arg in args_w]
+## frame, running, exhausted = args
+## new_generator = GeneratorIterator(frame)
+## new_generator.running = running
+## new_generator.exhausted = exhausted
+## return new_generator
generator_new.unwrap_spec = [ObjSpace, Arguments]
More information about the Pypy-commit
mailing list