summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Subclasses of int/long are allowed to define an __index__.Neal Norwitz2006-08-152-12/+11
|
* Update the docstring to use a version a little newer than 1999. This wasNeal Norwitz2006-08-151-3/+3
| | | | taken from a Debian patch. Should we update the version for each release?
* Fix the test for SocketServer so it should pass on cygwin and not failNeal Norwitz2006-08-152-0/+12
| | | | | | | | sporadically on other platforms. This is really a band-aid that doesn't fix the underlying issue in SocketServer. It's not clear if it's worth it to fix SocketServer, however, I opened a bug to track it: http://python.org/sf/1540386
* Georg fixed one of my bugs, so I'll repay him with 2 NEWS entries.Neal Norwitz2006-08-151-0/+4
| | | | Now we're even. :-)
* Whitespace normalization.Tim Peters2006-08-152-3/+3
|
* Patch #1511317: don't crash on invalid hostname infoGeorg Brandl2006-08-141-11/+14
|
* Cookie.py shouldn't "bogusly" use string._idmap.Georg Brandl2006-08-142-3/+4
|
* Patch #1536071: trace.py should now find the full module name of aGeorg Brandl2006-08-142-1/+6
| | | | file correctly even on Windows.
* Add an additional test: BZ2File write methods should raise IOErrorGeorg Brandl2006-08-141-0/+9
| | | | when file is read-only.
* Patch #1535500: fix segfault in BZ2File.writelines and make sure itGeorg Brandl2006-08-143-2/+22
| | | | raises the correct exceptions.
* Make tabnanny recognize IndentationErrors raised by tokenize.Georg Brandl2006-08-144-1/+18
| | | | | Add a test to test_inspect to make sure indented source is recognized correctly. (fixes #1224621)
* Fix refleak introduced in rev. 51248.Georg Brandl2006-08-141-1/+3
|
* News item for rev 51281.Thomas Heller2006-08-141-0/+3
|
* Patch #1536908: Add support for AMD64 / OpenBSD.Thomas Heller2006-08-143-3/+2
| | | | | Remove the -no-stack-protector compiler flag for OpenBSD as it has been reported to be unneeded.
* Correct an accidentally removed previous patch.Marc-André Lemburg2006-08-141-5/+2
|
* Improve markup in PyUnicode_RichCompare.Georg Brandl2006-08-141-19/+14
|
* Readd NEWS items that were accidentally removed by r51276.Marc-André Lemburg2006-08-141-0/+13
|
* Apply the patch #1532975 plus ideas from the patch #1533481.Thomas Heller2006-08-148-182/+412
| | | | | | | | | | | | | | ctypes instances no longer have the internal and undocumented '_as_parameter_' attribute which was used to adapt them to foreign function calls; this mechanism is replaced by a function pointer in the type's stgdict. In the 'from_param' class methods, try the _as_parameter_ attribute if other conversions are not possible. This makes the documented _as_parameter_ mechanism work as intended. Change the ctypes version number to 1.0.1.
* Slightly revised version of patch #1538956:Marc-André Lemburg2006-08-1411-37/+171
| | | | | | | | | | Replace UnicodeDecodeErrors raised during == and != compares of Unicode and other objects with a new UnicodeWarning. All other comparisons continue to raise exceptions. Exceptions other than UnicodeDecodeErrors are also left untouched.
* Revert the change that tries to zero out a closure's result storageThomas Heller2006-08-141-15/+5
| | | | area because the size if unknown in source/callproc.c.
* Check for NULL return value of GenericCData_new().Thomas Heller2006-08-141-0/+4
| | | | Fixes klockwork issues #188, #189.
* Check for NULL return value from new_CArgObject().Thomas Heller2006-08-141-0/+6
| | | | Fixes klockwork issues #183, #184, #185.
* Remove unused, buggy test function.Thomas Heller2006-08-141-12/+0
| | | | Fixes klockwork issue #207.
* Update purify doc some.Neal Norwitz2006-08-141-2/+18
|
* Can't return NULL from a void function. If there is a memory error,Neal Norwitz2006-08-141-2/+2
| | | | | about the best we can do is call PyErr_WriteUnraisable and go on. We won't be able to do the call below either, so verify delstr is valid.
* Ignore pgen.exe and kill_python.exe for cygwinNeal Norwitz2006-08-140-0/+0
|
* Get rid of compiler warningNeal Norwitz2006-08-131-2/+2
|
* Handle alloca failures.Neal Norwitz2006-08-132-0/+15
| | | | Klocwork 225-228
* Handle malloc failure.Neal Norwitz2006-08-131-0/+4
| | | | Klocwork 281
* Really address the issue of where to place the assert for leftblock.Neal Norwitz2006-08-131-1/+1
| | | | (Followup of Klocwork 274)
* Handle failure from PyModule_GetDict() (Klocwork 208).Neal Norwitz2006-08-131-9/+15
| | | | | Fix a bunch of refleaks in the init of the module. This would only be found when running python -v.
* Handle failures from lookup.Neal Norwitz2006-08-131-0/+4
| | | | Klocwork 341-342
* It's very unlikely, though possible that source is not a string. VerifyNeal Norwitz2006-08-131-0/+3
| | | | | | | that PyString_AsString() returns a valid pointer. (The problem can arise when zlib.decompress doesn't return a string.) Klocwork 346
* Handle malloc and fopen failures more gracefully.Neal Norwitz2006-08-131-2/+8
| | | | Klocwork 180-181
* Check return result of PyModule_GetDict().Neal Norwitz2006-08-131-22/+24
| | | | | Fix a bunch of refleaks in the init of the module. This would only be found when running python -v.
* Fix segfault when doing string formatting on subclasses of long ifNeal Norwitz2006-08-133-1/+14
| | | | | | __oct__, __hex__ don't return a string. Klocwork 308
* cpathname could be NULL if it was longer than MAXPATHLEN. Don't tryNeal Norwitz2006-08-131-1/+6
| | | | | | | | to write the .pyc to NULL. Check results of PyList_GetItem() and PyModule_GetDict() are not NULL. Klocwork 282, 283, 285
* Handle a whole lot of failures from PyString_FromInternedString().Neal Norwitz2006-08-131-25/+101
| | | | Should fix most of Klocwork 234-272.
* Move/copy assert for tstate != NULL before first use.Neal Norwitz2006-08-131-1/+7
| | | | | | Verify that PyEval_Get{Globals,Locals} returned valid pointers. Klocwork 231-232
* SF bug #1539336, distutils example code missingNeal Norwitz2006-08-131-0/+2
|
* Fix a couple of bugs exposed by the new __index__ code. The 64-bit buildbotsNeal Norwitz2006-08-124-13/+25
| | | | | | | | | | | were failing due to inappropriate clipping of numbers larger than 2**31 with new-style classes. (typeobject.c) In reviewing the code for classic classes, there were 2 problems. Any negative value return could be returned. Always return -1 if there was an error. Also make the checks similar with the new-style classes. I believe this is correct for 32 and 64 bit boxes, including Windows64. Add a test of classic classes too.
* Patch #1538606, Patch to fix __index__() clipping.Neal Norwitz2006-08-1219-234/+319
| | | | | | | I modified this patch some by fixing style, some error checking, and adding XXX comments. This patch requires review and some changes are to be expected. I'm checking in now to get the greatest possible review and establish a baseline for moving forward. I don't want this to hold up release if possible.
* Repair logging test spew caused by rev. 51206.Georg Brandl2006-08-122-3/+3
|
* Ah, fudge. One of the prints here actually "shouldn't be"Tim Peters2006-08-121-2/+1
| | | | | | | | | protected by "if verbose:", which caused the test to fail on all non-Windows boxes. Note that I deliberately didn't convert this to unittest yet, because I expect it would be even harder to debug this on Tru64 after conversion.
* test_signal: Signal handling on the Tru64 buildbotTim Peters2006-08-122-65/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | appears to be utterly insane. Plug some theoretical insecurities in the test script: - Verify that the SIGALRM handler was actually installed. - Don't call alarm() before the handler is installed. - Move everything that can fail inside the try/finally, so the test cleans up after itself more often. - Try sending all the expected signals in force_test_exit(), not just SIGALRM. Since that was fixed to actually send SIGALRM (instead of invisibly dying with an AttributeError), we've seen that sending SIGALRM alone does not stop this from hanging. - Move the "kill the child" business into the finally clause, so the child doesn't survive test failure to send SIGALRM to other tests later (there are also baffling SIGALRM-related failures in test_socket). - Cancel the alarm in the finally clause -- if the test dies early, we again don't want SIGALRM showing up to confuse a later test. Alas, this still relies on timing luck wrt the spawned script that sends the test signals, but it's hard to see how waiting for seconds can so often be so unlucky. test_threadedsignals: curiously, this test never fails on Tru64, but doesn't normally signal SIGALRM. Anyway, fixed an obvious (but probably inconsequential) logic error.
* Verify verdat which is returned from malloc is not NULL.Neal Norwitz2006-08-121-4/+13
| | | | | | Ensure we don't pass NULL to free. Klocwork #306 (at least the first part, checking malloc)
* PyModule_GetDict() can fail, produce fatal errors if this happens on startup.Neal Norwitz2006-08-121-0/+4
| | | | Klocwork #298-299.
* Check return of PyMem_MALLOC (garbage) is non-NULL.Neal Norwitz2006-08-121-2/+6
| | | | | | Check seq in both portions of if/else. Klocwork #289-290.
* Don't deref v if it's NULL.Neal Norwitz2006-08-121-2/+4
| | | | Klocwork #214
* Whoops, how did that get in there. :-) Revert all the parts of 51227 that ↵Neal Norwitz2006-08-124-22/+2
| | | | were not supposed to go it. Only Modules/_ctypes/cfields.c was supposed to be changed