Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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). | ||||
* | Made SocketType and socket the same thing: a subclassable type whose | Guido van Rossum | 2001-10-27 | 1 | -119/+167 |
| | | | | | | | | | | | | | | | | | | | | | constructor acts just like socket() before. All three arguments have a sensible default now; socket() is equivalent to socket(AF_INET, SOCK_STREAM). One minor issue: the socket() function and the SocketType had different doc strings; socket.__doc__ gave the signature, SocketType.__doc__ gave the methods. I've merged these for now, but maybe the list of methods is no longer necessary since it can easily be recovered through socket.__dict__.keys(). The problem with keeping it is that the total doc string is a bit long (34 lines -- it scrolls of a standard tty screen). Another general issue with the socket module is that it's a big mess. There's pages and pages of random platform #ifdefs, and the naming conventions are totally wrong: it uses Py prefixes and CapWords for static functions. That's a cleanup for another day... (Also I think the big starting comment that summarizes the API can go -- it's a repeat of the docstring.) | ||||
* | Add sendall() method, which loops until all data is written or an | Guido van Rossum | 2001-10-26 | 1 | -2/+44 |
| | | | | | | | error occurs, and doesn't return a count. (This is my second patch from SF patch #474307, with small change to the docstring for send().) 2.1.2 "bugfix" candidate. | ||||
* | Fix SF bug #474538: Memory (reference) leak in poller.register (Dave Brueck) | Guido van Rossum | 2001-10-25 | 1 | -3/+13 |
| | | | | | | | | Replace some tortuous code that was trying to be clever but forgot to DECREF the key and value, by more longwinded but obviously correct code. (Inspired by but not copying the fix from SF patch #475033.) | ||||
* | After discussion with itojun, it was clarified that Tru64 is in error, | Martin v. Löwis | 2001-10-25 | 1 | -1/+3 |
| | | | | and that the work-around should be restricted to that system. | ||||
* | (experimental) "finditer" method/function. this works pretty much | Fredrik Lundh | 2001-10-24 | 1 | -0/+28 |
| | | | | | like findall, but returns an iterator (which returns match objects) instead of a list of strings/tuples. | ||||
* | SF patch #474590 -- RISC OS support | Guido van Rossum | 2001-10-24 | 4 | -38/+23 |
| |