[issue22458] Add fractions benchmark

2016-09-01 Thread STINNER Victor
STINNER Victor added the comment: > I think string conversion should be part of this benchmark, or it should be > renamed to fraction-arith or something. The "telco" benchmark seems to be standard and well defined. I agree that we should use a different name. > That said, is the purpose of th

[issue22458] Add fractions benchmark

2016-09-01 Thread Stefan Krah
Stefan Krah added the comment: I'm also not opposed to adding it (-0.000) as long as we rename it to bm_fractions.py and change the docstring to "based on the telco benchmark". -- ___ Python tracker __

[issue27888] Hide pip install/uninstall windows in setup

2016-09-01 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue22458] Add fractions benchmark

2016-09-01 Thread STINNER Victor
STINNER Victor added the comment: @Stefan Krah: Please review the pull request. https://github.com/python/performance/pull/10 I suggested to only run the benchmark with the fractions module. I don't see the point of running the benchmark with the decimal module. -- __

[issue9400] multiprocessing.pool.AsyncResult.get() messes up exceptions

2016-09-01 Thread Doug Coleman
Doug Coleman added the comment: Six years later and I'm still running into this exact bug with ``subprocess.CalledProcessError`` on python 2.7.12 when doing a ``multiprocessing.Pool.map`` and trying to catch errors from ``subprocess.check_output``. What's the reason it was never fixed and ba

[issue27898] regexp performance degradation between 2.7.6 and 2.7.12

2016-09-01 Thread Steve Newcomb
Steve Newcomb added the comment: On 09/01/2016 05:01 PM, Steve Newcomb wrote: > >> The outputs show that 2.7.12's re.sub() takes 1.2 times as long as >> 2.7.6's. It's a significant difference, but... >> >> ...it was not the dramatic degradation I expected to find in this >> exercise. On second

[issue27761] Private _nth_root function loses accuracy

2016-09-01 Thread Tim Peters
Tim Peters added the comment: Attched file "roots.py" you can run to get a guess as to how bad pow(x, 1/n) typically is on your box. Note that it's usually "pretty darned good" the larger `n` is. There's a reason for that. For example, when n=1000, all x satisfying 1 <= x < 2**1000 have a r

[issue15663] Investigate providing Tcl/Tk 8.6 with OS X installers

2016-09-01 Thread Caleb Hattingh
Changes by Caleb Hattingh : -- nosy: +cjrh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2016-09-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 79422fab2ef4 by Jason R. Coombs in branch 'default': Issue #12885: Merge with 3.5 https://hg.python.org/cpython/rev/79422fab2ef4 -- nosy: +python-dev ___ Python tracker

[issue12285] Unexpected behavior for 0 or negative processes in multiprocessing.pool()

2016-09-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 941346104718 by Jason R. Coombs in branch '3.4': Issue #12285: Add test capturing failure. https://hg.python.org/cpython/rev/941346104718 New changeset 56c60b3d06fb by Jason R. Coombs in branch '3.4': Issue #12285: Replace implementation of findall

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2016-09-01 Thread Jason R. Coombs
Jason R. Coombs added the comment: This code has been stable in Setuptools for some time, so I've pushed the code into the base. -- resolution: -> fixed status: open -> closed versions: -Python 2.7 ___ Python tracker

[issue12285] Unexpected behavior for 0 or negative processes in multiprocessing.pool()

2016-09-01 Thread Martin Panter
Martin Panter added the comment: Looks like that last lot was meant to reference Issue 12885 -- nosy: +martin.panter ___ Python tracker ___ __

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2016-09-01 Thread Martin Panter
Martin Panter added the comment: I think you mixed up the bug number. You should probably fix Misc/NEWS. New changeset 941346104718 by Jason R. Coombs in branch '3.4': Issue #12285: Add test capturing failure. https://hg.python.org/cpython/rev/941346104718 New changeset 56c60b3d06fb by Jason R.

