summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix memory leak in the parser module: There were two leaks inFred Drake2001-12-051-5/+22
| | | | | | parser_tuple2st() and a failure to propogate an error in build_node_children() (masking yet another leak, of course!). This closes SF bug #485133 (confirmed by Insure++).
* asyncore.loop() description contributed by Skip Montanaro.Fred Drake2001-12-051-0/+14
| | | | This closes SF bug #489513.
* At the PythonLabs meeting someone mentioned it would make Jim reallyGuido van Rossum2001-12-053-8/+7
| | | | | | | | | happy if one could delete the __dict__ attribute of an instance. I love to make Jim happy, so here goes... - New-style objects now support deleting their __dict__. This is for all intents and purposes equivalent to assigning a brand new empty dictionary, but saves space if the object is not used further.
* Separate the script portion from the library portion; everything thatFred Drake2001-12-051-17/+17
| | | | | pertains to the script is now in the if __name__ == "__main__" block. This is in response to a commenton python-dev from Neal Norwitz.
* As of OS X 10.1.1 the version numbering scheme has changed. Convert all ↵Jack Jansen2001-12-051-4/+6
| | | | "darwin*" to "darwin" and use that for testing.
* changes to use new tabpages classesSteven M. Gava2001-12-051-67/+14
|
* remove cruft from other projectSteven M. Gava2001-12-051-28/+1
|
* cleaner tabbed-page mini implementation through classesSteven M. Gava2001-12-051-0/+137
|
* SF bug 482574: audioop.ratecv crashes.Tim Peters2001-12-051-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.
* Add a note to the description of the interaction between the softspaceFred Drake2001-12-051-9/+12
| | | | | | | attribute of file objects, the print statement, and other file operations. This closes SF bug #484857. Fix minor markup nits.
* Added documentation of the sendall() method, and a note to the send() methodFred Drake2001-12-051-0/+13
| | | | | that it does not guarantee that all data is sent. This closes SF patch #474307.
* Change new tests to use integer division (// instead of /).Tim Peters2001-12-051-3/+3
|
* SF bug #488480: integer multiply to return -max_int-1.Tim Peters2001-12-042-127/+89
| | | | | | | int_mul(): new and vastly simpler overflow checking. Whether it's faster or slower will likely vary across platforms, favoring boxes with fast floating point. OTOH, we no longer have to worry about people shipping broken LONG_BIT definitions <0.9 wink>.
* Added entry for the "cgitb" module docs.Fred Drake2001-12-042-0/+2
|
* Documentation for the "cgitb" module.Fred Drake2001-12-041-0/+40
|
* Make sure to propogate errors that arise when profiling data cannot beFred Drake2001-12-041-71/+112
| | | | | written to the log file, and turn off the profiler. This closes SF bug #483925.
* Another no-longer-nameless contributor...Guido van Rossum2001-12-041-0/+1
|
* Add note about fixed hash() of mutable objects.Guido van Rossum2001-12-041-0/+5
|
* Define NDEBUG when compiling a release build on Unix.Fred Drake2001-12-042-368/+380
| | | | This is the Unix portion of the fix for SF bug #489052.
* Import the keyword module instead of relying on our own list ofGuido van Rossum2001-12-041-11/+2
| | | | reserved words. No longer need to import string.
* Put the keywords back in alphabetical order. Apparently somebodyGuido van Rossum2001-12-041-2/+2
| | | | didn't use reswords.py, as the comment clearly states. :-(
* Stop defining NDEBUG in Python.h, because it can interfere withTim Peters2001-12-041-5/+4
| | | | | extensions that #include Python.h. See (rejected) patch 487634 for more detail. I'll open a new bug report for the rest needed here.
* Include a warning that scripts should not have the same name as standardFred Drake2001-12-041-13/+37
| | | | | | | modules, or the module cannot be properly imported. (Based on a suggestion sent to python-docs.) Update the displayed dir() of the sys and __builtin__ module with Python 2.2.
* Talk about str() in the discussion of string representations of values, andFred Drake2001-12-041-3/+26
| | | | | give examples for which str() and repr() yield different results. This closes SF bug #485446.
* Add "file" argument to Hook constructor.Ka-Ping Yee2001-12-041-10/+15
| | | | | By default, save sys.stdout in self.file when a Hook instance is created (e.g. when cgitb.enable() is called).
* Address SF patch #485789 (Stefan Schwarzer).Guido van Rossum2001-12-041-1/+1
| | | | $BROWSER should be split on os.pathsep, not on ":".
* Fix SF bug #486144: Uninitialized __slot__ vrbl is None.Guido van Rossum2001-12-041-2/+4
| | | | | | | There's now a new structmember code, T_OBJECT_EX, which is used for all __slot__ variables (except __weakref__, which has special behavior anyway). This new code raises AttributeError when the variable is NULL rather than converting NULL to None.
* Fix SF bug #479967: Appearantly I broke something that made the indexFred Drake2001-12-041-2/+10
| | | | | | insertion work. This fix makes things at least somewhat more explicit, and adds a little sanity checking (and verbosity!) to add_bbl_and_idx_dummy_commands().
* Add a note that the rgbimg module is only built on 32-bit machines (promptedFred Drake2001-12-041-2/+5
| | | | | by a question to webmaster). Re-wrapped a long line.
* long_mul(): The PyNumber_Multiply() call can return a long if theGuido van Rossum2001-12-041-0/+6
| | | | | result would overflow an int. Check for this. (SF bug #488482, Armin Rigo.)
* Remove meaningless comment.Fred Drake2001-12-041-3/+0
|
* Fix SF bug #486144: Uninitialized __slot__ vrbl is None.Guido van Rossum2001-12-043-6/+19
| | | | | | | There's now a new structmember code, T_OBJECT_EX, which is used for all __slot__ variables (except __weakref__, which has special behavior anyway). This new code raises AttributeError when the variable is NULL rather than converting NULL to None.
* PyObject_Generic{Get,Set}Attr(): ensure that the attribute name is aGuido van Rossum2001-12-041-20/+72
| | | | | | | string object (or a Unicode that's trivially converted to ASCII). PyObject_GetAttr(): add an 'else' to the Unicode test like PyObject_SetAttr() already has.
* A tiny but useful script that fires off a search on Google.Guido van Rossum2001-12-041-0/+22
| | | | (Not sure if this is legal according to the Google terms of service. :-)
* Patch by Jason Harper to allow IDE to work again under MacOS 8.1. Plus ↵Jack Jansen2001-12-043-35/+145
| | | | appearance support for Wlist frames and focussing. Plus commented-out appearance support for the same for Wtext, which still needs some work.
* The parser now also needs to link with mysnprintf.o.Guido van Rossum2001-12-041-0/+1
|
* PyGrammar_LabelRepr(): sprintf -> PyOS_snprintf.Tim Peters2001-12-041-2/+2
|
* The parser doesn't need its own implementation of assert, and having itsTim Peters2001-12-048-38/+18
| | | | own interfered with including Python.h. Remove Python's assert.h.
* Update docs to reflect new compile() and compileFile()Jeremy Hylton2001-12-041-3/+18
|
* SF bug #488687 reported by Neal NorwitzJeremy Hylton2001-12-042-1/+2
| | | | | | | | | The error for assignment to __debug__ used ste->ste_opt_lineno instead of n->n_lineno. The latter was at best incorrect; often the slot was uninitialized. Two fixes here: Use the correct lineno for the error. Initialize ste_opt_lineno in PySymtable_New(); while there are no current cases where it is referenced unless it has already been assigned to, there is no harm in initializing it.
* More sprintf -> PyOS_snprintf.Tim Peters2001-12-042-3/+4
|
* Slightly improved indexing for the string-% operator, thanks to commentsFred Drake2001-12-031-1/+2
| | | | | from Skip Montanaro. There is one weirdness in the final index for HTML, but that is low priority.
* Update lambda description to reflect nested scopes. This was noted byFred Drake2001-12-031-4/+2
| | | | Andrew Koenig.
* Added documentation on the ScrolledText module.Fred Drake2001-12-031-0/+37
|
* Oops! Forgot the value parameter.Andrew M. Kuchling2001-12-031-1/+1
|
* Add __delete__ method of propertiesAndrew M. Kuchling2001-12-031-1/+4
| | | | Reflow paragraph
* posix_execve(), posix_spawnve(), posix_putenv():Tim Peters2001-12-031-6/+14
| | | | | sprintf -> PyOS_snprintf. This is the last of this stuff I intend to do.
* Fix the final two issues in Armin Rigo's SF bug #488477: apply_slice()Guido van Rossum2001-12-031-4/+10
| | | | | and assign_slice() weren't properly DECREF'ing the temporary slice object they created. (Shame on me. :-)
* unpack_iterable(): Add a missing DECREF in an error case. Reported byGuido van Rossum2001-12-032-0/+24
| | | | | Armin Rigo (SF bug #488477). Added a testcase to test_unpack_iter() in test_iter.py.
* removed some dead code.Just van Rossum2001-12-031-15/+0
|