Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reverting last change so we don't have to think about the assert macro | Barry Warsaw | 2001-11-28 | 1 | -5/+4 |
| | | | | redefinition problem. | ||||
* | Use strncpy() instead of sprintf() in calculate_path(). | Jeremy Hylton | 2001-11-28 | 1 | -15/+19 |
| | | | | Also reformat calculate_path() using the standard format. | ||||
* | code_repr(), com_addop_varname(), com_list_comprehension(), | Barry Warsaw | 2001-11-28 | 1 | -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() for | Barry Warsaw | 2001-11-28 | 1 | -4/+5 |
| | | | | buffer overrun avoidance. | ||||
* | PyWin_FindRegisteredModule(): Conversion of sprintf() to | Barry Warsaw | 2001-11-28 | 1 | -3/+3 |
| | | | | PyOS_snprintf() for buffer overrun avoidance. | ||||
* | weakref_repr(), proxy_repr(): Conversion of sprintf() to | Barry Warsaw | 2001-11-28 | 1 | -8/+11 |
| | | | | PyOS_snprintf() for buffer overrun avoidance. | ||||
* | formatfloat(), formatint(): Conversion of sprintf() to PyOS_snprintf() | Barry Warsaw | 2001-11-28 | 1 | -4/+6 |
| | | | | for buffer overrun avoidance. | ||||
* | structseq_new(): Conversion of sprintf() to PyOS_snprintf() for buffer | Barry Warsaw | 2001-11-28 | 1 | -1/+2 |
| | | | | overrun avoidance. | ||||
* | PyInt_FromString(), int_repr(), int_oct(), int_hex(): Conversion of | Barry Warsaw | 2001-11-28 | 1 | -5/+7 |
| | | | | sprintf() to PyOS_snprintf() for buffer overrun avoidance. | ||||
* | PyFloat_FromString(): Conversion of sprintf() to PyOS_snprintf() for | Barry Warsaw | 2001-11-28 | 1 | -2/+4 |
| | | | | buffer overrun avoidance. | ||||
* | complex_to_buf(), complex_subtype_from_c_complex(): Conversion of | Barry Warsaw | 2001-11-28 | 1 | -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 Hylton | 2001-11-28 | 13 | -39/+45 |
| | |||||
* | Use PyOS_snprintf instead of sprintf. | Jeremy Hylton | 2001-11-28 | 1 | -15/+18 |
| | | | | | Also replace a switch statement with one case and a default to an if/else. | ||||
* | Repair a botched PyOS_snprintf conversion. | Tim Peters | 2001-11-28 | 1 | -1/+1 |
| | |||||
* | Use PyOS_snprintf when possible. | Jeremy Hylton | 2001-11-28 | 1 | -34/+41 |
| | |||||
* | sprintf -> PyOS_snprintf in some "obviously safe" cases. | Tim Peters | 2001-11-28 | 15 | -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 Hylton | 2001-11-28 | 1 | -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 to | Guido van Rossum | 2001-11-28 | 1 | -395/+429 |
| | | | | the usage docs: (a) align properly, (b) explain properly. | ||||
* | Removed preprocessor gimmick trying to force use of snprintf emulation | Tim Peters | 2001-11-28 | 1 | -8/+6 |
| | | | | before 2.2b1. | ||||
* | Fix SF bug [ #476852 ] Some bad macros in abstract.h | Jeremy Hylton | 2001-11-28 | 1 | -2/+2 |
| | | | | Change macros as requested by Guido | ||||
* | Adding test for Unicode repr()-output. | Marc-André Lemburg | 2001-11-28 | 1 | -0/+15 |
| | |||||
* | Fix for bug #485951: repr diff between string and unicode. | Marc-André Lemburg | 2001-11-28 | 1 | -1/+1 |
| | |||||
* | Fixes for possible buffer overflows in sprintf() usages. | Marc-André Lemburg | 2001-11-28 | 8 | -22/+17 |
| | |||||
* | Re-arrange the modules in the "Internet Data Handling" chapter to try to | Fred Drake | 2001-11-28 | 1 | -9/+15 |
| | | | | achieve a more sensible organization. | ||||
* | Clarify that on some systems, lockf() using LOCK_EX requires that the file | Fred Drake | 2001-11-28 | 1 | -4/+9 |
| | | | | | | | is opened for writing; this closes SF bug #485342. Added notes that file objects are also accepted in the place of file descriptors. | ||||
* | Add synopsis for the SimpleXMLRPCServer module; used in the chapter-level | Fred Drake | 2001-11-28 | 1 | -0/+1 |
| | | | | list of modules. | ||||
* | Clean up some markup cruft. A number of the macros that take no | Fred Drake | 2001-11-28 | 40 | -187/+187 |
| | | | | | | | | parameters (like \UNIX) are commonly entered using an empty group to separate the markup from a following inter-word space; this is not needed when the next character is punctuation, or the markup is the last thing in the enclosing group. These cases were marked inconsistently; the empty group is now *only* used when needed. | ||||
* | __format(): Applied SF patch #482003 by Skip to fix multiline dict | Barry Warsaw | 2001-11-28 | 2 | -1/+20 |
| | | | | | | | | output. Patch includes additional test case test_basic_line_wrap(). This patch is a candidate for Python 2.1.2. | ||||
* | Fix docstring typo | Andrew M. Kuchling | 2001-11-28 | 1 | -1/+1 |
| | |||||
* | Fix [ #484645 ] little bug in pycodegen.py | Jeremy Hylton | 2001-11-27 | 1 | -1/+1 |
| | |||||
* | SF bug #483469: crash on unbounded recursion in __del__. | Tim Peters | 2001-11-27 | 1 | -0/+8 |
| | | | | | | | | | | | | | PyEval_EvalCodeEx(): increment tstate->recursion_depth around the decref of the frame, because the C stack for this call is still in use and the decref can lead to __del__ methods getting called. While this gives tstate->recursion_depth a value proportional to the depth of the C stack (instead of a small constant no matter how deeply __del__s recurse), it's not enough to stop the reported crash when using the default recursion limit on Windows. Bugfix candidate. | ||||
* | SF bug 485175: buffer overflow in traceback.c. | Tim Peters | 2001-11-27 | 2 | -3/+4 |
| | | | | | | | Bugfix candidate. tb_displayline(): the sprintf format was choking off the file name, but used plain %s for the function name (which can be arbitrarily long). Limit both to 500 chars max. | ||||
* | test_formatdate(): Integrating Jack's 22b2 branch fix for Mac epoch: | Barry Warsaw | 2001-11-27 | 1 | -3/+4 |
| | | | | | | | | More changes to the formatdate epoch test: the Mac epoch is in localtime, so east of GMT it falls in 1903:-( Changed the test to obtain the epoch in both local time and GMT, and do the right thing in the comparisons. As a sanity measure also check that day/month is Jan 1. | ||||
* | Typo, spotted by Fredrik Lundh. | Fred Drake | 2001-11-26 | 1 | -1/+1 |
| | |||||
* | Typo, spotted by Detlef Lannert. | Fred Drake | 2001-11-26 | 1 | -1/+1 |
| | |||||
* | Tk-related modules should no longer be listed here. | Fred Drake | 2001-11-26 | 1 | -13/+0 |
| | |||||
* | Fix typo, extra markup constructs. | Fred Drake | 2001-11-26 | 1 | -6/+6 |
| | | | | This closes SF bug #485252. | ||||
* | Add documentation for the PyCell* APIs. | Fred Drake | 2001-11-26 | 2 | -0/+67 |
| | |||||
* | Correctly create new-style classes in the examples | Andrew M. Kuchling | 2001-11-26 | 1 | -7/+13 |
| | | | | Mention change to _PyTuple_Resize | ||||
* | SF patch 483059: Avoid use of eval() in random.py, from Finn Bock. | Tim Peters | 2001-11-25 | 1 | -6/+5 |
| | | | | | | _verify(): Pass in the values of globals insted of eval()ing their names. The use of eval() was obscure and unnecessary, and the patch claimed random.py couldn't be used in Jython applets because of it. | ||||
* | Properly set static options for tixBalloon and tixResizeHandle. | Martin v. Löwis | 2001-11-25 | 4 | -52/+214 |
| | | | | | Expose Tix.ResizeHandle.{detach_widget,hide,show}. Update Tix demos. | ||||
* | Patch #484847: Default to netscape.exe on OS/2. | Martin v. Löwis | 2001-11-25 | 2 | -0/+12 |
| | |||||
* | - Change all remaining assertions into verify() and vereq() calls. | Guido van Rossum | 2001-11-24 | 1 | -14/+42 |
| | | | | | | - Add tests for the recent fixes to copy_reg.py: __getstate__/__setstate__ and mixed inheritance from new+classic classes. | ||||
* | _reduce(): | Guido van Rossum | 2001-11-24 | 1 | -3/+8 |
| | | | | | | | | | | | | - Fix for SF bug #482752: __getstate__ & __setstate__ ignored (by Anon.) In fact, only __getstate__ isn't recognized. This fixes that. - Separately, the test for base.__flags__ & _HEAPTYPE raised an AttributeError exception when a classic class was amongst the bases. Fixed this with a hasattr() bandaid (classic classes never qualify as the "hard" base class anyway, which is what the code is trying to find). | ||||
* | PyObject_GetItem(), PyObject_SetItem(), PyObject_DelItem(): Fix a few | Guido van Rossum | 2001-11-24 | 1 | -5/+10 |
| | | | | | | | confusing error messages. If a new-style class has no sequence or mapping behavior, attempting to use the indexing notation with a non-integer key would complain that the sequence index must be an integer, rather than complaining that the operation is not supported. | ||||
* | More typo fixes. | Barry Warsaw | 2001-11-24 | 1 | -2/+2 |
| | |||||
* | Docstring typo fix. | Greg Ward | 2001-11-24 | 2 | -2/+2 |
| | |||||
* | Add hotshot to LIBSUBDIRS. Fixes #484642. | Martin v. Löwis | 2001-11-24 | 1 | -1/+1 |
| | |||||
* | Correct typo. Fixes #484611. | Martin v. Löwis | 2001-11-24 | 1 | -1/+1 |
| | |||||
* | Support bsddb 3.2. Fixes #483653. | Martin v. Löwis | 2001-11-24 | 1 | -1/+3 |
| |