| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
`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.
|
| |
|
| |
|
|
|
|
| |
'trailer', e.g. zip()[x] (#24)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
| |
This hides unwanted implementation details from tracebacks.
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* change LBYL key lookup to dict.setdefault
The ``results`` was constructed as a defaultdict and we could simply
delete the check ``if key not in results``. However, I think it's safer
to use dict.setdefault as I'm not sure whether the caller expects a
regular dict or defaultdict.
* add name to the acknowledgements file
* use defaultdict to make the key-lookup cleaner
|
|
|
| |
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.
|
|
|
|
| |
bpo-23890: unittest.TestCase.assertRaises() now manually breaks a
reference cycle to not keep objects alive longer than expected.
|
|
|
|
| |
(GH-847)
|
|
|
| |
Make also minor PEP8 coding style fixes on modified imports.
|
| |
|
|
|
|
|
|
| |
* Remove unused test file
* Remove duplicated text in sndhdrdata README
|
| |
|
| |
|
|
|
|
| |
Since functions in the os module support path-like objects, explicit
converting Path to str no longer needed.
|
|
|
| |
Now general path-like objects are supported, not just pathlib.Path.
|
| |
|
|
|
|
|
| |
__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().
|
| |
|