summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* remove the check that classmethod's argument is a callableBenjamin Peterson2009-09-012-10/+0
|
* Silence gcc 'comparison always false' warningMark Dickinson2009-08-282-2/+6
|
* #6707 fix a crash with dir() on an uninitialized moduleBenjamin Peterson2009-08-151-3/+5
|
* Issue 6330: Fix --enable-unicode=ucs4.Eric Smith2009-07-301-3/+20
|
* Issue 6573: Fix set.union() for cases where self is in the argument chain.Raymond Hettinger2009-07-271-1/+1
|
* Sync trunk and py3k versions of string formatting. Will manually merge into ↵Eric Smith2009-07-271-0/+6
| | | | py3k.
* clarifyBenjamin Peterson2009-07-251-1/+1
|
* Issue #6540: Fixed crash for bytearray.translate() with invalid parameters.Georg Brandl2009-07-221-3/+5
|
* must use _PyThreadState_Current so it isn't checked for NULL #6530Benjamin Peterson2009-07-211-4/+6
|
* Grow the allocated buffer in PyUnicode_EncodeUTF7 to avoid buffer overrun.Alexandre Vassalotti2009-07-071-2/+2
| | | | | | | Without this change, test_unicode.UnicodeTest.test_codecs_utf7 crashes in debug mode. What happens is the unicode string u'\U000abcde' with a length of 1 encodes to the string '+2m/c3g-' of length 8. Since only 5 bytes is reserved in the buffer, a buffer overrun occurs.
* only order comparisons are removed in py3k #6119Benjamin Peterson2009-07-021-6/+7
|
* Issue #6368: Fixed unused variable warning on Unix.Hirokazu Yamamoto2009-06-291-0/+2
|
* Issue #4856: Remove checks for win NT.Hirokazu Yamamoto2009-06-281-19/+11
|
* #2016 Fix a crash in function call when the **kwargs dictionary is mutatedAmaury Forgeot d'Arc2009-06-251-10/+11
| | | | | | | during the function call setup. This even gives a slight speedup, probably because tuple allocation is faster than PyMem_NEW.
* Issue 6329: Fix iteration for memoryviews.Raymond Hettinger2009-06-231-32/+51
|
* add underscoresBenjamin Peterson2009-06-161-2/+2
|
* Remove unused macro.Georg Brandl2009-06-161-1/+0
|
* Clear reference to the static PyExc_RecursionErrorInst in _PyExc_Fini.Alexandre Vassalotti2009-06-121-2/+2
|
* #6224: s/JPython/Jython/, and remove one link to a module nine years old.Georg Brandl2009-06-061-1/+1
|
* use the offical apiBenjamin Peterson2009-06-041-1/+1
|
* Fix compilation error with gcc 4.3.2Antoine Pitrou2009-06-011-1/+3
|
* #4547: When debugging a very large function, it was not alwaysAmaury Forgeot d'Arc2009-06-011-2/+2
| | | | possible to update the lineno attribute of the current frame.
* Uninitialized file type would lead to __exit__ lookup failure when site.pyAntoine Pitrou2009-05-311-0/+3
| | | | tries to read *.pth files on interpreter startup.
* Issue 5982: Classmethod and staticmethod expose wrapped function with __func__.Raymond Hettinger2009-05-291-2/+12
|
* plug ref leakBenjamin Peterson2009-05-271-4/+7
|
* correctly handle descrs with __missing__Benjamin Peterson2009-05-271-5/+6
|
* handle errors from _PyObject_LookupSpecial when __get__ failsBenjamin Peterson2009-05-253-3/+17
|
* Issue #6042:Jeffrey Yasskin2009-05-232-132/+132
| | | | | | | | | | | | | | | lnotab-based tracing is very complicated and isn't documented very well. There were at least 3 comment blocks purporting to document co_lnotab, and none did a very good job. This patch unifies them into Objects/lnotab_notes.txt which tries to completely capture the current state of affairs. I also discovered that we've attached 2 layers of patches to the basic tracing scheme. The first layer avoids jumping to instructions that don't start a line, to avoid problems in if statements and while loops. The second layer discovered that jumps backward do need to trace at instructions that don't start a line, so it added extra lnotab entries for 'while' and 'for' loops, and added a special case for backward jumps within the same line. I replaced these patches by just treating forward and backward jumps differently.
* Issue 6089: str.format raises SystemError.Eric Smith2009-05-231-2/+3
|
* Issue #5829: don't raise OverflowError for complex('1e500'). Backport of ↵Mark Dickinson2009-05-201-9/+0
| | | | r72803.
* Fix issue #1689458 by teaching frame_setlineno how to jump to the first line ofJeffrey Yasskin2009-05-201-14/+20
| | | | a code object.
* While I was modifying test_trace, it threw an exception when I accidentallyJeffrey Yasskin2009-05-181-1/+2
| | | | | | | made it try to set the line number from the trace callback for a 'call' event. This patch makes the error message a little more helpful in that case, and makes it a little less likely that a future editor will make the same mistake in test_trace.
* Issue #6044: remove confusing wording from complex -> integer andMark Dickinson2009-05-171-3/+3
| | | | complex -> float conversion error messages.
* Issue #3527: Removed Py_WIN_WIDE_FILENAMES which is not used any more.Hirokazu Yamamoto2009-05-171-1/+1
|
* completely ignore old-style stuff for type checking overloadingBenjamin Peterson2009-05-161-52/+30
|
* deal with old-style classes in issubclass and isinstanceBenjamin Peterson2009-05-161-2/+2
|
* properly lookup __instancecheck__ and __subclasscheck__Benjamin Peterson2009-05-162-30/+29
|
* Issue #5981: Fix some float.fromhex bugs related to inf and nan handling.Mark Dickinson2009-05-111-16/+36
|
* clear error state properlyBenjamin Peterson2009-05-091-0/+1
|
* ignore AttributeErrors for classic classesBenjamin Peterson2009-05-091-1/+2
|
* *sigh* deal with instances correctlyBenjamin Peterson2009-05-091-1/+12
|
* can't handle classic classes hereBenjamin Peterson2009-05-091-0/+1
|
* ignore classic classesBenjamin Peterson2009-05-091-0/+2
|
* convert some more special methods to use _PyObject_LookupSpecialBenjamin Peterson2009-05-091-13/+8
|
* lookup __reversed__ correctly as a special methodBenjamin Peterson2009-05-091-3/+8
|
* Issue 5954, PyFrame_GetLineNumber:Jeffrey Yasskin2009-05-081-13/+13
| | | | | | | | | | | | | | Most uses of PyCode_Addr2Line (http://www.google.com/codesearch?q=PyCode_Addr2Line) are just trying to get the line number of a specified frame, but there's no way to do that directly. Forcing people to go through the code object makes them know more about the guts of the interpreter than they should need. The remaining uses of PyCode_Addr2Line seem to be getting the line from a traceback (for example, http://www.google.com/codesearch/p?hl=en#u_9_nDrchrw/pygame-1.7.1release/src/base.c&q=PyCode_Addr2Line), which is replaced by the tb_lineno field. So we may be able to deprecate PyCode_Addr2Line entirely for external use.
* PyCode_NewEmpty:Jeffrey Yasskin2009-05-081-0/+46
| | | | | | | | Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New are trying to build an empty code object, usually to put it in a dummy frame object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify just the filename, function name, and first line number, instead of also requiring lots of code internals.
* this is now a bound methodBenjamin Peterson2009-05-081-1/+1
|
* add _PyObject_LookupSpecial to handle fetching special method lookupBenjamin Peterson2009-05-082-12/+11
|
* Issue #5920: Changed format.__float__ and complex.__float__ to use a ↵Eric Smith2009-05-053-16/+28
| | | | precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson.