| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Patch by Eryk Sun and Emanuel Barry.
|
|\
| |
| |
| | |
Also moved news item for #2466 to the correct place.
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
Patch by Robin Roth, reviewed by Serhiy Storchaka, comment wording
tweaked by me.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Issue #25958: Support "anti-registration" of special methods from
various ABCs, like __hash__, __iter__ or __len__. All these (and
several more) can be set to None in an implementation class and the
behavior will be as if the method is not defined at all.
(Previously, this mechanism existed only for __hash__, to make
mutable classes unhashable.) Code contributed by Andrew Barnert and
Ivan Levkivskyi.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Issue #27558: Fix a SystemError in the implementation of "raise" statement.
In a brand new thread, raise a RuntimeError since there is no active
exception to reraise.
Patch written by Xiang Zhang.
|
| | |
|
| |
| |
| |
| |
| | |
Does not appear to be a problem anymore and I cannot figure
out why it was skipped in the first place.
|
| |
| |
| |
| |
| | |
enabled: ensure code object has a valid first line number.
Patch suggested by Ivan Levkivskyi.
|
| |
| |
| |
| |
| | |
The z variable is known to be a fresh number which cannot be shared, Py_SIZE()
can be used directly to negate the number.
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
sys.version[0] gives a string, which fails > comparison with 2.
Reported by Arne Maximilian Richter on docs@
|
| |
| |
| |
| |
| |
| |
| | |
It's sometimes hard to check quickly if tests succeeded, failed or something
bad happened. I added a final "Result: xxx" line which summarizes all outputs
into a single line, written at the end (it should always be the last line of
the output).
|
| | |
|
| | |
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
* Memove -t option of ctags. The option was kept for backward compatibility,
but it was completly removed recently. Patch written by Stéphane Wirtel.
* Set locale to C to call sort. vim expects that the tags file is sorted using
english collation, so it fails if the locale is french for example. Use
LC_ALL=C to force english sorting order. .
|
| |
| |
| |
| |
| |
| | |
vim expects that the tags file is sorted using english collation, so it fails
if the locale is french for example. Use LC_ALL=C to force english sorting
order. Issue #27726.
|
| |
| |
| |
| |
| | |
The option was kept for backward compatibility, but it was completly removed
recently. Patch written by Stéphane Wirtel.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
If Popen.communicate() raises an exception, kill the child process to not leave
a running child process in background and maybe create a zombi process.
This change fixes a ResourceWarning in Python 3.6 when unit tests are
interrupted by CTRL+c.
|
| |
| |
| |
| | |
Use milliseconds and minutes units, not only seconds.
|
| |
| |
| |
| | |
Display the top 10 slowest tests.
|
| |
| |
| |
| | |
Thanks to optparse, --slow syntax still works ;-)
|
| | |
|
| | |
|
|\ \
| |/ |
|
| |\ |
|
| | |\ |
|
| | | |
| | | |
| | | |
| | | | |
uninitialized memory usage (closes #27783)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Issue #27128, #18295: replace int type with Py_ssize_t for index variables used
for positional arguments. It should help to avoid integer overflow and help to
emit better machine code for "i++" (no trap needed for overflow).
Make also the total_args variable constant.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Add comments
* Add empty lines for readability
* PEP 7 style for if block
* Remove useless assert(globals != NULL); (globals is tested a few lines
before)
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| |/ / / |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Merge dev_urandom_python() and dev_urandom_noraise() functions to reduce code
duplication.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Modify py_getrandom() to not call PyErr_CheckSignals() if raise is zero.
_PyRandom_Init() is called very early in the Python initialization, so it's
safer to not call PyErr_CheckSignals().
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Add pyurandom() helper function to factorize the code
* don't call Py_FatalError() in helper functions, but only in _PyRandom_Init()
if pyurandom() failed, to uniformize the code
|