[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: Ned, I know my system is old so I understand if 3.6 no longer supports gcc 4.1. Tell me what minimum version I should use (4.8?) and I'll find a way to upgrade or use another system. Shouldn't the build system explicitly report that the compiler is too old,

[issue28103] Style fix in zipfile.rst

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 138625694ed6 by Berker Peksag in branch '3.5': Issue #28103: Use ``'...'`` style in zipfile documentation https://hg.python.org/cpython/rev/138625694ed6 New changeset 89b0ca61ad03 by Berker Peksag in branch '3.6': Issue #28103: Merge from 3.5 https:

[issue28103] Style fix in zipfile.rst

2016-09-12 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- nosy: +berker.peksag resolution: -> fixed stage: commit review -> resolved status: open -> closed versions: +Python 3.5, Python 3.6 ___ Python tracker __

[issue20140] UnicodeDecodeError in ntpath.py when home dir contains non-ascii signs

2016-09-12 Thread Eryk Sun
Eryk Sun added the comment: > It might be worth testing a patch that changes expanduser to > decode the environment variables If expanduser() is passed a unicode path, it can use _winreg.ExpandEvironmentStrings(u'%USERPROFILE%') instead of decoding os.environ['USERPROFILE']. In 2.7, os.envir

[issue23102] distutils: isinstance checks fail with setuptools-monkeypatched Extension/Distribution

2016-09-12 Thread Berker Peksag
Berker Peksag added the comment: The patch doesn't apply cleanly: applying http://bugs.python.org/file37554/distutils_accomodate_distribution_ducktypes.patch patching file Lib/distutils/cmd.py Hunk #1 FAILED at 51 1 out of 1 hunks FAILED -- saving rejects to file Lib/distutils/cmd.py.rej abort:

[issue28111] geometric_mean can raise OverflowError when checking for inf

2016-09-12 Thread Steven D'Aprano
New submission from Steven D'Aprano: >>> statistics.geometric_mean([0.7 for _ in range(5000)]) Traceback (most recent call last): File "/Users/mdickinson/Python/cpython-git/Lib/statistics.py", line 362, in float_nroot isinfinity = math.isinf(x) OverflowError: int too large to convert to fl

[issue28104] Set documentation is incorrect

2016-09-12 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread Ned Deily
Ned Deily added the comment: [discussion with Steven about compiler versions taken off-list] -- ___ Python tracker ___ ___ Python-bugs

[issue27181] Add geometric mean to `statistics` module

2016-09-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Mon, Sep 12, 2016 at 03:35:14PM +, Mark Dickinson wrote: > statistics.geometric_mean(0.7 for _ in range(5000)) I've raised a new ticket #28111 -- ___ Python tracker __

[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Berker Peksag
Berker Peksag added the comment: I think a Misc/NEWS entry is enough. We didn't use versionadded/versionchanged directives for similar changes in the past (mimetypes.types_map for example) Even if we decide to add an annotation it should be versionchanged, not versionadded (the API is not new.

[issue27981] Reference leak in fp_setreadl() of Parser/tokenizer.c

2016-09-12 Thread David Dudson (BigDaveNz)
David Dudson (BigDaveNz) added the comment: Please find a fix attached. This applies cleanly to 3.5/3.6/3.7 but not 2.7 Ran tests on 3.7 (master branch HEAD) only. -- keywords: +patch nosy: +David Dudson (BigDaveNz) Added file: http://bugs.python.org/file44614/0001-Issue-27981-Prevent

[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2016-09-12 Thread Robert Collins
Robert Collins added the comment: @Chris - I don't like the idea of making new classes on the fly like that, it seems more likely to provoke bugs (as type(case) != SomeSpecificClass) anymore after that, vs just not relying on __str__ directly. Going back to Michael's proposal of short descript

[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Markus Holtermann
Markus Holtermann added the comment: Thanks for your input, Berker. Updated as suggested. I still include the versionchanged annotation as I suspect more people to look at the docs than the entire changelog -- Added file: http://bugs.python.org/file44615/0001-Enable-WebSocket-URL-sche

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Kesara Rathnayake
Kesara Rathnayake added the comment: This issue still exists in Python 3.7. -- nosy: +kesara versions: +Python 3.7 ___ Python tracker ___ _

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Kesara Rathnayake
Kesara Rathnayake added the comment: Updated patch based on vinay.sajip's patch. -- Added file: http://bugs.python.org/file44616/6087_distutils_sysconfig.diff ___ Python tracker _

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Kesara Rathnayake
Kesara Rathnayake added the comment: Updated patch based on vinay.sajip's patch. -- Added file: http://bugs.python.org/file44617/6087_sysconfig.diff ___ Python tracker ___ ___

[issue27952] Finish converting fixcid.py from regex to re

2016-09-12 Thread Xiang Zhang
Xiang Zhang added the comment: Can we silence the debug output? ./python -m test test_tools Run tests sequentially 0:00:00 [1/1] test_tools *recursedown('@test_20410_tmp') 1 test OK. Total duration: 4 sec Tests result: SUCCESS -- nosy: +xiang.zhang status: closed -> open

[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Robert Collins
Robert Collins added the comment: I find details like this extremely useful in the main docs, so please do add there. -- ___ Python tracker ___ _

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2016-09-12 Thread Robert Collins
Robert Collins added the comment: I think the patch should either be rejected, or also handle trailing spaces: if we're taking the RFC definition of whitespace not being structural then we should also eat trailing space, which will change the check for extra data in decode to just checking en

[issue18828] urljoin behaves differently with custom and standard schemas

2016-09-12 Thread Martin Panter
Martin Panter added the comment: Recording bugs reports for specific schemes as dependencies of this: Issue 25895: ws(s) Issue 16134: rtmp(e/s/t) Issue 23759: coap(s) -- dependencies: +Add support for RTMP schemes to urlparse, urllib.parse.urljoin does not handle WebSocket URLs, urllib

[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-12 Thread Martin Panter
Martin Panter added the comment: IMO if a versionadded/versionchanged notice is relevant, that is a good sign it is a feature rather than bug fix. If the 3.6.1 documentation says “added in 3.5.3”, how do you know if it is in 3.6.0? I looked at the history of other schemes being added to try an

[issue28092] Build failure for 3.6 on Centos 5.11

2016-09-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Mon, Sep 12, 2016, at 10:34, Łukasz Langa wrote: > > Łukasz Langa added the comment: > > Benjamin, what's the rationale behind switching those to inline > functions? Does it improve runtime performance or build speed? If not, I > don't understand why the

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Kesara Rathnayake
Kesara Rathnayake added the comment: These patches break both test_distutils & test_sysconfig tests. -- ___ Python tracker ___ ___ Pyth

[issue27981] Reference leak in fp_setreadl() of Parser/tokenizer.c

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa88456f1749 by Berker Peksag in branch '3.5': Issue #27981: Fix refleak in fp_setreadl() https://hg.python.org/cpython/rev/aa88456f1749 New changeset 095c77323a6e by Berker Peksag in branch '3.6': Issue #27981: Merge from 3.5 https://hg.python.org/

[issue27981] Reference leak in fp_setreadl() of Parser/tokenizer.c

2016-09-12 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, David! -- components: +Interpreter Core nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior versions: +Python 3.5, Python 3.7 ___ Python tracke

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Robert Collins
Robert Collins added the comment: Ok, so we need to figure out whether the tests are wrong, or the 'fix' is wrong. -- ___ Python tracker ___ __

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Kesara Rathnayake
Kesara Rathnayake added the comment: Test output: [cpython.25567]$ ./python.exe -m test test_distutils test_sysconfig -j3 Run tests in parallel using 3 child processes 0:00:01 [1/2/1] test_sysconfig failed test test_sysconfig failed -- Traceback (most recent call last): File "/Users/kesara/pyc

[issue17188] Document 'from None' in raise statement doc.

2016-09-12 Thread Thomi Richards
Thomi Richards added the comment: Re-uploaded the patch without the typo. -- Added file: http://bugs.python.org/file44618/issue17188_3.4.patch ___ Python tracker ___

[issue28112] Add callback to functools.lru_cache

2016-09-12 Thread Alex Jurkiewicz
New submission from Alex Jurkiewicz: I'd like to add support for functools.lru_cache to have a callback parameter that runs every time an item is evicted from the cache. I've written a small prototype here: https://github.com/alexjurkiewicz/cpython/commit/2f788387466720d47f2c82242ac33b107b0bf4

[issue23102] distutils: isinstance checks fail with setuptools-monkeypatched Extension/Distribution

2016-09-12 Thread Greg Turner
Greg Turner added the comment: Huzzah -- Added file: http://bugs.python.org/file44619/0001-distutils-type-checks-can-fail-issue-23102.patch ___ Python tracker ___ __

[issue27952] Finish converting fixcid.py from regex to re

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5ae3782c4e05 by Berker Peksag in branch '3.5': Issue #27952: Capture stderr in run_script() https://hg.python.org/cpython/rev/5ae3782c4e05 New changeset 33d118a27035 by Berker Peksag in branch '3.6': Issue #27952: Merge from 3.5 https://hg.python.or

[issue27952] Finish converting fixcid.py from regex to re

2016-09-12 Thread Berker Peksag
Berker Peksag added the comment: Done. I'm going to pretend 2.7 doesn't exist :) -- nosy: +berker.peksag status: open -> closed ___ Python tracker ___ ___

[issue28112] Add callback to functools.lru_cache

2016-09-12 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +ncoghlan, rhettinger stage: -> needs patch versions: -Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue23102] distutils: isinstance checks fail with setuptools-monkeypatched Extension/Distribution

2016-09-12 Thread Greg Turner
Greg Turner added the comment: Double Huzzah. I can probably cook up a test and even look at those method invocations in considerably less than the existing 1.5-year lifecycle of this bug, but not necessarily immediately due to reasons. -- Added file: http://bugs.python.org/file44620

[issue27981] Reference leak in fp_setreadl() of Parser/tokenizer.c

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2be31da53dcc by Benjamin Peterson in branch '3.5': restructure fp_setreadl so as to avoid refleaks (closes #27981) https://hg.python.org/cpython/rev/2be31da53dcc New changeset 4ac3de437100 by Benjamin Peterson in branch '3.6': merge 3.5 (#27981) htt

[issue23102] distutils: isinstance checks fail with setuptools-monkeypatched Extension/Distribution

2016-09-12 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the updated patches. Since they both intend to fix the same problem, we can combine them in one patch file. -- stage: needs patch -> patch review ___ Python tracker

[issue23545] Turn on extra warnings on GCC

2016-09-12 Thread Martin Panter
Martin Panter added the comment: I think Silent Ghost is talking about my -Wtype-limits warning, which is still present. That is the only warning I am getting. I suspect you won’t see it with a 32-bit build. -- ___ Python tracker

[issue28112] Add callback to functools.lru_cache

2016-09-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Alex, I would like to pass on this feature request and keep the lru_cache API focused on its core task. As it stands now, it was already difficult to fight reentrancy problems. FWIW, it is very easy to roll your own LRU variants using collections.OrderedD

[issue28112] Add callback to functools.lru_cache

2016-09-12 Thread Alex Jurkiewicz
Alex Jurkiewicz added the comment: OK, thanks for the feedback. For future searchers I am using the pylru module instead: https://pypi.python.org/pypi/pylru -- ___ Python tracker __

[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch that reuses the helper in CommandLineTests. -- nosy: +berker.peksag stage: needs patch -> patch review versions: +Python 3.5, Python 3.7 Added file: http://bugs.python.org/file44621/issue27322_v2.diff _

[issue10972] zipfile: add "unicode" option to the force the filename encoding to UTF-8

2016-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Now UTF-8 is used for non-ASCII names. Can this issue be closed as outdated? -- ___ Python tracker ___ ___

[issue28113] Remove Py_CreateSymbolicLinkW

2016-09-12 Thread Eryk Sun
New submission from Eryk Sun: In 3.6, the Windows implementation of os.symlink can be simplified to directly call CreateSymbolicLinkW, since this function was added in Windows Vista. The support code for Py_CreateSymbolicLinkW can be removed from Modules/posixmodule.c. enable_symlink can also

[issue28113] Remove Py_CreateSymbolicLinkW

2016-09-12 Thread Eryk Sun
Eryk Sun added the comment: This patch also updates Win32SymlinkTests and Win32JunctionTests to use the user's %TEMP% directory instead of the source tree. It's much more likely that %TEMP% is on the system volume, which should be an NTFS volume that supports symbolic links and junctions. ---

[issue28102] zipfile.py script should print usage to stderr

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5e2780908857 by Serhiy Storchaka in branch 'default': Issue #28102: The zipfile module CLI now prints usage to stderr. https://hg.python.org/cpython/rev/5e2780908857 -- nosy: +python-dev ___ Python tracke

[issue28102] zipfile.py script should print usage to stderr

2016-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Stephen! -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue26900] Exclude the private API from the stable API

2016-09-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue22493] Deprecate the use of flags not at the start of regular expression

2016-09-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue26885] Add parsing support for more types in xmlrpc

2016-09-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue28104] Set documentation is incorrect

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5d93a9b4f0e8 by Raymond Hettinger in branch '3.5': Issue #28104: More accurately document set method signatures https://hg.python.org/cpython/rev/5d93a9b4f0e8 -- nosy: +python-dev ___ Python tracker

[issue28104] Set documentation is incorrect

2016-09-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset f30a76f0d477 by Raymond Hettinger in branch '2.7': Issue #28104: More accurately document set method signatures https://hg.python.org/cpython/rev/f30a76f0d477 -- ___ Python tracker

[issue28104] Set documentation is incorrect

2016-09-12 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue28114] Crash in unicodeobject.c find_maxchar_surrogates on python-3.6.0b1 for Windows

2016-09-12 Thread Christoph Gohlke
New submission from Christoph Gohlke: Trying to build numpy-1.11.2rc1 wheels for Python 3.6.0b1 on Windows 10 with `python.exe setup.py bdist_wheel`, python36.dll (32 and 64 bit) segfaults in the `find_maxchar_surrogates` function. Some other packages built OK, e.g. Cython, pyzmq and Pillow.

[issue28102] zipfile.py script should print usage to stderr

2016-09-12 Thread SilentGhost
SilentGhost added the comment: The status code in all those cases should have been 2. -- nosy: +SilentGhost ___ Python tracker ___ ___

<    1   2   3