[issue27761] Private _nth_root function loses accuracy

2016-09-01 Thread Tim Peters
Tim Peters added the comment: BTW, add this other way of writing a native-precision Newton step to see that it's much worse (numerically) than writing it in the "guess + small_correction" form used in roots.py. Mathematically they're identical, but numerically they behave differently: def n

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2016-09-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 590d0de4ff48 by Jason R. Coombs in branch '3.4': Issue #12885: Correct issue reference in NEWS https://hg.python.org/cpython/rev/590d0de4ff48 New changeset 74ccec0bd442 by Jason R. Coombs in branch '3.5': Issue #12885: Merge 3.4 https://hg.python.or

[issue12285] Unexpected behavior for 0 or negative processes in multiprocessing.pool()

2016-09-01 Thread Jason R. Coombs
Jason R. Coombs added the comment: Yep. Sorry for the misfile. -- nosy: +jason.coombs ___ Python tracker ___ ___ Python-bugs-list mail

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2016-09-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset e82b995d1a5c by Jason R. Coombs in branch '3.4': Issue #12885: Revert commits in 3.4 branch which is security-only fixes. https://hg.python.org/cpython/rev/e82b995d1a5c New changeset a7ce98a4e9e4 by Jason R. Coombs in branch '3.5': Issue #12885: Mer

[issue12885] distutils.filelist.findall() fails on broken symlink in Py2.x

2016-09-01 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- versions: -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-09-01 Thread Lisa Roach
Lisa Roach added the comment: I will start working on the patch for this! Thanks for pointing me this way, Raymond. -- nosy: +lisroach ___ Python tracker ___ ___

[issue27929] asyncio.AbstractEventLoop.sock_connect broken for AF_BLUETOOTH

2016-09-01 Thread Robert Jordens
Robert Jordens added the comment: https://github.com/python/cpython/blob/master/Lib/asyncio/selector_events.py#L394 https://github.com/python/asyncio/blob/master/asyncio/selector_events.py#L394 AF_UNIX is special-cased. Maybe AF_BLUETOOTH and others should use that same special treatment. Or may

[issue25750] tp_descr_get(self, obj, type) is called without owning a reference to "self"

2016-09-01 Thread Stefan Behnel
Stefan Behnel added the comment: I haven't seen any crashes in the wild here, but this is still the case in the latest code base. The change doesn't seem invasive, so I don't see why it shouldn't get implemented. -- nosy: +pitrou, scoder, serhiy.storchaka versions: +Python 3.5, Python

[issue23996] _PyGen_FetchStopIterationValue() crashes on unnormalised exceptions

2016-09-01 Thread Stefan Behnel
Stefan Behnel added the comment: Looks like I forgot about this. My final fix still hasn't been applied, so the code in Py3.4+ is incorrect now. No, this cannot be tested from the Python level. -- ___ Python tracker

[issue27935] logging level FATAL missing in _nameToLevel

2016-09-01 Thread Ondřej Medek
New submission from Ondřej Medek: logging.__init__._nameToLevel is missing 'FATAL' key: >>> logging.getLevelName('FATAL') 'Level FATAL' Expected same as: >>> logging.getLevelName('CRITICAL') 50 -- components: Library (Lib) messages: 274204 nosy: Ondřej Medek priority: normal severity:

[issue23591] enum: Add Flags and IntFlags

2016-09-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset adbc7eec97f1 by Ethan Furman in branch 'default': issue23591: add docs; code cleanup; more tests https://hg.python.org/cpython/rev/adbc7eec97f1 -- ___ Python tracker _

[issue27936] Inconsistent round behavior between float and int

2016-09-01 Thread Jonatan Skogsfors
New submission from Jonatan Skogsfors: Theo error handling for round is different for float and int. Python 3.5.1 (default, Apr 18 2016, 11:46:32) [GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.29)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> round

<    1   2