summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Handle NULL nodes while parsing. I'm not entirely sure this is correct.Neal Norwitz2006-08-121-0/+6
| | | | | | There might be something else that needs to be done to setup the error. Klocwork #295.
* This code is actually not used unless WITHOUT_COMPLEX is defined.Neal Norwitz2006-08-121-0/+8
| | | | | | | | However, there was no error checking that PyFloat_FromDouble returned a valid pointer. I believe this change is correct as it seemed to follow other code in the area. Klocwork # 292.
* It's highly unlikely, though possible for PyEval_Get*() to return NULLs.Neal Norwitz2006-08-121-2/+2
| | | | | | So be safe and do an XINCREF. Klocwork # 221-222.
* Even though _Py_Mangle() isn't truly public anyone can call it andNeal Norwitz2006-08-121-2/+2
| | | | | | | | | | there was no verification that privateobj was a PyString. If it wasn't a string, this could have allowed a NULL pointer to creep in below and crash. I wonder if this should be PyString_CheckExact? Must identifiers be strings or can they be subclasses? Klocwork #275
* Klocwork made another run and found a bunch more problems.Neal Norwitz2006-08-128-3/+28
| | | | | | | This is the first batch of fixes that should be easy to verify based on context. This fixes problem numbers: 220 (ast), 323-324 (symtable), 321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree).
* When a ctypes C callback function is called, zero out the resultThomas Heller2006-08-111-7/+17
| | | | | | | | storage before converting the result to C data. See the comment in the code for details. Provide a better context for errors when the conversion of a callback function's result cannot be converted.
* Add ignore of *.pyc and *.pyo to Lib/xml/etree/.Thomas Wouters2006-08-110-0/+0
|
* logging's atexit hook now runs even if the rest of the module hasGeorg Brandl2006-08-112-2/+5
| | | | already been cleaned up.
* Add Chris McDonough (latest cgi.py patch)Georg Brandl2006-08-111-0/+1
|
* Fix the failures on cygwin (2006-08-10 fixed the actual locking issue).Neal Norwitz2006-08-112-5/+10
| | | | | | The first hunk changes the colon to an ! like other Windows variants. We need to always wait on the child so the lock gets released and no other tests fail. This is the try/finally in the second hunk.
* force_test_exit(): This has been completely ineffectiveTim Peters2006-08-111-1/+5
| | | | | | | at stopping test_signal from hanging forever on the Tru64 buildbot. That could be because there's no such thing as signal.SIGALARM. Changed to the idiotic (but standard) signal.SIGALRM instead, and added some more debug output.
* test_PyThreadState_SetAsyncExc(): This is failing on someTim Peters2006-08-111-3/+4
| | | | | | | | | | | 64-bit boxes. I have no idea what the ctypes docs mean by "integers", and blind-guessing here that it intended to mean the signed C "int" type, in which case perhaps I can repair this by feeding the thread id argument to type ctypes.c_long(). Also made the worker thread daemonic, so it doesn't hang Python shutdown if the test continues to fail.
* Whitespace normalization broke test_cgi, because a lineTim Peters2006-08-101-2/+2
| | | | | | of quoted test data relied on preserving a single trailing blank. Changed the string from raw to regular, and forced in the trailing blank via an explicit \x20 escape.
* Whitespace normalization.Tim Peters2006-08-101-1/+1
|
* Followup to bug #1069160.Tim Peters2006-08-104-20/+113
| | | | | | PyThreadState_SetAsyncExc(): internal correctness changes wrt refcount safety and deadlock avoidance. Also added a basic test case (relying on ctypes) and repaired the docs.
* Update dangling references to the 3.2 database toMartin v. Löwis2006-08-101-5/+5
| | | | mention that this is UCD 4.1 now.
* Fix title -- it's rc1, not beta3.Guido van Rossum2006-08-101-2/+2
|
* News item for SF bug 1112549.Guido van Rossum2006-08-101-3/+5
|
* Chris McDonough's patch to defend against certain DoS attacks on FieldStorage.Guido van Rossum2006-08-103-5/+86
| | | | SF bug #1112549.
* Retrieval of previous shell command was not always preserving indentationKurt B. Kaiser2006-08-102-9/+18
| | | | since 1.2a1) Patch 1528468 Tal Einat.
* test_copytree_simple(): This was leaving behind two new tempTim Peters2006-08-101-16/+36
| | | | | | | | | | | | | | directories each time it ran, at least on Windows. Several changes: explicitly closed all files; wrapped long lines; stopped suppressing errors when removing a file or directory fails (removing /shouldn't/ fail!); and changed what appeared to be incorrect usage of os.removedirs() (that doesn't remove empty directories at and /under/ the given path, instead it must be given an empty leaf directory and then deletes empty directories moving /up/ the path -- could be that the conceptually simpler shutil.rmtree() was really actually intended here).
* Changing tokenize (39046) to detect dedent broke tabnanny check (since 1.2a1)Kurt B. Kaiser2006-08-102-0/+5
|
* Add missing svn:eol-style property to text files.Tim Peters2006-08-100-0/+0
|
* Add some commentary on -mimpure-text.Martin v. Löwis2006-08-091-0/+8
|
* ToggleTab dialog was setting indent to 8 even if cancelled (since 1.2a1).Kurt B. Kaiser2006-08-092-5/+7
|
* Typo fixAndrew M. Kuchling2006-08-091-1/+1
|
* As a slight enhancement to the previous checkin, improve theKurt B. Kaiser2006-08-091-2/+5
| | | | internal error reporting by moving message to IDLE console.
* 1. When used w/o subprocess, all exceptions were preceeded by an errorKurt B. Kaiser2006-08-093-4/+13
| | | | | | | | | message claiming they were IDLE internal errors (since 1.2a1). 2. Add Ronald Oussoren to CREDITS M NEWS.txt M PyShell.py M CREDITS.txt
* Concatenation on a long string breaks (SF #1526585).Armin Rigo2006-08-094-5/+78
|
* It's unlikely that future versions will require _POSIX_C_SOURCERonald Oussoren2006-08-092-2/+2
|
* Fix and test for an infinite C recursion.Armin Rigo2006-08-092-1/+5
|
* Reindent codeAndrew M. Kuchling2006-08-091-31/+33
|
* Add missing 'self' parametersAndrew M. Kuchling2006-08-091-3/+6
|
* [Patch #1534027] Add notes on locale module changesAndrew M. Kuchling2006-08-091-5/+34
|
* [Bug #1536021] Mention __hash__ changeAndrew M. Kuchling2006-08-091-2/+10
|
* __hash__ may now return long int; the final hashMartin v. Löwis2006-08-095-6/+24
| | | | | value is obtained by invoking hash on the long int. Fixes #1536021.
* Introduce an upper bound on tuple nesting depth inGeorg Brandl2006-08-091-0/+3
| | | | C argument format strings; fixes rest of #1523610.
* Whitespace normalization.Tim Peters2006-08-091-1/+1
|
* ``str`` is now the same object as ``types.StringType``.Georg Brandl2006-08-081-17/+24
|
* Bug #1536660: separate two words.Georg Brandl2006-08-081-1/+1
|
* Bug #1536828: typo: TypeType should have been StringType.Georg Brandl2006-08-081-1/+1
|
* Bump version numberAndrew M. Kuchling2006-08-081-1/+1
|
* 'Other changes' section now has only one item; move the item elsewhere and ↵Andrew M. Kuchling2006-08-081-22/+13
| | | | remove the section
* Move obmalloc item into C API sectionAndrew M. Kuchling2006-08-081-29/+29
|
* Reword paragraph to clarifyAndrew M. Kuchling2006-08-081-4/+5
|
* Remove accidently committed, duplicated test.Thomas Heller2006-08-081-2/+0
|
* memcmp() can return values other than -1, 0, and +1 but tp_compareThomas Heller2006-08-083-1/+6
| | | | must not.
* Remove "non-mapping" and "non-sequence" from TypeErrors raised byGeorg Brandl2006-08-081-2/+2
| | | | | | | PyMapping_Size and PySequence_Size. Because len() tries first sequence, then mapping size, it will always raise a "non-mapping object has no len" error which is confusing.
* webbrowser: Silence stderr output if no gconftool or gnome browser foundGeorg Brandl2006-08-081-2/+2
|
* [Patch #1464056] Ensure that we use the panelw library when linking with ↵Andrew M. Kuchling2006-08-061-2/+6
| | | | | | ncursesw. Once I see how the buildbots react, I'll backport this to 2.4.