rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
b.__dict__ = None if b.__dict__ <> None: raise TestFailed, 'func.__dict__ = None did not result in __dict__ == None'
try: b.__dict__ = None except TypeError: pass else: raise TestFailed, 'func.__dict__ = None expected TypeError' d = {'hello': 'world'} b.__dict__ = d if b.func_dict is not d: raise TestFailed, 'func.__dict__ assignment to dictionary failed' if b.hello <> 'world': raise TestFailed, 'attribute after func.__dict__ assign...
def b(): 'my docstring' pass
033daa49eafae52f0b88085117e1bdf1cff2fe16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/033daa49eafae52f0b88085117e1bdf1cff2fe16/test_funcattrs.py
except AttributeError: pass else: raise TestFailed, 'expected AttributeError'
except AttributeError: pass else: raise TestFailed, 'expected AttributeError'
def b(): 'my docstring' pass
033daa49eafae52f0b88085117e1bdf1cff2fe16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/033daa49eafae52f0b88085117e1bdf1cff2fe16/test_funcattrs.py
except AttributeError: pass else: raise TestFailed, 'expected AttributeError'
except AttributeError: pass else: raise TestFailed, 'expected AttributeError'
def b(): 'my docstring' pass
033daa49eafae52f0b88085117e1bdf1cff2fe16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/033daa49eafae52f0b88085117e1bdf1cff2fe16/test_funcattrs.py
except TypeError: pass else: raise TestFailed, 'expected TypeError'
except TypeError: pass else: raise TestFailed, 'expected TypeError'
def b(): 'my docstring' pass
033daa49eafae52f0b88085117e1bdf1cff2fe16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/033daa49eafae52f0b88085117e1bdf1cff2fe16/test_funcattrs.py
except TypeError: pass else: raise TestFailed, 'expected TypeError'
except TypeError: pass else: raise TestFailed, 'expected TypeError'
def b(): 'my docstring' pass
033daa49eafae52f0b88085117e1bdf1cff2fe16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/033daa49eafae52f0b88085117e1bdf1cff2fe16/test_funcattrs.py
except TypeError: pass else: raise TestFailed, 'expected TypeError'
except TypeError: pass else: raise TestFailed, 'expected TypeError'
def b(): 'my docstring' pass
033daa49eafae52f0b88085117e1bdf1cff2fe16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/033daa49eafae52f0b88085117e1bdf1cff2fe16/test_funcattrs.py
f1.a.myclass is not F.a.myclass:
f1.a.myclass is not F.a.myclass:
def b(): 'my docstring' pass
033daa49eafae52f0b88085117e1bdf1cff2fe16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/033daa49eafae52f0b88085117e1bdf1cff2fe16/test_funcattrs.py
except TypeError: pass else: raise TestFailed, 'expected TypeError'
except TypeError: pass else: raise TestFailed, 'expected TypeError'
def b(): 'my docstring' pass
033daa49eafae52f0b88085117e1bdf1cff2fe16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/033daa49eafae52f0b88085117e1bdf1cff2fe16/test_funcattrs.py
except TypeError: pass else: raise TestFailed
except TypeError: pass else: raise TestFailed
def b(): 'my docstring' pass
033daa49eafae52f0b88085117e1bdf1cff2fe16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/033daa49eafae52f0b88085117e1bdf1cff2fe16/test_funcattrs.py
del another.__dict__ del another.func_dict another.func_dict = None
try: del another.__dict__ except TypeError: pass else: raise TestFailed try: del another.func_dict except TypeError: pass else: raise TestFailed try: another.func_dict = None except TypeError: pass else: raise TestFailed
def another(): pass
033daa49eafae52f0b88085117e1bdf1cff2fe16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/033daa49eafae52f0b88085117e1bdf1cff2fe16/test_funcattrs.py
if foo==bar: raise TestFailed
if foo==bar: raise TestFailed
def temp(): print 1
033daa49eafae52f0b88085117e1bdf1cff2fe16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/033daa49eafae52f0b88085117e1bdf1cff2fe16/test_funcattrs.py
try: msg = str(self.msg) except UnicodeError: msg = self.msg
msg = self.msg if type(msg) not in (types.UnicodeType, types.StringType): try: msg = str(self.msg) except UnicodeError: msg = self.msg
def getMessage(self): """ Return the message for this LogRecord.
43d6e812c886db6f4eae19598b0b864e9cbc3d52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/43d6e812c886db6f4eae19598b0b864e9cbc3d52/__init__.py
path = os.path.join(os.path.dirname(test_email.__file__), 'data', filename)
path = os.path.join(os.path.dirname(test_support_file), 'data', filename)
def openfile(filename): path = os.path.join(os.path.dirname(test_email.__file__), 'data', filename) return open(path)
78f0dd3397f77df3b4b3d13c686a33af14a70af8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/78f0dd3397f77df3b4b3d13c686a33af14a70af8/test_email.py
if __name__ == '__main__': unittest.main(defaultTest='suite') else:
def test_main():
def suite(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(TestMessageAPI)) suite.addTest(unittest.makeSuite(TestEncoders)) suite.addTest(unittest.makeSuite(TestLongHeaders)) suite.addTest(unittest.makeSuite(TestFromMangling)) suite.addTest(unittest.makeSuite(TestMIMEAudio)) suite.addTest(unittest.makeS...
78f0dd3397f77df3b4b3d13c686a33af14a70af8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/78f0dd3397f77df3b4b3d13c686a33af14a70af8/test_email.py
self._writeBody(msg) else: specific = UNDERSCORE.join(ctype.split('/')).replace('-', '_') meth = getattr(self, '_handle_' + specific, None)
ctype = msg.get_default_type() assert ctype in ('text/plain', 'message/rfc822') main, sub = ctype.split('/') specific = UNDERSCORE.join((main, sub)).replace('-', '_') meth = getattr(self, '_handle_' + specific, None) if meth is None: generic = main.replace('-', '_') meth = getattr(self, '_handle_' + generic, None)
def _dispatch(self, msg): # Get the Content-Type: for the message, then try to dispatch to # self._handle_maintype_subtype(). If there's no handler for the full # MIME type, then dispatch to self._handle_maintype(). If that's # missing too, then dispatch to self._writeBody(). ctype = msg.get_type() if ctype is None: ...
93c40f0c3a9e96f46e51d92c3bfa8ac50012902b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/93c40f0c3a9e96f46e51d92c3bfa8ac50012902b/Generator.py
generic = msg.get_main_type().replace('-', '_') meth = getattr(self, '_handle_' + generic, None) if meth is None: meth = self._writeBody meth(msg)
meth = self._writeBody meth(msg)
def _dispatch(self, msg): # Get the Content-Type: for the message, then try to dispatch to # self._handle_maintype_subtype(). If there's no handler for the full # MIME type, then dispatch to self._handle_maintype(). If that's # missing too, then dispatch to self._writeBody(). ctype = msg.get_type() if ctype is None: ...
93c40f0c3a9e96f46e51d92c3bfa8ac50012902b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/93c40f0c3a9e96f46e51d92c3bfa8ac50012902b/Generator.py
def _handle_multipart(self, msg, isdigest=0):
def _handle_multipart(self, msg):
def _handle_multipart(self, msg, isdigest=0): # The trick here is to write out each part separately, merge them all # together, and then make sure that the boundary we've chosen isn't # present in the payload. msgtexts = [] subparts = msg.get_payload() if subparts is None: # Nothing has every been attached boundary = m...
93c40f0c3a9e96f46e51d92c3bfa8ac50012902b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/93c40f0c3a9e96f46e51d92c3bfa8ac50012902b/Generator.py
def _handle_multipart(self, msg, isdigest=0): # The trick here is to write out each part separately, merge them all # together, and then make sure that the boundary we've chosen isn't # present in the payload. msgtexts = [] subparts = msg.get_payload() if subparts is None: # Nothing has every been attached boundary = m...
93c40f0c3a9e96f46e51d92c3bfa8ac50012902b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/93c40f0c3a9e96f46e51d92c3bfa8ac50012902b/Generator.py
g = self.__class__(s, self._mangle_from_, self.__maxheaderlen)
g = self.clone(s)
def _handle_multipart(self, msg, isdigest=0): # The trick here is to write out each part separately, merge them all # together, and then make sure that the boundary we've chosen isn't # present in the payload. msgtexts = [] subparts = msg.get_payload() if subparts is None: # Nothing has every been attached boundary = m...
93c40f0c3a9e96f46e51d92c3bfa8ac50012902b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/93c40f0c3a9e96f46e51d92c3bfa8ac50012902b/Generator.py
if isdigest: print >> self._fp
def _handle_multipart(self, msg, isdigest=0): # The trick here is to write out each part separately, merge them all # together, and then make sure that the boundary we've chosen isn't # present in the payload. msgtexts = [] subparts = msg.get_payload() if subparts is None: # Nothing has every been attached boundary = m...
93c40f0c3a9e96f46e51d92c3bfa8ac50012902b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/93c40f0c3a9e96f46e51d92c3bfa8ac50012902b/Generator.py
if isdigest: joiner += '\n'
def _handle_multipart(self, msg, isdigest=0): # The trick here is to write out each part separately, merge them all # together, and then make sure that the boundary we've chosen isn't # present in the payload. msgtexts = [] subparts = msg.get_payload() if subparts is None: # Nothing has every been attached boundary = m...
93c40f0c3a9e96f46e51d92c3bfa8ac50012902b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/93c40f0c3a9e96f46e51d92c3bfa8ac50012902b/Generator.py
def _handle_multipart_digest(self, msg): self._handle_multipart(msg, isdigest=1)
def _handle_multipart_digest(self, msg): self._handle_multipart(msg, isdigest=1)
93c40f0c3a9e96f46e51d92c3bfa8ac50012902b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/93c40f0c3a9e96f46e51d92c3bfa8ac50012902b/Generator.py
g = self.__class__(s, self._mangle_from_, self.__maxheaderlen)
g = self.clone(s)
def _handle_message_delivery_status(self, msg): # We can't just write the headers directly to self's file object # because this will leave an extra newline between the last header # block and the boundary. Sigh. blocks = [] for part in msg.get_payload(): s = StringIO() g = self.__class__(s, self._mangle_from_, self.__...
93c40f0c3a9e96f46e51d92c3bfa8ac50012902b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/93c40f0c3a9e96f46e51d92c3bfa8ac50012902b/Generator.py
g = self.__class__(s, self._mangle_from_, self.__maxheaderlen)
g = self.clone(s)
def _handle_message(self, msg): s = StringIO() g = self.__class__(s, self._mangle_from_, self.__maxheaderlen) # The payload of a message/rfc822 part should be a multipart sequence # of length 1. The zeroth element of the list should be the Message # object for the subpart.Extract that object, stringify it, and write #...
93c40f0c3a9e96f46e51d92c3bfa8ac50012902b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/93c40f0c3a9e96f46e51d92c3bfa8ac50012902b/Generator.py
def _handle_message(self, msg): s = StringIO() g = self.__class__(s, self._mangle_from_, self.__maxheaderlen) # The payload of a message/rfc822 part should be a multipart sequence # of length 1. The zeroth element of the list should be the Message # object for the subpart.Extract that object, stringify it, and write #...
93c40f0c3a9e96f46e51d92c3bfa8ac50012902b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/93c40f0c3a9e96f46e51d92c3bfa8ac50012902b/Generator.py
"""Same as in BaseServer but as a thread.""" self.finish_request(request, client_address) self.close_request(request)
"""Same as in BaseServer but as a thread. In addition, exception handling is done here. """ try: self.finish_request(request, client_address) self.close_request(request) except: self.handle_error(request, client_address) self.close_request(request)
def process_request_thread(self, request, client_address): """Same as in BaseServer but as a thread.""" self.finish_request(request, client_address) self.close_request(request)
83c3281826316e2a1c1e9b682c5d303be5df79f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/83c3281826316e2a1c1e9b682c5d303be5df79f4/SocketServer.py
tag = self.stack[-1][0]
tag = self.stack[-1][0]
def parse_endtag(self, i): rawdata = self.rawdata end = endbracketfind.match(rawdata, i+1) if end is None: return -1 res = tagfind.match(rawdata, i+2) if res is None: if self.literal: self.handle_data(rawdata[i]) return i+1 if not self.__accept_missing_endtag_name: self.syntax_error('no name specified in end tag') tag ...
d468bd3463085b1544a8f09981dc81fd615d2da7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d468bd3463085b1544a8f09981dc81fd615d2da7/xmllib.py
if sys.platform == 'win32': reuse_constant = socket.SO_EXCLUSIVEADDRUSE else: reuse_constant = socket.SO_REUSEADDR
def set_reuse_addr(self): # try to re-use a server port if possible try: # Windows SO_REUSEADDR is very broken (from a unixy perspective) if sys.platform == 'win32': reuse_constant = socket.SO_EXCLUSIVEADDRUSE else: reuse_constant = socket.SO_REUSEADDR
9d499f2f96197b5a8deeff98228c667adb4b43e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9d499f2f96197b5a8deeff98228c667adb4b43e6/asyncore.py
socket.SOL_SOCKET, reuse_constant,
socket.SOL_SOCKET, socket.SO_REUSEADDR,
def set_reuse_addr(self): # try to re-use a server port if possible try: # Windows SO_REUSEADDR is very broken (from a unixy perspective) if sys.platform == 'win32': reuse_constant = socket.SO_EXCLUSIVEADDRUSE else: reuse_constant = socket.SO_REUSEADDR
9d499f2f96197b5a8deeff98228c667adb4b43e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9d499f2f96197b5a8deeff98228c667adb4b43e6/asyncore.py
reuse_constant) | 1
socket.SO_REUSEADDR) | 1
def set_reuse_addr(self): # try to re-use a server port if possible try: # Windows SO_REUSEADDR is very broken (from a unixy perspective) if sys.platform == 'win32': reuse_constant = socket.SO_EXCLUSIVEADDRUSE else: reuse_constant = socket.SO_REUSEADDR
9d499f2f96197b5a8deeff98228c667adb4b43e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9d499f2f96197b5a8deeff98228c667adb4b43e6/asyncore.py
def visit(pattern, dirname, names):
def main(): try: opts, args = getopt.getopt(sys.argv[1:], '') if len(args) < 2: raise getopt.error, 'not enough arguments' except getopt.error, msg: sys.stdout = sys.stderr print msg print 'usage: findlinksto pattern directory ...' sys.exit(2) pat, dirs = args[0], args[1:] prog = regex.compile(pat) for dirname in dirs:...
def visit(pattern, dirname, names): if os.path.islink(dirname): names[:] = [] return if os.path.ismount(dirname): print 'descend into', dirname n = len(pattern) for name in names: name = os.path.join(dirname, name) try: linkto = os.readlink(name) if linkto[:n] == pattern: print name, '->', linkto except os.error: pass
5ec8b525d26aad1bc77ef81aefb081250478cd37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5ec8b525d26aad1bc77ef81aefb081250478cd37/findlinksto.py
n = len(pattern)
def visit(pattern, dirname, names): if os.path.islink(dirname): names[:] = [] return if os.path.ismount(dirname): print 'descend into', dirname n = len(pattern) for name in names: name = os.path.join(dirname, name) try: linkto = os.readlink(name) if linkto[:n] == pattern: print name, '->', linkto except os.error: pass
5ec8b525d26aad1bc77ef81aefb081250478cd37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5ec8b525d26aad1bc77ef81aefb081250478cd37/findlinksto.py
if linkto[:n] == pattern:
if prog.search(linkto) >= 0:
def visit(pattern, dirname, names): if os.path.islink(dirname): names[:] = [] return if os.path.ismount(dirname): print 'descend into', dirname n = len(pattern) for name in names: name = os.path.join(dirname, name) try: linkto = os.readlink(name) if linkto[:n] == pattern: print name, '->', linkto except os.error: pass
5ec8b525d26aad1bc77ef81aefb081250478cd37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5ec8b525d26aad1bc77ef81aefb081250478cd37/findlinksto.py
if op in (LITERAL, NOT_LITERAL):
if op in LITERAL_CODES:
def _compile(code, pattern, flags): # internal: compile a (sub)pattern emit = code.append for op, av in pattern: if op in (LITERAL, NOT_LITERAL): if flags & SRE_FLAG_IGNORECASE: emit(OPCODES[OP_IGNORE[op]]) emit(_sre.getlower(av, flags)) else: emit(OPCODES[op]) emit(av) elif op is IN: if flags & SRE_FLAG_IGNORECASE: em...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
fixup = lambda x: x skip = len(code); emit(0)
fixup = _identityfunction skip = _len(code); emit(0)
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
code[skip] = len(code) - skip
code[skip] = _len(code) - skip
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
elif op in (REPEAT, MIN_REPEAT, MAX_REPEAT):
elif op in REPEATING_CODES:
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
skip = len(code); emit(0)
skip = _len(code); emit(0)
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
code[skip] = len(code) - skip elif _simple(av) and op != REPEAT: if op == MAX_REPEAT:
code[skip] = _len(code) - skip elif _simple(av) and op is not REPEAT: if op is MAX_REPEAT:
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
skip = len(code); emit(0)
skip = _len(code); emit(0)
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
code[skip] = len(code) - skip
code[skip] = _len(code) - skip
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
skip = len(code); emit(0)
skip = _len(code); emit(0)
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
code[skip] = len(code) - skip if op == MAX_REPEAT:
code[skip] = _len(code) - skip if op is MAX_REPEAT:
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
elif op in (SUCCESS, FAILURE): emit(OPCODES[op]) elif op in (ASSERT, ASSERT_NOT): emit(OPCODES[op]) skip = len(code); emit(0)
elif op in SUCCESS_CODES: emit(OPCODES[op]) elif op in ASSERT_CODES: emit(OPCODES[op]) skip = _len(code); emit(0)
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
code[skip] = len(code) - skip
code[skip] = _len(code) - skip
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
skip = len(code); emit(0)
skip = _len(code); emit(0)
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
code[skip] = len(code) - skip
code[skip] = _len(code) - skip
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
skip = len(code); emit(0)
skip = _len(code); emit(0)
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
tail.append(len(code)); emit(0) code[skip] = len(code) - skip
tailappend(_len(code)); emit(0) code[skip] = _len(code) - skip
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
code[tail] = len(code) - tail
code[tail] = _len(code) - tail
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
skipyes = len(code); emit(0)
skipyes = _len(code); emit(0)
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
skipno = len(code); emit(0) code[skipyes] = len(code) - skipyes + 1
skipno = _len(code); emit(0) code[skipyes] = _len(code) - skipyes + 1
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
code[skipno] = len(code) - skipno else: code[skipyes] = len(code) - skipyes + 1
code[skipno] = _len(code) - skipno else: code[skipyes] = _len(code) - skipyes + 1
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
fixup = lambda x: x
fixup = _identityfunction
def _compile_charset(charset, flags, code, fixup=None): # compile charset subprogram emit = code.append if fixup is None: fixup = lambda x: x for op, av in _optimize_charset(charset, fixup): emit(OPCODES[op]) if op is NEGATE: pass elif op is LITERAL: emit(fixup(av)) elif op is RANGE: emit(fixup(av[0])) emit(fixup(av[1]...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
out.append((op, av))
outappend((op, av))
def _optimize_charset(charset, fixup): # internal: optimize character set out = [] charmap = [False]*256 try: for op, av in charset: if op is NEGATE: out.append((op, av)) elif op is LITERAL: charmap[fixup(av)] = True elif op is RANGE: for i in range(fixup(av[0]), fixup(av[1])+1): charmap[i] = True elif op is CATEGORY: ...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
runs.append((p, n))
runsappend((p, n))
def _optimize_charset(charset, fixup): # internal: optimize character set out = [] charmap = [False]*256 try: for op, av in charset: if op is NEGATE: out.append((op, av)) elif op is LITERAL: charmap[fixup(av)] = True elif op is RANGE: for i in range(fixup(av[0]), fixup(av[1])+1): charmap[i] = True elif op is CATEGORY: ...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
runs.append((p, n))
runsappend((p, n))
def _optimize_charset(charset, fixup): # internal: optimize character set out = [] charmap = [False]*256 try: for op, av in charset: if op is NEGATE: out.append((op, av)) elif op is LITERAL: charmap[fixup(av)] = True elif op is RANGE: for i in range(fixup(av[0]), fixup(av[1])+1): charmap[i] = True elif op is CATEGORY: ...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
out.append((LITERAL, p)) else: out.append((RANGE, (p, p+n-1)))
outappend((LITERAL, p)) else: outappend((RANGE, (p, p+n-1)))
def _optimize_charset(charset, fixup): # internal: optimize character set out = [] charmap = [False]*256 try: for op, av in charset: if op is NEGATE: out.append((op, av)) elif op is LITERAL: charmap[fixup(av)] = True elif op is RANGE: for i in range(fixup(av[0]), fixup(av[1])+1): charmap[i] = True elif op is CATEGORY: ...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
out.append((CHARSET, data))
outappend((CHARSET, data))
def _optimize_charset(charset, fixup): # internal: optimize character set out = [] charmap = [False]*256 try: for op, av in charset: if op is NEGATE: out.append((op, av)) elif op is LITERAL: charmap[fixup(av)] = True elif op is RANGE: for i in range(fixup(av[0]), fixup(av[1])+1): charmap[i] = True elif op is CATEGORY: ...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
m = m << 1
m = m + m
def _mk_bitmap(bits): data = [] if _sre.CODESIZE == 2: start = (1, 0) else: start = (1L, 0L) m, v = start for c in bits: if c: v = v + m m = m << 1 if m > MAXCODE: data.append(v) m, v = start return data
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
data.append(v)
dataappend(v)
def _mk_bitmap(bits): data = [] if _sre.CODESIZE == 2: start = (1, 0) else: start = (1L, 0L) m, v = start for c in bits: if c: v = v + m m = m << 1 if m > MAXCODE: data.append(v) m, v = start return data
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
for i in range(fixup(av[0]), fixup(av[1])+1):
for i in xrange(fixup(av[0]), fixup(av[1])+1):
def _optimize_unicode(charset, fixup): try: import array except ImportError: return charset charmap = [False]*65536 negate = 0 try: for op, av in charset: if op is NEGATE: negate = 1 elif op is LITERAL: charmap[fixup(av)] = True elif op is RANGE: for i in range(fixup(av[0]), fixup(av[1])+1): charmap[i] = True elif op i...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
for i in range(65536):
for i in xrange(65536):
def _optimize_unicode(charset, fixup): try: import array except ImportError: return charset charmap = [False]*65536 negate = 0 try: for op, av in charset: if op is NEGATE: negate = 1 elif op is LITERAL: charmap[fixup(av)] = True elif op is RANGE: for i in range(fixup(av[0]), fixup(av[1])+1): charmap[i] = True elif op i...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
for i in range(256):
for i in xrange(256):
def _optimize_unicode(charset, fixup): try: import array except ImportError: return charset charmap = [False]*65536 negate = 0 try: for op, av in charset: if op is NEGATE: negate = 1 elif op is LITERAL: charmap[fixup(av)] = True elif op is RANGE: for i in range(fixup(av[0]), fixup(av[1])+1): charmap[i] = True elif op i...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
prefix.append(av)
prefixappend(av)
def _compile_info(code, pattern, flags): # internal: compile an info block. in the current version, # this contains min/max pattern width, and an optional literal # prefix or a character map lo, hi = pattern.getwidth() if lo == 0: return # not worth it # look for a literal prefix prefix = [] prefix_skip = 0 charset = ...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
prefix.append(av)
prefixappend(av)
def _compile_info(code, pattern, flags): # internal: compile an info block. in the current version, # this contains min/max pattern width, and an optional literal # prefix or a character map lo, hi = pattern.getwidth() if lo == 0: return # not worth it # look for a literal prefix prefix = [] prefix_skip = 0 charset = ...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
charset.append((op, av))
charsetappend((op, av))
def _compile_info(code, pattern, flags): # internal: compile an info block. in the current version, # this contains min/max pattern width, and an optional literal # prefix or a character map lo, hi = pattern.getwidth() if lo == 0: return # not worth it # look for a literal prefix prefix = [] prefix_skip = 0 charset = ...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
c.append((op, av))
cappend((op, av))
def _compile_info(code, pattern, flags): # internal: compile an info block. in the current version, # this contains min/max pattern width, and an optional literal # prefix or a character map lo, hi = pattern.getwidth() if lo == 0: return # not worth it # look for a literal prefix prefix = [] prefix_skip = 0 charset = ...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
c.append((op, av))
cappend((op, av))
def _compile_info(code, pattern, flags): # internal: compile an info block. in the current version, # this contains min/max pattern width, and an optional literal # prefix or a character map lo, hi = pattern.getwidth() if lo == 0: return # not worth it # look for a literal prefix prefix = [] prefix_skip = 0 charset = ...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
for i in range(len(prefix)):
for i in xrange(len(prefix)):
def _compile_info(code, pattern, flags): # internal: compile an info block. in the current version, # this contains min/max pattern width, and an optional literal # prefix or a character map lo, hi = pattern.getwidth() if lo == 0: return # not worth it # look for a literal prefix prefix = [] prefix_skip = 0 charset = ...
01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py
"""quote('abc def') -> 'abc%20def')."""
"""quote('abc def') -> 'abc%20def'."""
def quote(s, safe = '/'): """quote('abc def') -> 'abc%20def').""" # XXX Can speed this up an order of magnitude safe = always_safe + safe res = list(s) for i in range(len(res)): c = res[i] if c not in safe: res[i] = '%%%02x' % ord(c) return string.joinfields(res, '')
79f1c1778d328b42e67e1480d3a2349e9408d634 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/79f1c1778d328b42e67e1480d3a2349e9408d634/urllib.py
if not self.untagged_responses.has_key('READ-WRITE') \
if self.untagged_responses.has_key('READ-ONLY') \
def select(self, mailbox='INBOX', readonly=None): """Select a mailbox.
619c33787b935eafa847ace6f2cdc7f696937e88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/619c33787b935eafa847ace6f2cdc7f696937e88/imaplib.py
if self.untagged_responses.has_key('READ-WRITE') \ and self.untagged_responses.has_key('READ-ONLY'): del self.untagged_responses['READ-WRITE']
if self.untagged_responses.has_key('READ-ONLY') \ and not self.is_readonly:
def _command(self, name, *args):
619c33787b935eafa847ace6f2cdc7f696937e88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/619c33787b935eafa847ace6f2cdc7f696937e88/imaplib.py
def setcontext(context, _local=local): """Set this thread's context to context.""" if context in (DefaultContext, BasicContext, ExtendedContext): context = context.copy() context.clear_flags() _local.__decimal_context__ = context
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
return Decimal((sign, self._int, self._exp))._fix(context=context)
return Decimal((sign, self._int, self._exp))._fix(context)
def __neg__(self, context=None): """Returns a copy with the sign switched.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
ans = self._fix(context=context)
ans = self._fix(context)
def __pos__(self, context=None): """Returns a copy, unless it is a sNaN.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
ans = ans._fix(context=context)
ans = ans._fix(context)
def __add__(self, other, context=None): """Returns self + other.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
ans = ans._fix(context=context)
ans = ans._fix(context)
def __add__(self, other, context=None): """Returns self + other.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
ans = ans._fix(context=context)
ans = ans._fix(context)
def __add__(self, other, context=None): """Returns self + other.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
ans = ans._fix(context=context)
ans = ans._fix(context)
def _increment(self, round=1, context=None): """Special case of add, adding 1eExponent
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
ans = ans._fix(context=context)
ans = ans._fix(context)
def __mul__(self, other, context=None): """Return self * other.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
ans = ans._fix(context=context)
ans = ans._fix(context)
def __mul__(self, other, context=None): """Return self * other.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
ans = ans._fix(context=context)
ans = ans._fix(context)
def __mul__(self, other, context=None): """Return self * other.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
ans = ans._fix(context=context)
ans = ans._fix(context)
def __mul__(self, other, context=None): """Return self * other.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
ans2 = ans2._fix(context=context)
ans2 = ans2._fix(context)
def _divide(self, other, divmod = 0, context=None): """Return a / b, to context.prec precision.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
otherside = otherside._fix(context=context)
otherside = otherside._fix(context)
def _divide(self, other, divmod = 0, context=None): """Return a / b, to context.prec precision.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
ans = ans._fix(context=context)
ans = ans._fix(context)
def _divide(self, other, divmod = 0, context=None): """Return a / b, to context.prec precision.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
return r._fix(context=context)
return r._fix(context)
def remainder_near(self, other, context=None): """ Remainder nearest to 0- abs(remainder-near) <= other/2 """ other = _convert_other(other)
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
return r._fix(context=context)
return r._fix(context)
def remainder_near(self, other, context=None): """ Remainder nearest to 0- abs(remainder-near) <= other/2 """ other = _convert_other(other)
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
def _fix(self, prec=None, rounding=None, folddown=None, context=None):
def _fix(self, context):
def _fix(self, prec=None, rounding=None, folddown=None, context=None): """Round if it is necessary to keep self within prec precision.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
prec - precision to which to round. By default, the context decides. rounding - Rounding method. By default, the context decides. folddown - Fold down high elements, by default context._clamp
def _fix(self, prec=None, rounding=None, folddown=None, context=None): """Round if it is necessary to keep self within prec precision.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
if prec is None: prec = context.prec ans = Decimal(self) ans = ans._fixexponents(prec, rounding, folddown=folddown, context=context)
prec = context.prec ans = self._fixexponents(prec, context)
def _fix(self, prec=None, rounding=None, folddown=None, context=None): """Round if it is necessary to keep self within prec precision.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
ans = ans._round(prec, rounding, context=context) ans = ans._fixexponents(prec, rounding, folddown=folddown, context=context)
ans = ans._round(prec, context=context) ans = ans._fixexponents(prec, context)
def _fix(self, prec=None, rounding=None, folddown=None, context=None): """Round if it is necessary to keep self within prec precision.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
def _fixexponents(self, prec=None, rounding=None, folddown=None, context=None): """Fix the exponents and return a copy with the exponent in bounds.""" if self._is_special: return self if context is None: context = getcontext() if prec is None: prec = context.prec if folddown is None: folddown = context._clamp
def _fixexponents(self, prec, context): """Fix the exponents and return a copy with the exponent in bounds. Only call if known to not be a special value. """ folddown = context._clamp
def _fixexponents(self, prec=None, rounding=None, folddown=None, context=None): """Fix the exponents and return a copy with the exponent in bounds.""" if self._is_special: return self if context is None: context = getcontext() if prec is None: prec = context.prec if folddown is None: folddown = context._clamp Emin = co...
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
return val._fix(context=context)
return val._fix(context)
def __pow__(self, n, modulo = None, context=None): """Return self ** n (mod modulo)
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
dup = self._fix(context=context)
dup = self._fix(context)
def normalize(self, context=None): """Normalize- strip trailing 0s, change anything equal to 0 to 0e0"""
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
def quantize(self, exp, rounding = None, context=None, watchexp = 1):
def quantize(self, exp, rounding=None, context=None, watchexp=1):
def quantize(self, exp, rounding = None, context=None, watchexp = 1): """Quantize self so its exponent is the same as that of exp.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
def _rescale(self, exp, rounding = None, context=None, watchexp = 1):
def _rescale(self, exp, rounding=None, context=None, watchexp=1):
def _rescale(self, exp, rounding = None, context=None, watchexp = 1): """Rescales so that the exponent is exp.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
digits = len(self._int)+diff
digits = len(self._int) + diff
def _rescale(self, exp, rounding = None, context=None, watchexp = 1): """Rescales so that the exponent is exp.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
tmp._int = (0,)+tmp._int
tmp._int = (0,) + tmp._int
def _rescale(self, exp, rounding = None, context=None, watchexp = 1): """Rescales so that the exponent is exp.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py