| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Got rid of quadratic complexity in breaking long words.
|
|
|
|
|
| |
supports copying of instances of classes whose __new__ method takes
keyword-only arguments.
|
|
|
|
|
|
|
|
|
| |
Too bad, sometimes Py_FatalError() is unable to write the exception into
sys.stderr (on "AMD64 OpenIndiana 3.x" buildbot, the buildbot was probably out
of memory).
Call Py_FatalError() with a different message for the two cases (result+error,
or no result and no error).
|
| |
|
|
|
|
|
| |
unnecessary copying of memoryview in gzip.GzipFile.write().
Original patch by Wolfgang Maier.
|
| |
|
|\ |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| |
| | |
As a result, explicitly support pathlib.Path objects as arguments.
Also added tests for the CLI interface.
|
|\ \
| |/ |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
which returned an invalid result (result+error or no result without error) in
the exception message.
Add also unit test to check that the exception contains the name of the
function.
Special case: the final _PyEval_EvalFrameEx() check doesn't mention the
function since it didn't execute a single function but a whole frame.
|
| |
| |
| |
| | |
as a MutableSequence.
|
|\ \
| |/
| |
| |
| | |
and socket open until the garbage collector cleans them up. Patch by
Martin Panter.
|
| |
| |
| |
| |
| | |
and socket open until the garbage collector cleans them up. Patch by
Martin Panter.
|
| | |
|
| | |
|
|\ \
| |/
| |
| | |
Indexing bytes retiurns an integer, not bytes.
|
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
some circunstances while NamedTemporaryFile object was living. This causes
failing test_csv. Changed the implementation of NamedTemporaryFile.__iter__
to make tests passed.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
None on Windows.
When the file is not readable, the error occurs at open on UNIX. On Windows,
the error only occurs at the first operation on the open file. It would require
to many changes to set __context__ to an OSError for all file operations, for a
little benefit (__context__ is almost never used).
|
| |
| |
| |
| | |
signal.sigtimedwait() if functions are missing
|
| |
| |
| |
| | |
If Python failed, show also stdout in the assertion error.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
when interrupted by a signal not in the *sigset* parameter, if the signal
handler does not raise an exception. signal.sigtimedwait() recomputes the
timeout with a monotonic clock when it is retried.
Remove test_signal.test_sigwaitinfo_interrupted() because sigwaitinfo() doesn't
raise InterruptedError anymore if it is interrupted by a signal not in its
sigset parameter.
|
| | |
|
| |
| |
| |
| |
| | |
codecs, that accepted only read-only bytes-like object now accept writable
bytes-like object too.
|
| |
| |
| |
| |
| |
| |
| |
| | |
interrupted by a signal
Add a new _PyTime_AddDouble() function and remove _PyTime_ADD_SECONDS() macro.
The _PyTime_ADD_SECONDS only supported an integer number of seconds, the
_PyTime_AddDouble() has subsecond resolution.
|
| |
| |
| |
| | |
multi-dimensional memoryviews).
|
| |
| |
| |
| |
| |
| | |
and stored in pyconfig.h as the new HAVE_GETRANDOM_SYSCALL define.
Fix os.urandom() tests using file descriptors if os.urandom() uses getrandom().
|
| |
| |
| |
| |
| |
| |
| | |
retried with the recomputed delay, except if the signal handler raises an
exception (PEP 475).
Modify also test_signal to use a monotonic clock instead of the system clock.
|
|\ \
| |/
| |
| | |
Jan 30 of previous year. Based on patch by Jim Carroll.
|
| |
| |
| |
| | |
Jan 30 of previous year. Based on patch by Jim Carroll.
|
|\ \
| |/
| |
| | |
NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
|
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
importing a test module is now picklable.
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| | |
broken after converting instance attributes to properies in issue #2211.
|