Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SF bug 482574: audioop.ratecv crashes. | Tim Peters | 2001-12-05 | 1 | -6/+62 |
| | | | | | | | | | | | | Bugfix candidate. A numerically naive computation of output buffer size caused crashes and spurious MemoryErrors for reasonable arguments. audioop_ratecv(): Avoid spurious overflow by careful reworking of the buffer size computations, triggering MemoryError if and only if the final buffer size can't be represented in a C int (although PyString_FromStringAndSize may legitimately raise MemoryError even if it does fit in a C int). All reasonable arguments should work as intended now, and all unreasonable arguments should be cuaght. | ||||
* | Make sure to propogate errors that arise when profiling data cannot be | Fred Drake | 2001-12-04 | 1 | -71/+112 |
| | | | | | written to the log file, and turn off the profiler. This closes SF bug #483925. | ||||
* | More sprintf -> PyOS_snprintf. | Tim Peters | 2001-12-04 | 1 | -2/+3 |
| | |||||
* | posix_execve(), posix_spawnve(), posix_putenv(): | Tim Peters | 2001-12-03 | 1 | -6/+14 |
| | | | | | sprintf -> PyOS_snprintf. This is the last of this stuff I intend to do. | ||||
* | Changed logic for finding python home in Mac OS X framework Pythons. | Jack Jansen | 2001-12-02 | 1 | -47/+45 |
| | | | | | | Now sys.executable points to the executable again, in stead of to the shared library. The latter is used only for locating the python home. | ||||
* | Check for NULL return value of PyList_New (follow-up to patch #486743). | Martin v. Löwis | 2001-12-02 | 1 | -0/+3 |
| | |||||
* | Patch #481718: Time module doc string changes. | Martin v. Löwis | 2001-12-02 | 1 | -2/+4 |
| | |||||
* | Patch #486743: remove bad INCREF, propagate exception in append_objects. | Martin v. Löwis | 2001-12-02 | 1 | -6/+11 |
| | |||||
* | Remove INET6 define. Use ENABLE_IPV6 instead. | Martin v. Löwis | 2001-12-02 | 3 | -33/+33 |
| | |||||
* | unicodedata_decomposition(): sprintf -> PyOS_snprintf. | Tim Peters | 2001-11-30 | 1 | -2/+4 |
| | |||||
* | Use identity instead of equality when looking for referrers. Fixes #485781. | Martin v. Löwis | 2001-11-29 | 1 | -3/+4 |
| | |||||
* | More sprintf -> PyOS_snprintf. | Tim Peters | 2001-11-28 | 4 | -7/+11 |
| | |||||
* | Use PyOS_snprintf() instead of sprintf(). | Jeremy Hylton | 2001-11-28 | 1 | -4/+4 |
| | |||||
* | Repair a botched PyOS_snprintf conversion. | Tim Peters | 2001-11-28 | 1 | -1/+1 |
| | |||||
* | sprintf -> PyOS_snprintf in some "obviously safe" cases. | Tim Peters | 2001-11-28 | 13 | -36/+50 |
| | | | | | Also changed <>-style #includes to ""-style in some places where the former didn't make sense. | ||||
* | Fixes for possible buffer overflows in sprintf() usages. | Marc-André Lemburg | 2001-11-28 | 3 | -4/+4 |
| | |||||
* | Fix docstring typo | Andrew M. Kuchling | 2001-11-28 | 1 | -1/+1 |
| | |||||
* | Correct typo. Fixes #484611. | Martin v. Löwis | 2001-11-24 | 1 | -1/+1 |
| | |||||
* | Rename get_referents to get_referrers. Fixes #483815. | Martin v. Löwis | 2001-11-24 | 1 | -12/+12 |
| | |||||
* | Test for negative buffer sizes. Fixes #482871. | Martin v. Löwis | 2001-11-19 | 1 | -0/+5 |
| | |||||
* | assert.h was not always included by Python.h; make sure we import it for | Fred Drake | 2001-11-18 | 1 | -0/+3 |
| | | | | older versions. (Thanks to Martijn Faassen.) | ||||
* | A change to sync with pickle.py: | Barry Warsaw | 2001-11-15 | 1 | -8/+0 |
| | | | | | | | | | | find_class(): We no longer mask all exceptions[1] by transforming them into SystemError. The latter is definitely not the right thing to do, so we let any exceptions that occur in the PyObject_GetAttr() call to simply propagate up if they occur. [1] Note that pickle only masked ImportError, KeyError, and AttributeError, but cPickle masked all exceptions. | ||||
* | CVS patch #477161: New "access" keyword for mmap, from Jay T Miller. | Tim Peters | 2001-11-13 | 1 | -69/+166 |
| | | | | | | | | | | This gives mmap() on Windows the ability to create read-only, write- through and copy-on-write mmaps. A new keyword argument is introduced because the mmap() signatures diverged between Windows and Unix, so while they (now) both support this functionality, there wasn't a way to spell it in a common way without introducing a new spelling gimmick. The old spellings are still accepted, so there isn't a backward- compatibility issue here. | ||||
* | new_code(): The last patch to this left behind an unreferenced local; | Tim Peters | 2001-11-13 | 1 | -1/+0 |
| | | | | deleted its declaration. | ||||
* | load_string(): Force use of unsigned compare in a context that was | Tim Peters | 2001-11-12 | 1 | -6/+8 |
| | | | | clearly (but incorrectly) assuming it. | ||||
* | Limit string size on one-character-strings. Fixes #480384. | Martin v. Löwis | 2001-11-11 | 1 | -2/+2 |
| | |||||
* | Patch in bug report #477700: Fix memory leaks in gdbm & curses. | Martin v. Löwis | 2001-11-11 | 2 | -3/+5 |
| | |||||
* | Patch #473265: UpdatePairedHandlers nonsensical. | Martin v. Löwis | 2001-11-10 | 1 | -3/+3 |
| | |||||
* | Merge 1.42 from PyXML: Flag errors resulting from argument conversion problems. | Martin v. Löwis | 2001-11-10 | 1 | -2/+1 |
| | | | | Fixes problem with not detecting UTF-8 errors. | ||||
* | Use PyObject_CheckReadBuffer(). | Jeremy Hylton | 2001-11-09 | 1 | -6/+1 |
| | |||||
* | Fix memory leak. This is part of SF patch #478006. | Fred Drake | 2001-11-09 | 1 | -0/+1 |
| | |||||
* | Fix memory leak. This is (very!) similar to part of SF patch #478006. | Fred Drake | 2001-11-09 | 1 | -0/+1 |
| | |||||
* | Fixes to compile cPickle.c & socketmodule.c on cygwin and possibly | Michael W. Hudson | 2001-11-09 | 2 | -5/+10 |
| | | | | | other platforms that have funny ideas about whether addresses of functions in dlls are compile-time constants. | ||||
* | Fix memory leaks detecting in bug report #478003. | Martin v. Löwis | 2001-11-07 | 2 | -5/+11 |
| | |||||
* | Remove obsolete e-mail address | Andrew M. Kuchling | 2001-11-05 | 1 | -1/+1 |
| | |||||
* | SF patch 473749 compile under OS/2 VA C++, from Michael Muller. | Tim Peters | 2001-11-05 | 1 | -1/+4 |
| | | | | Changes enabling Python to compile under OS/2 Visual Age C++. | ||||
* | Correct argument parsing for alp_getstatus, which is METH_VARARGS. | Martin v. Löwis | 2001-11-03 | 1 | -1/+1 |
| | |||||
* | Patch #474169: Move fdopen calls out of critical section. | Martin v. Löwis | 2001-11-02 | 1 | -4/+8 |
| | |||||
* | Correct getnameinfo refcounting and tuple parsing. Fixes #476648. | Martin v. Löwis | 2001-11-02 | 1 | -6/+4 |
| | |||||
* | Simplify initmd5() to use PyModule_AddIntConstant(). | Fred Drake | 2001-11-02 | 1 | -3/+2 |
| | |||||
* | Clean up a Tab inconsistency. | Fred Drake | 2001-11-02 | 1 | -4/+2 |
| | | | | Simplfy the insint() macro to use PyModule_AddIntConstant(). | ||||
* | [Patch #476612] Add attributes from PEP247 to the md5 and sha modules | Andrew M. Kuchling | 2001-11-02 | 2 | -4/+11 |
| | |||||
* | has_finalizer(): simplified "if (complicated_bool) 1 else 0" to | Tim Peters | 2001-11-01 | 1 | -8/+3 |
| | | | | "complicated_bool". | ||||
* | Add has_finalizer predictate function. Use it when deciding which | Neil Schemenauer | 2001-11-01 | 1 | -14/+26 |
| | | | | | | | | | | | objects to save in gc.garbage. This should be the last change needed to fix SF bug 477059: "__del__ on new classes vs. GC". Note that this change slightly changes the behavior of the collector. Before, if a cycle was found that contained instances with __del__ methods then all instance objects in that cycle were saved in gc.garbage. Now, only objects with __del__ methods are saved in gc.garbage. | ||||
* | SF bug #477059 (my own): __del__ on new classes vs. GC. | Guido van Rossum | 2001-11-01 | 1 | -1/+3 |
| | | | | | | When moving objects with a __del__ attribute to a special list, look for __del__ on new-style classes with the HEAPTYPE flag set as well. (HEAPTYPE means the class was created by a class statement.) | ||||
* | Make the gc.collect() function respect the collection lock. This fixes | Neil Schemenauer | 2001-10-31 | 1 | -4/+11 |
| | | | | SF bug 476129: "gc.collect sometimes hangs". | ||||
* | Change the limit on the input size for b2a_base64 to what will fit in | Guido van Rossum | 2001-10-30 | 1 | -1/+3 |
| | | | | | | memory, rather than the standard's 57. This fixes SF bug #473009. | ||||
* | PySocketSock_connect_ex(): On Windows, return the correct Windows exit | Tim Peters | 2001-10-30 | 1 | -1/+6 |
| | | | | | code. The patch is from Jeremy, and allows test_asynchat to run again. Bugfix candidate. | ||||
* | Make the low-level log-reader object export a dictionary mapping keys | Fred Drake | 2001-10-29 | 1 | -45/+163 |
| | | | | | | | | | | | | | | to lists of values, giving the contents of all the ADD_INFO records seen so far. This is initialized agressively when the log file is opened, so that whoever is looking at the log reader can always see the initial data loaded into the data stream. ADD_INFO events later in the log file continue to be reported to the application layer as before. Add a new method, addinfo(), to the profiler. This can be used to insert additional ADD_INFO records into the profiler log. Fix the tp_flags and tp_name slots on the type objects. | ||||
* | Oops. In the tp_name field, the name should be "_socket.socket", not | Guido van Rossum | 2001-10-28 | 1 | -2/+2 |
| | | | | | | "socket.socket" -- on Windows, "socket.socket" is the wrapper class. Also added the module name to the SSL type (which is not a new-style class -- I don't want to mess with it yet). |