| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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++).
|
|
|
|
| |
This closes SF bug #489513.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
pertains to the script is now in the if __name__ == "__main__" block.
This is in response to a commenton python-dev from Neal Norwitz.
|
|
|
|
| |
"darwin*" to "darwin" and use that for testing.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
attribute of file objects, the print statement, and other file operations.
This closes SF bug #484857.
Fix minor markup nits.
|
|
|
|
|
| |
that it does not guarantee that all data is sent.
This closes SF patch #474307.
|
| |
|
|
|
|
|
|
|
| |
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>.
|
| |
|
| |
|
|
|
|
|
| |
written to the log file, and turn off the profiler.
This closes SF bug #483925.
|
| |
|
| |
|
|
|
|
| |
This is the Unix portion of the fix for SF bug #489052.
|
|
|
|
| |
reserved words. No longer need to import string.
|
|
|
|
| |
didn't use reswords.py, as the comment clearly states. :-(
|
|
|
|
|
| |
extensions that #include Python.h. See (rejected) patch 487634 for
more detail. I'll open a new bug report for the rest needed here.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
give examples for which str() and repr() yield different results.
This closes SF bug #485446.
|
|
|
|
|
| |
By default, save sys.stdout in self.file when a Hook instance is created
(e.g. when cgitb.enable() is called).
|
|
|
|
| |
$BROWSER should be split on os.pathsep, not on ":".
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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().
|
|
|
|
|
| |
by a question to webmaster).
Re-wrapped a long line.
|
|
|
|
|
| |
result would overflow an int. Check for this. (SF bug #488482, Armin
Rigo.)
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
(Not sure if this is legal according to the Google terms of service. :-)
|
|
|
|
| |
appearance support for Wlist frames and focussing. Plus commented-out appearance support for the same for Wtext, which still needs some work.
|
| |
|
| |
|
|
|
|
| |
own interfered with including Python.h. Remove Python's assert.h.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
from Skip Montanaro. There is one weirdness in the final index for HTML, but
that is low priority.
|
|
|
|
| |
Andrew Koenig.
|
| |
|
| |
|
|
|
|
| |
Reflow paragraph
|
|
|
|
|
| |
sprintf -> PyOS_snprintf. This is the last of this
stuff I intend to do.
|
|
|
|
|
| |
and assign_slice() weren't properly DECREF'ing the temporary slice
object they created. (Shame on me. :-)
|
|
|
|
|
| |
Armin Rigo (SF bug #488477). Added a testcase to test_unpack_iter()
in test_iter.py.
|
| |
|