summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* complex_to_buf(), complex_subtype_from_c_complex(): Conversion ofBarry Warsaw2001-11-281-8/+10
| | | | | | | sprintf() to PyOS_snprintf() for buffer overrun avoidance. complex_print(), complex_repr(), complex_str(): Call complex_to_buf() passing in sizeof(buf).
* Use PyOS_snprintf instead of sprintf.Jeremy Hylton2001-11-2813-39/+45
|
* Use PyOS_snprintf instead of sprintf.Jeremy Hylton2001-11-281-15/+18
| | | | | Also replace a switch statement with one case and a default to an if/else.
* Repair a botched PyOS_snprintf conversion.Tim Peters2001-11-281-1/+1
|
* Use PyOS_snprintf when possible.Jeremy Hylton2001-11-281-34/+41
|
* sprintf -> PyOS_snprintf in some "obviously safe" cases.Tim Peters2001-11-2815-42/+61
| | | | | Also changed <>-style #includes to ""-style in some places where the former didn't make sense.
* Use PyOS_snprintf instead of sprintf.Jeremy Hylton2001-11-281-11/+11
| | | | | Just being sure. The old code looks like it was safe, but there's no harm in double-checking.
* Checking in Zooko's version per SF patch #476866, plus my changes toGuido van Rossum2001-11-281-395/+429
| | | | the usage docs: (a) align properly, (b) explain properly.
* Removed preprocessor gimmick trying to force use of snprintf emulationTim Peters2001-11-281-8/+6
| | | | before 2.2b1.
* Fix SF bug [ #476852 ] Some bad macros in abstract.hJeremy Hylton2001-11-281-2/+2
| | | | Change macros as requested by Guido
* Adding test for Unicode repr()-output.Marc-André Lemburg2001-11-281-0/+15
|
* Fix for bug #485951: repr diff between string and unicode.Marc-André Lemburg2001-11-281-1/+1
|