| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
symtable_enter_scope(): Removed some unnecessary backslashes at the
end of lines. C != Python. :)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Two different but related problems:
1. PySymtable_Free() must explicitly DECREF(st->st_cur), which should
always point to the global symtable entry. This entry is setup by the
first enter_scope() call, but there is never a corresponding
exit_scope() call.
Since each entry has a reference to scopes defined within it, the
missing DECREF caused all symtable entries to be leaked.
2. The leak here masked a separate problem with
PySymtableEntry_New(). When the requested entry was found in
st->st_symbols, the entry was returned without doing an INCREF.
And problem c) The ste_children slot was getting two copies of each
child entry, because it was populating the slot on the first and
second passes. Now only populate on the first pass.
|
|
|
|
|
|
|
|
|
| |
the internal API function to release the interned strings as the very
last thing before returning status. This aids in memory use debugging
because it eliminates a huge source of noise from the reports. This
is never called during normal (non-debugging) use because releasing
the interned strings slows Python's shutdown and isn't necessary
anyway because the system will always reclaim the memory.
|
|
|
|
|
|
| |
release the interned string dictionary. This is useful for memory
use debugging because it eliminates a huge source of noise from the
reports. Only defined when INTERN_STRINGS is defined.
|
|
|
|
|
| |
simpler than adding a bazillion switches, but means that the makesetup
method probably can't ever go away completely. Oh well...
|
|
|
|
| |
less wrong)
|
|
|
|
| |
#131064, #129584, #127722. See the discussion in bug #131064
|
| |
|
|
|
|
|
|
|
| |
Move sample sessions to the left margin of the file for consistency;
formatting can adjust the margin if needed.
This closes SF bug #133213.
|
|
|
|
|
|
| |
to the module sections are right.
This was also broken when converting to a flat Makefile.
|
|
|
|
| |
broken when converting to a flat Makefile. ;-(
|
| |
|
|
|
|
| |
crashing.
|
|
|
|
|
|
| |
and the test for errors, so that an error in the default compare
doesn't go undetected. This fixes SF Bug #132933 (submitted by
effbot) -- list.sort doesn't detect comparision errors.
|
|
|
|
|
|
| |
Reported by Daniel May <mayds@ecn.purdue.edu>.
De-tabified everywhere.
|
|
|
|
| |
included with Python.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
(Fred, I'll leave the doc changes to you, because I don't know if you
want to delete libsoundex.tex or leave it in.
Someone else will have to tweak PC/os2vacpp/{config.c,makefile} and
PCbuild/pythoncore.dsp, both of which refer to soundex.c)
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
and disabled from the configure script.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
on the Mac is negativevalues > 0x80000000). Fixed.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The bug report title isn't correct, but was on the right track.
Rev 2.13 applied a patch intended to improve asinh and acosh, but the
author mistakenly replaced the body of asin with their new code for asinh.
See bug report for all the gory details.
This patch: (a) puts the "new" (as of 2.13) asinh code into the asinh
function; and, (b) repairs asin via what Abramowitz & Stegun say it should
be (which is probably the same as what 2.12 did for asin, although I got
tired of matching parentheses before being 100% sure of that -- and I don't
care! The source of the old code is a mystery, and I *know* why I picked
the new code.).
|
|
|
|
| |
where they break.
|
| |
|
|
|
|
| |
fails
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fixes the zlib decompress sync flush bug as reported in bug #124981
* avoids repeat calls to (in|de)flateEnd when destroying (de)compression
objects
* raises exception when allocating unused_data fails
* fixes memory leak when allocating unused_data fails
* raises exception when allocating decompress data fails
* removes vestigial code from decompress flush now that decompression
returns all available data
* tidies code so object compress/decompress/flush routines are consistent
|
|
|
|
|
|
| |
NamedNodeMap.setNamedItem(). Martin, should I sync the PyXML tree, too,
or do you want to do it? (I don't know if you're wrapping the 0.6.4
release right now.)
|
| |
|
|
|
|
| |
buffer after executing its contents.
|
|
|
|
| |
crashing UPP. This made ModalDialog (and, hence EditPythonPrefs and EasyDialogs and many others) crash. Fixed.
|
|
|
|
|
|
| |
cookies that contain '=' as part of the value. This patch modifies
Cookie.py to allow '=' as a legal character, and to make the key
search nongreedy so it stops at the first '='.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
save the __builtin__ module in a static variable. But this doesn't
work across Py_Finalise()/Py_Initialize()! It also doesn't work when
using multiple interpreter states created with PyInterpreterState_New().
So I'm ripping out this small optimization.
This was probably broken since PyImport_Import() was introduced in
1997! We really need a better test suite for multiple interpreter
states and repeatedly initializing.
This fixes the problems Barry reported in Demo/embed/loop.c.
|
| |
|
| |
|
|
|
|
| |
Added `realclean' target.
|
| |
|
| |
|