summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove INET6 define. Use ENABLE_IPV6 instead.Martin v. Löwis2001-12-025-248/+236
|
* mywrite(): The test for trouble in PyOS_vsnprintf was wrong on bothTim Peters2001-12-021-3/+10
| | | | | ends. Also, when there is trouble, ensure the buffer has a traiing 0 byte.
* When the number of bytes written to the malloc'ed buffer is largerGuido van Rossum2001-12-011-5/+5
| | | | | | than the argument string size, copy as many bytes as will fit (including a terminating '\0'), rather than not copying anything. This to make it satisfy the C99 spec.
* Whitespace normalization.Tim Peters2001-12-011-1/+0
|
* SF bug #487743: test_builtin fails on 64 bit platform.Tim Peters2001-12-011-1/+1
| | | | | | | | Bugfix candidate. int_repr(): we've never had a buffer big enough to hold the largest possible result on a 64-bit box. Now that we're using snprintf instead of sprintf, this can lead to nonsense results instead of random stack corruption.
* Synchronize with pulldom from PyXML (revision 1.18).Fred Drake2001-11-301-2/+24
|
* Synchronize with minidom from PyXML (revision 1.35).Fred Drake2001-11-301-5/+5
|
* Drop xmllib in favor of SAX.Fred Drake2001-11-301-21/+30
|
* Add a couple of entries to the whitespace-cleanups table.Fred Drake2001-11-301-0/+2
|
* Add description of tkCommonDialog.Fred Drake2001-11-301-0/+1
|
* Added two new conversion specifications.Fred Drake2001-11-301-0/+7
|
* Change the chapter title to reflect the Tk affinity.Fred Drake2001-11-301-5/+5
| | | | | Use the new seealso* environment in the section pointing out other GUI toolkits.
* Add a new environment in the Python docs markup: seealso*. This is similarFred Drake2001-11-303-11/+41
| | | | | | | | to seealso, but does not add the "See also:" header or put the content in a box in the HTML version. Updated the description of \seeurl to better indicate when it should be used; the old description was written before we had \seetitle.
* Minor adjustments to markup for the getDOMImplementation() description.Fred Drake2001-11-301-10/+13
|
* Added the convenience constants that are present in PyXML to make theseFred Drake2001-11-302-0/+41
| | | | more similar.
* Merged changes made on r22b2-branch between r22b2 and r22b2-mac (theJack Jansen2001-11-3053-300/+1815
| | | | changes from start of branch upto r22b2 were already merged, of course).
* unicodedata_decomposition(): sprintf -> PyOS_snprintf.Tim Peters2001-11-301-2/+4
|
* Updated documentation for the new httplib interface, by Kalle Svensson.Fred Drake2001-11-302-79/+140
| | | | This closes SF bug #458447.
* Update the signature of PyFile_WriteString().Fred Drake2001-11-292-2/+2
|
* More information about Tix support, contributed by Mike Clarkson.Fred Drake2001-11-291-0/+101
|
* Various cleanups & markup fixes, mostly relating to the stat and statvfsFred Drake2001-11-291-38/+77
| | | | result object changes.
* Neil Schemenauer suggested a small improvement to one of the example REs.Fred Drake2001-11-291-1/+1
|
* writeline() --> writelines()Fred Drake2001-11-291-1/+1
| | | | This closes SF bug #487147.
* Use identity instead of equality when looking for referrers. Fixes #485781.Martin v. Löwis2001-11-291-3/+4
|
* New section of regular expression examples contributed by Skip Montanaro,Fred Drake2001-11-291-0/+56
| | | | | with some extensions and changes from me. This closes SF patch #472825.
* Clarify the description of the creation of an owned reference from an APIFred Drake2001-11-291-5/+5
| | | | | function. This closes SF bug #486657.
* Add an index entry for the discussion of PyEval_CallObject().Fred Drake2001-11-291-8/+9
| | | | This is related to SF bug #485165.
* A few small changes:Fred Drake2001-11-291-8/+17
| | | | | | | | | | | | | | - Change PREFIX to PREFIXES, which contains a sequence of prefix strings. This is useful since we want to look for both Py and PY. - Wrap a long line. - Collect struct tags as well as typedef names. Since we generally only use one of the other, that improves coverage. - Make the script executable on Unix. This could use a better approach to determine if a symbol is documented, and could easily avoid keeping the massive string in memory. That would take time to actually write more code, though, so we'll bail on that for now.
* SF bug 486278 SystemError: Python/getargs.c:1086: bad.Tim Peters2001-11-292-8/+18
| | | | | | | | | | vgetargskeywords(): Now that this routine is checking for bad input (rather than dump core in some cases), some bad calls are raising errors that previously "worked". This patch makes the error strings more revealing, and changes the exceptions from SystemError to RuntimeError (under the theory that SystemError is more of a "can't happen!" assert- like thing, and so inappropriate for bad arguments to a public C API function).
* canonic(): don't use abspath() for filenames looking like <...>; thisGuido van Rossum2001-11-291-0/+2
| | | | | fixes the problem reported in SF bug #477023 (Jonathan Mark): "pdb: unexpected path confuses Emacs".
* SF bug 486480: zipfile __del__ is brokenTim Peters2001-11-281-3/+3
| | | | | | ZipFile.__del__(): call ZipFile.close(), like its docstring says it does. ZipFile.close(): allow calling more than once (as all file-like objects in Python should support).
* PyFloat_AsStringEx(): This function takes an output char* but doesn'tTim Peters2001-11-281-8/+24
| | | | | | | pass the buffer length. Stop using it. It should be deprecated, but too late in the release cycle to do that now. New static format_float() does the same thing but requires passing the buffer length too. Use it instead.
* Two screwups fixed for sizeof(char *) instead of sizeof(char []).Jeremy Hylton2001-11-281-77/+82
| | | | | Also change all the helper functions to pass along the size of the msgbuf and use PyOS_snprintf() when writing into the buffer.
* PyFile_WriteString(): change prototype so that the string arg isTim Peters2001-11-282-2/+2
| | | | | | const char* instead of char*. The change is conceptually correct, and indirectly fixes a compiler wng introduced when somebody else innocently passed a const char* to this function.
* More sprintf -> PyOS_snprintf.Tim Peters2001-11-285-9/+14
|
* Use PyOS_snprintf() instead of sprintf().Jeremy Hylton2001-11-281-4/+4
|
* Use PyOS_snprintf() at some cost even though it was correct before.Jeremy Hylton2001-11-281-6/+7
| | | | | | seterror() uses a char array and a pointer to the current position in that array. Use snprintf() and compute the amount of space left in the buffer based on the current pointer position.
* Use PyOS_vsnprintf() and check its return value.Jeremy Hylton2001-11-281-2/+9
| | | | | | If it returns -1 (which indicates overflow on old Linux platforms and perhaps on Windows) or size greater than buffer, write a message indicating that the previous message was truncated.
* ste_repr(): Conversion of sprintf() to PyOS_snprintf() for bufferBarry Warsaw2001-11-281-4/+5
| | | | overrun avoidance.
* aix_loaderror(): Conversion of sprintf() to PyOS_snprintf() for bufferBarry Warsaw2001-11-281-1/+1
| | | | overrun avoidance.
* Reverting last change so we don't have to think about the assert macroBarry Warsaw2001-11-281-5/+4
| | | | redefinition problem.
* Use strncpy() instead of sprintf() in calculate_path().Jeremy Hylton2001-11-281-15/+19
| | | | Also reformat calculate_path() using the standard format.
* code_repr(), com_addop_varname(), com_list_comprehension(),Barry Warsaw2001-11-281-32/+42
| | | | | | | | com_arglist(), symtable_check_unoptimized(), symtable_params(), symtable_global(), symtable_list_comprehension(): Conversion of sprintf() to PyOS_snprintf() for buffer overrun avoidance.
* PyGrammar_LabelRepr(): Conversion of sprintf() to PyOS_snprintf() forBarry Warsaw2001-11-281-4/+5
| | | | buffer overrun avoidance.
* PyWin_FindRegisteredModule(): Conversion of sprintf() toBarry Warsaw2001-11-281-3/+3
| | | | PyOS_snprintf() for buffer overrun avoidance.
* weakref_repr(), proxy_repr(): Conversion of sprintf() toBarry Warsaw2001-11-281-8/+11
| | | | PyOS_snprintf() for buffer overrun avoidance.
* formatfloat(), formatint(): Conversion of sprintf() to PyOS_snprintf()Barry Warsaw2001-11-281-4/+6
| | | | for buffer overrun avoidance.
* structseq_new(): Conversion of sprintf() to PyOS_snprintf() for bufferBarry Warsaw2001-11-281-1/+2
| | | | overrun avoidance.
* PyInt_FromString(), int_repr(), int_oct(), int_hex(): Conversion ofBarry Warsaw2001-11-281-5/+7
| | | | sprintf() to PyOS_snprintf() for buffer overrun avoidance.
* PyFloat_FromString(): Conversion of sprintf() to PyOS_snprintf() forBarry Warsaw2001-11-281-2/+4
| | | | buffer overrun avoidance.