| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
embedders to force a different PYTHONHOME.
- Add new interface PyErr_PrintEx(flag); same as PyErr_Print() but
flag determines whether sys.last_* are set or not. PyErr_Print()
now simply calls PyErr_PrintEx(1).
|
|
|
|
| |
getpath.c in frozen binaries.
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Add Py_FrozenFlag, intended to suppress error messages fron
getpath.c in frozen binaries.
- Add Py_GetPythonHome() and Py_SetPythonHome(), intended to allow
embedders to force a different PYTHONHOME.
- Add new interface PyErr_PrintEx(flag); same as PyErr_Print() but
flag determines whether sys.last_* are set or not. PyErr_Print()
now simply calls PyErr_PrintEx(1).
|
| |
|
|
|
|
|
| |
of "variable": each individual variable should be identified as a single
variable and not a collection in the index.
|
|
|
|
| |
Code by David Ascher (docstring by me).
|
|
|
|
|
|
|
|
|
|
|
|
| |
(1) Explicitly clear __builtin__._ and sys.{last,exc}_* before
clearing anything else. These are common places where user values
hide and people complain when their destructors fail. Since the
modules containing them are deleted *last* of all, they would come too
late in the normal destruction order. Sigh.
(2) Add some debugging aid to cleanup (after a suggestion by Marc
Lemburg) -- print the names of the modules being cleaned, and (when
-vv is used) print the names of the variables being cleared.
|
|
|
|
| |
like default shell-mode behavior.
|
| |
|
| |
|
|
|
|
|
|
| |
string, don't check for indentation at column zero. This will falsely
hit a line inside a docstring that starts at column zero but ends in a
colon.
|
|
|
|
| |
arguments past to py-python-command when invoking the Python shell.
|
|
|
|
|
| |
defs) need to be declared extern "C" -- it seems to have no basis in
truth (any more?).
|
|
|
|
|
|
| |
- use the tempcache in the open() method, too.
- use the "unwrap"ped url as key for the tempcache.
|
|
|
|
|
| |
(2) Provisional hack to avoid dying when trying to turn echo on or off
on Macs, where os.system() doesn't exist.
|
|
|
|
|
| |
moved DLLs into their own directory (and added it to default path);
install zlib.dll in SYS32; fixed location of help root.
|
| |
|
| |
|
|
|
|
|
|
|
| |
use with function name provided as well.
Wrapped up PyArg_ParseTupleAndKeywords() description and provided example
based on Geoff Philbrick's example to the mailing list.
|
|
|
|
|
| |
requires "distill" from a FrameMaker installation. ;-) Would probably need
to be different for Windows/Mac.
|
|
|
|
|
| |
"standard". This is mostly for documentation of modules outside the
standard library.
|
| |
|
| |
|
|
|
|
| |
Remove references to regsub, which is obsolescent.
|
| |
|
| |
|
|
|
|
| |
rrggbb_to_triplet(): New utility function
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
from regrtest.py (it still works there too, of course).
|
|
|
|
|
| |
Ok, I fixed the quotes, along with a bug or two.
Also added another exception.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The main incompatibility is that the error reporting method is now
called as
parser.syntax_error(msg)
instead of
parser.syntax_error(lineno, msg)
This new version also has some code to deal with the <?xml?> and
<!DOCTYPE> tags at the start of an XML document.
The documentation has been updated, and a small test module has been
created.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Here's my suggested replacement for gzip.py for 1.5.1. I've
re-implemeted methods readline and readlines, added an _unread, and
tweaked read and _read.
I tried a more complicated buffer scheme for unread (using a list of
strings and string.join), but it was more complicated and slower.
This version is a lot faster than the current version and is still
pretty simple.
|
|
|
|
|
| |
number is the same as multiplying it with zero, and yields an empty
sequence.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed problems when unpickling in restricted execution environments.
These methods try to assign to an instance's __class__ attribute, or
access the instances __dict__, which are prohibited in REE. For the
first two methods, I re-implemented the old behavior when assignment
to value.__class__ fails.
For the load_build() I also re-implemented the old behavior when
inst.__dict__.update() fails but this means that unpickling in REE is
semantically different than unpickling in unrestricted mode.
|
|
|
|
|
| |
a copy of the defaults dictionary and merges the section's dictionary
into it so that sections can override the defaults.
|
|
|
|
| |
calling the Python API.
|
|
|
|
| |
demo, so here it is.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Removed " (byte code instruction)" from the output of the {opcodedesc}
environment; this should only appear in the index (which it now does).
Removed some really old cruft related to otherwise removed debugging code.
(I *think* assignments to $* set & clear auto-flush of <STDOUT>, but don't
really remember. Removing them seems to not change anything!)
|