| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
(OpenBSD 5.6+).
|
| |
|
|
|
|
| |
MemoryError.
|
|
|
|
|
|
|
|
|
|
| |
This mimics get_param's error handling for the most part. It is slightly
better in some regards as get_param can produce some really weird results for
duplicate *0* parts. It departs from get_param slightly in that if we have a
mix of non-extended and extended pieces for the same parameter name, the new
parser assumes they were all supposed to be extended and concatenates all the
values, whereas get_param always picks the non-extended parameter value. All
of this error recovery is pretty much arbitrary decisions...
|
|
|
|
| |
directories are left after running a test.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, if you hit ctl-c while the pager was active, the python that
launched the subprocess for the pager would see the KeyboardInterrupt in the
__exit__ method of the subprocess context manager where it was waiting for the
subprocess to complete, ending the wait. This would leave the pager running,
while the interactive interpreter, after handling the exception by printing
it, would go back to trying to post a prompt...but the pager would generally
have the terminal in raw mode, and in any case would be still trying to read
from stdin. On some systems, even exiting python at that point would not
restore the terminal mode. The problem with raw mode could also happen if
ctl-C was hit when pydoc was called from the shell command line and the pager
was active.
Instead, we now wait on the subprocess in a loop, ignoring KeyboardInterrupt
just like the pager does, until the pager actually exits.
(Note: this was a regression relative to python2...in python2 the pager
is called via system, and system does not return until the pager exits.)
|
|
|
|
| |
is wider then partitioned string.
|
|
|
|
| |
Free memory, unlock hanging threads.
|
|
|
|
| |
-Og does not optimize the C code, it's just "fast debugging".
|
| |
|
| |
|
| |
|
|
|
|
| |
close the binary file to fix a resource warning.
|
|
|
|
|
|
| |
Flushing sys.stdout and sys.stderr in Py_FatalError() can call again
Py_FatalError(). Add a reentrant flag to detect this case and just abort at the
second call.
|
| |
|
|
|
|
| |
writer failed in BufferedRWPair.close().
|
|
|
|
|
| |
keyword argument. string.Formatter now allows to specify the "self" and
the "format_string" parameters as keyword arguments.
|
| |
|
| |
|
|
|
|
|
| |
It should help to see exceptions when stderr if buffered: PyErr_Display() calls
sys.stderr.write(), it doesn't write into stderr file descriptor directly.
|
|
|
|
|
|
|
|
|
| |
* Display the current Python stack if an exception was raised but the exception
has no traceback
* Disable faulthandler if an exception was raised (before it was only disabled
if no exception was raised)
* To display the current Python stack, call PyGILState_GetThisThreadState()
which works even if the GIL was released
|
| |
|
|
|
|
|
|
|
| |
Issue #23654: Turn off ICC's tail call optimization for the stack_overflow
generator. ICC turns the recursive tail call into a loop.
Patch written by Matt Frank.
|
|
|
|
| |
GzipFile corruption. Original patch by Wolfgang Maier.
|
|
|
|
| |
the XPATH predicate table.
|
| |
|
|
|
|
|
|
|
|
| |
Some http servers will reject PUT, POST, and PATCH requests if they
do not have a Content-Length header.
Patch by James Rutherford, with additional cleaning up of the
'request' documentation by me.
|
| |
|
|
|
|
| |
Patch by Mike Short.
|
| |
|
|
|
|
|
| |
raising TypeError when statically allocated type subclasses dynamically
allocated type
|
|
|
|
|
| |
and socket open until the garbage collector cleans them up. Patch by
Martin Panter.
|
|
|
|
|
|
|
| |
Being able to read non-python text files is not a purpose of linecache, but it
does work and people use it. This changeset adjusts the language to make it
clear that Python files are not treated uniquely, but does not go so far as to
say reading non-python files is explicitly supported.
|
|
|
|
| |
Indexing bytes retiurns an integer, not bytes.
|
|
|
|
|
|
| |
some circunstances while NamedTemporaryFile object was living. This causes
failing test_csv. Changed the implementation of NamedTemporaryFile.__iter__
to make tests passed.
|
| |
|
| |
|
|
|
|
| |
Jan 30 of previous year. Based on patch by Jim Carroll.
|
|
|
|
| |
NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
|
| |
|
|
|
|
|
|
|
|
|
| |
add private method to enum to support replacing global constants with Enum members:
- search for candidate constants via supplied filter
- create new enum class and members
- insert enum class and replace constants with members via supplied module name
- replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle
modify IntEnum classes to use new method
|
|
|
|
| |
importing a test module is now picklable.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Use a Python source file (linecache.__file__) instead of /etc/passwd.
Modify also linecache docstrings to clarify the linecache is written to cache
Python source files, not any text files.
|
|
|
|
| |
source files, even if "it works" with other text files encoded to UTF-8.
|
|
|
|
| |
PyMarshal_ReadShortFromFile() can fail.
|
| |
|
| |
|