[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 ___ ___

[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.

[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

[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 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

[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 ___ _

[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 ___ _

[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 ___ __

[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. ---

[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

[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 ___ ___

[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 _

[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 __

[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

[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

[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

[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 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

[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 ___ ___

[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 ___ ___

[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

[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 ___ __

[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

[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 ___

[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

[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 ___ __

[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

[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/

[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

[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

[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

[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

[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

[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 ___ _

[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

[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 ___ ___

[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: This issue still exists in Python 3.7. -- nosy: +kesara versions: +Python 3.7 ___ Python tracker ___ _

[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

[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

[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

[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.

[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 __

[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

[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

[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:

[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

[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 __

[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:

[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,

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2016-09-12 Thread Bayard Randel
Bayard Randel added the comment: I've provided an updated patch for 3.6. Additionally I've updated the docstring for decoder.raw_decode to explain that whitespace at the beginning of the document will be ignored. I believe the concerns around the backwards incompatible change to the function s

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

2016-09-12 Thread Markus Holtermann
Changes by Markus Holtermann : Removed file: http://bugs.python.org/file44609/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.3.6.patch ___ Python tracker ___

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

2016-09-12 Thread Markus Holtermann
Changes by Markus Holtermann : Removed file: http://bugs.python.org/file44610/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.master.patch ___ Python tracker ___ _

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

2016-09-12 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: -yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

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

2016-09-12 Thread Markus Holtermann
Markus Holtermann added the comment: Since the patch applies cleanly to the 3.5, 3.6 and master branch I only attached one updated version of it. -- Added file: http://bugs.python.org/file44612/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.patch ___

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

2016-09-12 Thread Markus Holtermann
Changes by Markus Holtermann : Removed file: http://bugs.python.org/file44608/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.3.5.patch ___ Python tracker ___

[issue27946] issues in elementtree and elsewhere due to PyDict_GetItem

2016-09-12 Thread Tim Mitchell
Tim Mitchell added the comment: Added test to patch -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue27946] issues in elementtree and elsewhere due to PyDict_GetItem

2016-09-12 Thread Tim Mitchell
Changes by Tim Mitchell : Removed file: http://bugs.python.org/file44605/0001-issue27946-Hold-reference-to-dict-in-PyDict_GetItem.patch ___ Python tracker ___ __

[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread INADA Naoki
INADA Naoki added the comment: > So what if we delete mp->ma_used == ix or use mp->ma_keys->dk_nentries == ix? > Do we still have any case breaking the order? Yes. `mp->ma_used == ix` means no more guard about key ordering. class C: ... a, b = C() a.a, a.b = 1, 2 # shared key order is [

[issue27946] issues in elementtree and elsewhere due to PyDict_GetItem

2016-09-12 Thread Tim Mitchell
Changes by Tim Mitchell : Added file: http://bugs.python.org/file44611/0001-issue27946-Hold-reference-to-dict-in-PyDict_GetItem.patch ___ Python tracker ___

[issue28024] fileinput causes RecursionErrors when dealing with large numbers of empty files

2016-09-12 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue27946] issues in elementtree and elsewhere due to PyDict_GetItem

2016-09-12 Thread Robert Collins
Robert Collins added the comment: Please add the reproducer as a test case (in test_dict.py I think) - even though it needs elementree to trigger it is a dict bug :). I also wonder if there are similar cases lying under other C collections like list, tuple and set. E.g. list.find() calls obj._

[issue28024] fileinput causes RecursionErrors when dealing with large numbers of empty files

2016-09-12 Thread Josh Rosenberg
Josh Rosenberg added the comment: Ah. System I was working on when I checked this didn't have latest micro release. Guess I can recheck when it gets updated. -- ___ Python tracker _

[issue27946] issues in elementtree and elsewhere due to PyDict_GetItem

2016-09-12 Thread Tim Mitchell
Tim Mitchell added the comment: see also similar dict issue 27945 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue28024] fileinput causes RecursionErrors when dealing with large numbers of empty files

2016-09-12 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue27946] issues in elementtree and elsewhere due to PyDict_GetItem

2016-09-12 Thread Tim Mitchell
Tim Mitchell added the comment: see also similar dict issue 27945 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue28024] fileinput causes RecursionErrors when dealing with large numbers of empty files

2016-09-12 Thread Duane Griffin
Duane Griffin added the comment: This was fixed in 2.7, 3.5 and head when #15068 was fixed. -- nosy: +duaneg, serhiy.storchaka ___ Python tracker ___

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

2016-09-12 Thread Robert Collins
Robert Collins added the comment: Given two (or more) parameters where one is unicode and one is not, upcasting will occur multiples times in path.join on windows: - '\\' is str and will cast up safely in all codecs - the other str (or bytes) parameter will be upcast using sys.defaultencoding

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

2016-09-12 Thread Thomi Richards
Thomi Richards added the comment: OK, it seems that patch applies cleanly to 3.5 and 3.6. -- ___ Python tracker ___ ___ Python-bugs-li

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

2016-09-12 Thread Markus Holtermann
Changes by Markus Holtermann : Added file: http://bugs.python.org/file44609/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.3.6.patch ___ Python tracker ___ __

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

2016-09-12 Thread Markus Holtermann
Changes by Markus Holtermann : Added file: http://bugs.python.org/file44610/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.master.patch ___ Python tracker ___ ___

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

2016-09-12 Thread Markus Holtermann
Changes by Markus Holtermann : Added file: http://bugs.python.org/file44608/0001-Enable-WebSocket-URL-schemes-in-urllib.parse.urljoin.3.5.patch ___ Python tracker ___ __

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

2016-09-12 Thread Thomi Richards
Thomi Richards added the comment: I have attached a patch for 3.4, based on the patch submitted by Nitika Agarwal. The main difference is that I think it's better to be explicit and show a separate example of `raise X from None`. I will submit a patch for later versions as well. -- no

[issue26240] Docstring of the subprocess module should be cleaned up

2016-09-12 Thread Robert Collins
Changes by Robert Collins : -- nosy: +rbcollins ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue28109] What's new item for PEP 526 -- Variable annotations

2016-09-12 Thread Guido van Rossum
Guido van Rossum added the comment: Patch LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

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

2016-09-12 Thread Markus Holtermann
Markus Holtermann added the comment: As discussed with rbcollins during the KiwiPyCon sprints, I'll add patches for 3.5, 3.6 and master with docs mentioning the addition of `ws` and `wss` as of 3.5.3 -- nosy: +MarkusH ___ Python tracker

[issue28109] What's new item for PEP 526 -- Variable annotations

2016-09-12 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Second update, implemented comments by Yury an Guido. -- Added file: http://bugs.python.org/file44606/whats-new-pep-526-v3.diff ___ Python tracker

[issue27946] issues in elementtree and elsewhere due to PyDict_GetItem

2016-09-12 Thread Tim Mitchell
Tim Mitchell added the comment: Verified problem. Added patch to keep reference to dict in PyDict_GetItem. -- keywords: +patch nosy: +Tim Mitchell Added file: http://bugs.python.org/file44605/0001-issue27946-Hold-reference-to-dict-in-PyDict_GetItem.patch __

[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

2016-09-12 Thread Eric Snow
Eric Snow added the comment: With issue #28007 wrapped up, there isn't a lot left to do here. I was considering that we don't want to abort when we have problems loading a codec during startup. However, Steve Dower made the point to me that a problem with the main codec during startup should

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

2016-09-12 Thread Robert Collins
Robert Collins added the comment: It is a bugfix, but we should document when it started working using the version added segment IMO. I think addding this to 3.6 now would be ok. -- nosy: +rbcollins ___ Python tracker

[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread Stefan Krah
Stefan Krah added the comment: It could still be a stack overflow, but on the surface it does not look like one. It's definitely related to the aforementioned revision: ==3442== Invalid read of size 8 ==3442==at 0x49DBD8: _PyDict_Pop (dictobject.c:1743) ==3442==by 0x4A0BE2: dict_pop (dic

[issue6858] IDLE: allow syntax highlighting of files without .py extension

2016-09-12 Thread ppperry
Changes by ppperry : -- title: This is a python file, apply syntax highlighting -> IDLE: allow syntax highlighting of files without .py extension ___ Python tracker ___ _

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-12 Thread Eric Snow
Eric Snow added the comment: I was going to ask Ned, but I'm fine with holding off until 3.7. :) -- ___ Python tracker ___ ___ Python-

[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > I don't think tzname is really all that useful. I agree. More so after issue 25283 (Make tm_gmtoff and tm_zone available on all platforms). That's why I don't see why the time module need to set tzname to anything other than what the C library does.

[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: > The real issue is that when setting the tzname tuple in the time module, we > use a guess based on the value of tm_zone probed in June and January. I am > not sure whether this is wise. Shouldn't we just use C tzname is it is > available? I don't thin

[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The real issue is that when setting the tzname tuple in the time module, we use a guess based on the value of tm_zone probed in June and January. I am not sure whether this is wise. Shouldn't we just use C tzname is it is available? -- ___

[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread STINNER Victor
STINNER Victor added the comment: I didn't see any segfault on the Python test suite on buildbots. It's either a bug in Blaze (Python C API change like METH_CALL) or a real bug in CPython. It's a beta, we can fix bugs later :-) -- ___ Python tracker

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-12 Thread Brett Cannon
Brett Cannon added the comment: I don't think we should try and squeeze this in for 3.6 since we have now hit beta and this is a feature since this is changing semantics that date back to Python 2. I'm going to go ahead and change the target to 3.7. -- versions: +Python 3.7 -Python 3.6

[issue26182] Deprecation warnings for the future async and await keywords in Python 3.6

2016-09-12 Thread Brett Cannon
Brett Cannon added the comment: I'm fine with it being in b2 because IMO the warning really should make it in 3.6 and for stuff like this it's more critical to hit the RC for people's testing than the beta to work out semantic changes. -- ___ Python

[issue28108] Python configure fails to detect tzname on platforms that have it.

2016-09-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: If you want to separately check for the definition of tzname, I guess you have to add a AC_DEFINE() section specifically for tzname. -- ___ Python tracker _

[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread Ned Deily
Ned Deily added the comment: Yes, he's had a *long* day. I'll take your advice, Stefan. Thanks. -- ___ Python tracker ___ ___ Python

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-12 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file44601/issue28007.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-12 Thread Stefan Krah
Stefan Krah added the comment: If Victor can't reply now (it's getting late in Europe), I'd just release. Pretend that I set it to deferred blocker. :) -- priority: release blocker -> deferred blocker ___ Python tracker

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-12 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file44604/issue28007.diff ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue28109] What's new item for PEP 526 -- Variable annotations

2016-09-12 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Updated patch -- Added file: http://bugs.python.org/file44603/whats-new-pep-526-v2.diff ___ Python tracker ___

[issue28110] launcher.msi has different product codes between 32 and 64-bit

2016-09-12 Thread Steve Dower
Changes by Steve Dower : -- title: py launcher has different product codes between 32 and 64-bit -> launcher.msi has different product codes between 32 and 64-bit ___ Python tracker ___

[issue28110] py launcher has different product codes between 32 and 64-bit

2016-09-12 Thread Steve Dower
New submission from Steve Dower: The launcher.msi file that is part of 3.6.0b1 is different between the 32-bit and 64-bit release - specifically, a different product code. This means that when you install one followed by the other, it will insist on updating the launcher even though the are th

  1   2   3   >