| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
| |
(#1041)
multiple times. Writing to closed zip entry writer object now always produce
a ValueError.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
(GH-949)
contextlib._GeneratorContextManager.__exit__ includes a special case to deal with
PEP 479 RuntimeErrors created when `StopIteration` is thrown into the context
manager body.
Previously this check was too permissive, and undid one level of chaining on *all*
RuntimeError instances, not just those that wrapped a StopIteration instance.
|
| |
|
|
|
|
|
| |
`PyArg_ParseTuple*` (#916)
Also changed format specifier for function name from "%s" to "%.200s"
and exception messages should start with lowercase letter.
|
| |
|
| |
attributes.
|
| |
|
|
| |
object.__reduce__() no longer takes arguments, object.__reduce_ex__() now
requires one argument.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Implement math.remainder.
* Fix markup for arguments; use double spaces after period.
* Mark up function reference in what's new entry.
* Add comment explaining the calculation in the final branch.
* Fix out-of-order entry in whatsnew.
* Add comment explaining why it's good enough to compare m with c, in spite of possible rounding error.
|
| |
|
| |
* correct parse_qs and parse_qsl test case descriptions.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-29972: Fix test_eintr on AIX
On AIX, sigtimedwait(0.2) sleeps 199.8 ms, whereas the test expects
200 ms or longer.
* bpo-29972: Skip some inet_pton() tests on AIX
Skip some inet_pton() tests of test_socket on AIX.
inet_pton() on AIX is less strict than on Linux and doesn't reject
some invalid IP addresses. The unit tests test more the libc than
Python itself.
* bpo-29972: Skip tests known to fail on AIX
* test_locale.test_strcoll_with_diacritic()
* test_locale.test_strxfrm_with_diacritic()
* test_strptime.test_week_of_year_and_day_of_week_calculation()
* test_tools.test_POT_Creation_Date()
|
| |
|
|
|
| |
Don't fail anymore if test run with python3 -Werror.
Fix also deprecation message: add a space.
|
| |
|
|
| |
Return 304 response if file was not modified.
|
| | |
|
| |
|
| |
This reverts commit b94d7fd4efa877d649cea9c8125c8869ffe0c32d.
|
| |
|
|
|
|
|
|
| |
the original logic was just comparing the network address
but this is wrong because if the network address is equal then
we need to compare the ip address for breaking the tie
add more ip_interface comparison tests
|
| |
|
| |
Also uncomment and fix a path test.
|
| | |
|
| |
|
| |
objects when pass out of bound fold argument.
|
| |
|
|
| |
urllib.request module. (#918)
|
| |
|
|
|
| |
Fix the use of recursion in itertools.chain.from_iterable. Using recursion
is unnecessary, and can easily cause stack overflows, especially when
building in low optimization modes or with Py_DEBUG enabled.
|
| |
|
|
|
|
|
|
| |
Element.getiterator() and the html parameter of XMLParser() were
deprecated only in the documentation (since Python 3.2 and 3.4 correspondintly).
Now using them emits a deprecation warning.
* Don’t need check_warnings any more.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* test_normalization fails if download fails
bpo-29887. The test is still skipped if "-u urlfetch" option is not
passed to regrtest (python3 -m test -u urlfetch test_normalization).
* Fix ResourceWarning in test_normalization
bpo-29887: Fix ResourceWarning in test_normalization if tests are
interrupted by CTRL+c.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
(#680)
ValueError always is raised rather than OverflowError for negative counts.
Shifting zero with non-negative count always returns zero.
|
| |
|
|
| |
os.fwalk() is sped up by 2 times by using os.scandir().
|
| | |
|
| |
|
|
|
| |
an exception raised at the very first of an iterable would cause pools behave abnormally
(swallow the exception or hang)
|
| |
|
|
| |
(GH-822)
|
| |
|
|
|
|
|
| |
Add the 'monetary' parameter to format_string so that all
uses of format can be converted to format_string. Adjust
the documentation accordingly, and add a deprecation
warning when format is used.
|
| |
|
|
| |
(GH-847)
|
| |
|
| |
Make also minor PEP8 coding style fixes on modified imports.
|
| | |
|
| |
|
|
|
|
| |
* Remove unused test file
* Remove duplicated text in sndhdrdata README
|
| |
|
|
|
| |
__complex__. (#798)
In a future versions of Python this can be an error.
|
| |
|
|
| |
when the OS gives priority to errors such as EACCES over EEXIST.
|
| |
|
|
|
|
|
|
|
|
| |
* bpo-29861: release references to multiprocessing Pool tasks
Release references to tasks, their arguments and their results as soon
as they are finished, instead of keeping them alive until another task
arrives.
* Comments in test
|
| |
|
| |
permission bits of newly-created intermediate-level directories.
|
| |
|
|
|
|
|
|
|
|
|
| |
* bpo-6532: Make the thread id an unsigned integer.
From C API side the type of results of PyThread_start_new_thread() and
PyThread_get_thread_ident(), the id parameter of
PyThreadState_SetAsyncExc(), and the thread_id field of PyThreadState
changed from "long" to "unsigned long".
* Restore a check in thread_get_ident().
|
| |
|
|
|
| |
one (#422)" (#713)
This reverts commit 02371e0ed1ee82ec73e7d363bcf2ed40cde1397a.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
(GH-694)
The module is implicitly tested through test_urllib.
|
| |
|
| |
Initial patch by Vajrasky Kok.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Many metaclasses in the standard library don't play nice with
__init_subclass__. This bug makes ABCMeta in particular with
__init_subclass__, which is an 80/20 solution for me personally.
AFAICT, a general solution to this problem requires updating all
metaclasses in the standard library to make sure they pass **kwargs to
type.__new__, whereas this PR only fixes ABCMeta. For context, see
https://bugs.python.org/issue29581.
* added a test combining ABCMeta and __init_subclass__
* Added NEWS item
|