[issue29449] clear() should return prior state in threading.Event

2017-02-04 Thread Jyotirmoy Bhattacharya
New submission from Jyotirmoy Bhattacharya: The clear() method for Event objects currently does not return anything. It would be useful to have it return the state of the Event prior to it being cleared. This would be useful since multiple threads may wake up from an event at the same time

[issue29441] Update examples to use async and await keywords in asyncio-task.rst

2017-02-04 Thread Marco Buttu
Marco Buttu added the comment: The patch is OK to me. I also executed the examples, and everything works fine :-) -- nosy: +marco.buttu ___ Python tracker

[issue29448] Implement os.Pathlike for importlib.machinery

2017-02-04 Thread Brett Cannon
New submission from Brett Cannon: Various classes in importlib.machinery define a 'path' attribute which could also be exposed through the os.PathLike interface. -- components: Library (Lib) messages: 287037 nosy: brett.cannon priority: normal severity: normal status: open title:

[issue29447] Add os.PathLike support to the tempfile module

2017-02-04 Thread Brett Cannon
New submission from Brett Cannon: The various classes in the tempfile module could implement os.PathLike. -- components: Library (Lib) messages: 287036 nosy: brett.cannon priority: normal severity: normal status: open title: Add os.PathLike support to the tempfile module type:

[issue29428] Doctest documentation unclear about multi-line fixtures

2017-02-04 Thread Marco Buttu
Marco Buttu added the comment: > In parallel, I was thinking of some howto content that I would like to > see documented. Great :-) > How to decide what to test with doctests and what with unittests. > I have a feeling that the sweet spot of doctests is functionality > which you can invoke in

[issue29438] use after free in key sharing dict

2017-02-04 Thread INADA Naoki
Changes by INADA Naoki : -- keywords: +patch Added file: http://bugs.python.org/file46521/29438-sharedkey-useafterfree-py35.patch ___ Python tracker

[issue14965] super() and property inheritance behavior

2017-02-04 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29431] Add a PYTHONREVERSEDICTKEYORDER environment variable

2017-02-04 Thread INADA Naoki
INADA Naoki added the comment: see https://mail.python.org/pipermail/python-dev/2016-September/146348.html kwargs, __duct__, and namespace passed to metaclass are ordered by language design. order of other dicts are implementation detail. -- ___

[issue28489] Fix comment in tokenizer.c

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset bc2b2193520cea1adc44d27c9f7721fc6ad37293 by Berker Peksag in branch 'master': Issue #28489: Fix comment in tokenizer.c https://github.com/python/cpython/commit/bc2b2193520cea1adc44d27c9f7721fc6ad37293 New changeset

[issue28489] Fix comment in tokenizer.c

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset bc2b2193520cea1adc44d27c9f7721fc6ad37293 by Berker Peksag in branch '3.6': Issue #28489: Fix comment in tokenizer.c https://github.com/python/cpython/commit/bc2b2193520cea1adc44d27c9f7721fc6ad37293 --

[issue28489] Fix comment in tokenizer.c

2017-02-04 Thread Berker Peksag
Berker Peksag added the comment: I've applied Ryan's patch since it's been sitting in the 'commit review' queue. Thanks! -- nosy: +berker.peksag resolution: -> fixed stage: commit review -> resolved status: open -> closed type: -> behavior ___

[issue28164] _PyIO_get_console_type fails for various paths

2017-02-04 Thread Steve Dower
Steve Dower added the comment: Okay, seems like Windows 7 GetFullPathName on conin$ and conout$ returns the path appended to the current directory, and you need to specify the full name as "conin$" or "conout$" to access the console - otherwise you have a file by that name. We should include

[issue28489] Fix comment in tokenizer.c

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8b20ed083a94 by Berker Peksag in branch '3.6': Issue #28489: Fix comment in tokenizer.c https://hg.python.org/cpython/rev/8b20ed083a94 New changeset 72ec2c599301 by Berker Peksag in branch 'default': Issue #28489: Merge from 3.6

[issue29446] Improve tkinter 'import *' situation

2017-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is spun-off from #29162, which was about idlelib.pyshell depending on import * importing sys. 'wantobjects' does not have the same bug potential as stdlib imports. But, Serhiy, if you care about it or otherwise prefer __all__, __all__ = [name for

[issue28164] _PyIO_get_console_type fails for various paths

2017-02-04 Thread Steve Dower
Steve Dower added the comment: Looks like the "need to check Win7" part was actually important... there are buildbot failures from this. I *think* they only require test handling updates. -- ___ Python tracker

[issue29147] registry value to be cleared when python is uninstalled

2017-02-04 Thread Steve Dower
Steve Dower added the comment: Without logs showing what went wrong, there's nothing we can fix. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue29232] Quiet Install

2017-02-04 Thread Steve Dower
Steve Dower added the comment: I think there's something else going on with your install, as I do these frequently and they work fine (modulo issue25166). Can you grab all your log files from your %TEMP% directory and attach them here? I'm keen to see what the installer is trying to do vs.

[issue23462] All os.exec*e variants crash on Windows

2017-02-04 Thread Steve Dower
Steve Dower added the comment: It's straightforward to detect path->narrow == NULL and raise instead of crashing. We can also trivially check path->wide on Windows and raise with a more specific error. Given it's already fixed for 3.6.0 and there's only one more binary release for 3.5 (and

[issue29445] http.client: missing response headers when malformed header is part of the response

2017-02-04 Thread Guillaume Boudreau
Guillaume Boudreau added the comment: Yes, indeed. The latest patch in 24363 resolves this issue. Sorry for the duplicate. -- ___ Python tracker ___

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset baa426f44b86fb146dc17178f61b53ed5ffb08f0 by Steve Dower in branch '3.6': Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0]. https://github.com/python/cpython/commit/baa426f44b86fb146dc17178f61b53ed5ffb08f0 New changeset

[issue29392] msvcrt.locking crashes python

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset cb0c9718f7bd13df67b0d7df88b6f5b197ef05a7 by Steve Dower in branch 'master': Issue #29392: Prevent crash when passing invalid arguments into msvcrt module. https://github.com/python/cpython/commit/cb0c9718f7bd13df67b0d7df88b6f5b197ef05a7 New

[issue29392] msvcrt.locking crashes python

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset cb0c9718f7bd13df67b0d7df88b6f5b197ef05a7 by Steve Dower in branch '3.5': Issue #29392: Prevent crash when passing invalid arguments into msvcrt module. https://github.com/python/cpython/commit/cb0c9718f7bd13df67b0d7df88b6f5b197ef05a7 --

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset baa426f44b86fb146dc17178f61b53ed5ffb08f0 by Steve Dower in branch 'master': Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0]. https://github.com/python/cpython/commit/baa426f44b86fb146dc17178f61b53ed5ffb08f0 New changeset

[issue29392] msvcrt.locking crashes python

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset ed8b523b9f6495806a38262ca9d1676bf7d5e830 by Steve Dower in branch '3.6': Issue #29392: Prevent crash when passing invalid arguments into msvcrt module. https://github.com/python/cpython/commit/ed8b523b9f6495806a38262ca9d1676bf7d5e830 New

[issue28164] _PyIO_get_console_type fails for various paths

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 164fc49825081694c9c44c4a17c75b30c5ba8f51 by Steve Dower in branch '3.6': Issue #28164: Correctly handle special console filenames (patch by Eryk Sun) https://github.com/python/cpython/commit/164fc49825081694c9c44c4a17c75b30c5ba8f51 --

[issue28164] _PyIO_get_console_type fails for various paths

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 164fc49825081694c9c44c4a17c75b30c5ba8f51 by Steve Dower in branch 'master': Issue #28164: Correctly handle special console filenames (patch by Eryk Sun) https://github.com/python/cpython/commit/164fc49825081694c9c44c4a17c75b30c5ba8f51 New

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset baa426f44b86fb146dc17178f61b53ed5ffb08f0 by Steve Dower in branch '3.5': Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0]. https://github.com/python/cpython/commit/baa426f44b86fb146dc17178f61b53ed5ffb08f0 --

[issue29326] Blank lines in ._pth file are not ignored

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d90b135e36c5b2794a29f650ebebf8bbd96f3fb by Steve Dower in branch '3.6': Issue #29326: Ignores blank lines in ._pth files (Patch by Alexey Izbyshev) https://github.com/python/cpython/commit/6d90b135e36c5b2794a29f650ebebf8bbd96f3fb --

[issue29409] Implement PEP 529 for io.FileIO

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset fe7e868bad5bffaf863c80fa2bcc4e3bf87a413a by Steve Dower in branch '3.6': Issue #29409: Implement PEP 529 for io.FileIO (Patch by Eryk Sun) https://github.com/python/cpython/commit/fe7e868bad5bffaf863c80fa2bcc4e3bf87a413a --

[issue29326] Blank lines in ._pth file are not ignored

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d90b135e36c5b2794a29f650ebebf8bbd96f3fb by Steve Dower in branch 'master': Issue #29326: Ignores blank lines in ._pth files (Patch by Alexey Izbyshev) https://github.com/python/cpython/commit/6d90b135e36c5b2794a29f650ebebf8bbd96f3fb New

[issue29409] Implement PEP 529 for io.FileIO

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset fe7e868bad5bffaf863c80fa2bcc4e3bf87a413a by Steve Dower in branch 'master': Issue #29409: Implement PEP 529 for io.FileIO (Patch by Eryk Sun) https://github.com/python/cpython/commit/fe7e868bad5bffaf863c80fa2bcc4e3bf87a413a New changeset

[issue26876] Extend MSVCCompiler class to respect environment variables

2017-02-04 Thread Steve Dower
Steve Dower added the comment: Taking another look at the patch, I'm not real keen on the C/LDFLAGS section. I think if we want to support setting these, we should fully override the default settings (otherwise you can't specify certain options that are in the defaults), and avoid splitting

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-02-04 Thread Steve Dower
Steve Dower added the comment: That change fixes overwriting sys.path[0], the new logic is essentially: try: sys_path0 = sys.path[0] except: sys.path.append(argv0) else: if sys_path0: sys.path.insert(0, argv0) else: sys.path[0] = argv0 I'm leaving this open for

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset c6506f759db1 by Steve Dower in branch '3.5': Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0]. https://hg.python.org/cpython/rev/c6506f759db1 New changeset 0965e2967056 by Steve Dower in branch '3.6': Issue #29319: Prevent

[issue29326] Blank lines in ._pth file are not ignored

2017-02-04 Thread Steve Dower
Changes by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: needs patch -> resolved ___ Python tracker ___

[issue29326] Blank lines in ._pth file are not ignored

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 54fea351e3f9 by Steve Dower in branch '3.6': Issue #29326: Ignores blank lines in ._pth files (Patch by Alexey Izbyshev) https://hg.python.org/cpython/rev/54fea351e3f9 New changeset a0ff777ab153 by Steve Dower in branch 'default': Issue #29326:

[issue28164] _PyIO_get_console_type fails for various paths

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset ed0c05c739c9 by Steve Dower in branch '3.6': Issue #28164: Correctly handle special console filenames (patch by Eryk Sun) https://hg.python.org/cpython/rev/ed0c05c739c9 New changeset a5538734cc87 by Steve Dower in branch 'default': Merge issue

[issue29409] Implement PEP 529 for io.FileIO

2017-02-04 Thread Steve Dower
Steve Dower added the comment: Committed, but I'll leave this open for a bit in case anyone wants to comment on the commit. -- stage: patch review -> commit review ___ Python tracker

[issue29409] Implement PEP 529 for io.FileIO

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0bf72810f8ea by Steve Dower in branch '3.6': Issue #29409: Implement PEP 529 for io.FileIO (Patch by Eryk Sun) https://hg.python.org/cpython/rev/0bf72810f8ea New changeset a5538734cc87 by Steve Dower in branch 'default': Merge issue #28164 and

[issue29392] msvcrt.locking crashes python

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset f48bdcd02b57 by Steve Dower in branch '3.5': Issue #29392: Prevent crash when passing invalid arguments into msvcrt module. https://hg.python.org/cpython/rev/f48bdcd02b57 New changeset 15bbb18d87fd by Steve Dower in branch '3.6': Issue #29392:

[issue29392] msvcrt.locking crashes python

2017-02-04 Thread Steve Dower
Changes by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: needs patch -> resolved ___ Python tracker ___

[issue29416] Path.mkdir can get into a recursive error loop

2017-02-04 Thread Steve Dower
Changes by Steve Dower : -- assignee: -> steve.dower stage: needs patch -> commit review ___ Python tracker ___

[issue29416] Path.mkdir can get into a recursive error loop

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8061d0967988 by Steve Dower in branch '3.5': Issue #29416: Prevent infinite loop in pathlib.Path.mkdir https://hg.python.org/cpython/rev/8061d0967988 New changeset 3de58a54ed98 by Steve Dower in branch '3.6': Issue #29416: Prevent infinite loop in

[issue29416] Path.mkdir can get into a recursive error loop

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 661c40ba59855ebe4967424fcabd41be6f799137 by Steve Dower in branch '3.5': Issue #29416: Prevent infinite loop in pathlib.Path.mkdir https://github.com/python/cpython/commit/661c40ba59855ebe4967424fcabd41be6f799137 --

[issue29416] Path.mkdir can get into a recursive error loop

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 661c40ba59855ebe4967424fcabd41be6f799137 by Steve Dower in branch 'master': Issue #29416: Prevent infinite loop in pathlib.Path.mkdir https://github.com/python/cpython/commit/661c40ba59855ebe4967424fcabd41be6f799137 New changeset

[issue29416] Path.mkdir can get into a recursive error loop

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 661c40ba59855ebe4967424fcabd41be6f799137 by Steve Dower in branch '3.6': Issue #29416: Prevent infinite loop in pathlib.Path.mkdir https://github.com/python/cpython/commit/661c40ba59855ebe4967424fcabd41be6f799137 New changeset

[issue29409] Implement PEP 529 for io.FileIO

2017-02-04 Thread Steve Dower
Steve Dower added the comment: Merging this in now, along with a few other patches. This is the test I'm adding, in case anyone spots any problems with it before I push (copied from the test for pure-ASCII bytes): @unittest.skipIf(sys.getfilesystemencoding() != 'utf-8',

[issue29446] Improve tkinter 'import *' situation

2017-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is yet one name that doesn't make sense to import -- wantobjects. It can't be renamed. -- ___ Python tracker

[issue29446] Improve tkinter 'import *' situation

2017-02-04 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___

[issue29446] Improve tkinter 'import *' situation

2017-02-04 Thread Terry J. Reedy
New submission from Terry J. Reedy: Tkinter naming was designed so that 'from tkinter import *' can work, in the sense of not conflicting with built-in and stdlib module names. But there are currently two problems. 1. The current doc ...to use Tkinter all you need is a simple import

[issue29443] Re-running Windows installer should have option to set PATH

2017-02-04 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29443] Re-running Windows installer should have option to set PATH

2017-02-04 Thread Steve Dower
Steve Dower added the comment: I consider this another vote against putting the check box on the front page of the installer, rather than a positive vote for any particular change. There's no way to miss the screen with the real checkbox when you are modifying the install, and modifying PATH

[issue29428] Doctest documentation unclear about multi-line fixtures

2017-02-04 Thread Jim DeLaHunt
Jim DeLaHunt added the comment: Marco, thank you for the suggestion of a howto. That is a good idea. In parallel, I was thinking of some howto content that I would like to see documented. • How to decide what to test with doctests and what with unittests. I have a feeling that the sweet

[issue29444] Out-of-bounds buffer access in match_getslice_by_index

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 83d13325dec591676eeafb12a4caa01a67ef2f7e by Serhiy Storchaka in branch 'master': Issue #29444: Fixed out-of-bounds buffer access in the group() method of https://github.com/python/cpython/commit/83d13325dec591676eeafb12a4caa01a67ef2f7e New

[issue29444] Out-of-bounds buffer access in match_getslice_by_index

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 83d13325dec591676eeafb12a4caa01a67ef2f7e by Serhiy Storchaka in branch '3.6': Issue #29444: Fixed out-of-bounds buffer access in the group() method of https://github.com/python/cpython/commit/83d13325dec591676eeafb12a4caa01a67ef2f7e New changeset

[issue29444] Out-of-bounds buffer access in match_getslice_by_index

2017-02-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue29444] Out-of-bounds buffer access in match_getslice_by_index

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 83d13325dec591676eeafb12a4caa01a67ef2f7e by Serhiy Storchaka in branch '3.5': Issue #29444: Fixed out-of-bounds buffer access in the group() method of https://github.com/python/cpython/commit/83d13325dec591676eeafb12a4caa01a67ef2f7e --

[issue29445] http.client: missing response headers when malformed header is part of the response

2017-02-04 Thread R. David Murray
R. David Murray added the comment: This appears to be a duplicate of issue 24363. Does the patch there fix the problem for you? -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> httplib fails to handle semivalid HTTP headers

[issue29444] Out-of-bounds buffer access in match_getslice_by_index

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4e65d6c20dae by Serhiy Storchaka in branch '3.5': Issue #29444: Fixed out-of-bounds buffer access in the group() method of https://hg.python.org/cpython/rev/4e65d6c20dae New changeset 393969776989 by Serhiy Storchaka in branch '3.6': Issue #29444:

[issue18069] Subprocess searches special directories before PATH on Windows

2017-02-04 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue29431] Add a PYTHONREVERSEDICTKEYORDER environment variable

2017-02-04 Thread lamby
lamby added the comment: > ordering of namespace dict and kwargs dict are language spec for 3.6 Are they really _specced_ for 3.6? I was under the impression that it was just an implementation detail. -- ___ Python tracker

[issue29445] http.client: missing response headers when malformed header is part of the response

2017-02-04 Thread Guillaume Boudreau
New submission from Guillaume Boudreau: Tested using urllib3 1.20 ``` >>> import urllib3 >>> http = urllib3.PoolManager() >>> r = http.request('GET', >>> 'https://online.chasecanada.ca/ChaseCanada_Consumer/Login.do') >>> r.status 200 >>> r.headers HTTPHeaderDict({'Date': 'Sat, 04 Feb 2017

[issue29444] Out-of-bounds buffer access in match_getslice_by_index

2017-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, this is good reason. The patch LGTM. -- assignee: -> serhiy.storchaka stage: -> commit review versions: -Python 2.7 ___ Python tracker

[issue29444] Out-of-bounds buffer access in match_getslice_by_index

2017-02-04 Thread WGH
WGH added the comment: Python 2.7 (CPython and PyPy) and also PyPy's Python 3 adjust the indices, like my patch does, if that matters. -- ___ Python tracker

[issue29444] Out-of-bounds buffer access in match_getslice_by_index

2017-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your patch WGH. It is correct and fixes out-of-bounds buffer access. But I don't know what would be the better solution: silently adjust indices or raise RuntimeError? -- nosy: +serhiy.storchaka versions: +Python 2.7 -Python 3.3,

[issue29438] use after free in key sharing dict

2017-02-04 Thread INADA Naoki
INADA Naoki added the comment: It's similar to issue27945, but different. I confirmed this issue is in 3.4 too. https://github.com/python/cpython/blob/3.4/Objects/dictobject.c#L3798 // _PyObjectDict_SetItem() if ((tp->tp_flags & Py_TPFLAGS_HEAPTYPE) && (cached = CACHED_KEYS(tp))) {

[issue29438] use after free in key sharing dict

2017-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it related to issue27945? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue29438] use after free in key sharing dict

2017-02-04 Thread INADA Naoki
INADA Naoki added the comment: I can reproduce it on Python 3.5 with attached script. I think this bug is from Python 3.3, since key-sharing dict is implemented. "Trigger key sharing dict resize while callbacks (weakref or __del__) called from setitem" is step to reproduce. It's not easy to

[issue29387] Tabs vs spaces FAQ out of date

2017-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would add the exception type after testing all versions patched. -- ___ Python tracker ___

[issue29414] Change 'the for statement is such an iterator' in Tutorial

2017-02-04 Thread Marco Buttu
Marco Buttu added the comment: Even though the Terry suggestion is formally correct, we are just at the beginning of the tutorial, and unluckily the tuples have not been introduced yet. To avoid adding to much complication here, IMHO we can just left the preceding sentences as they are.

[issue29439] _decimal on Android requires linking with libm

2017-02-04 Thread Stefan Krah
Stefan Krah added the comment: Perhaps test_decimal should fail for CPython if _decimal can't be imported. All compilers that I tested seem to link fine without -lm in this case. -- ___ Python tracker

[issue29442] Use argparse and drop dirty optparse hacks in setup.py

2017-02-04 Thread Stefan Krah
Stefan Krah added the comment: I didn't look at this one, but some "hacks" are necessary in setup.py (example: usage of os.system() in some places). -- nosy: +skrah ___ Python tracker

[issue29387] Tabs vs spaces FAQ out of date

2017-02-04 Thread Marco Buttu
Marco Buttu added the comment: I think you are right about the TAB model (Parser/tokenizer.c:40 and Lib/tokenize.py:215), that is why the difference between the two cases. In any case, I am not sure whether expliciting the type of the exeption is the best choice. So, to me +1 to just change

[issue29438] SIGSEGV in PyObject_Malloc on python 3.6 and 3.7

2017-02-04 Thread Ned Deily
Changes by Ned Deily : -- keywords: +patch ___ Python tracker ___ ___ Python-bugs-list

[issue29438] SIGSEGV in PyObject_Malloc on python 3.6 and 3.7

2017-02-04 Thread Ned Deily
Changes by Ned Deily : -- keywords: +3.6regression -patch ___ Python tracker ___ ___

[issue29439] _decimal on Android requires linking with libm

2017-02-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: > This wasn't fixed because _decimal didn't build before issue26846 lands. This is misleading, the problem went unnoticed when not linking with '-lm' because: * The _decimal extension module builds without any warning. * test_decimal does not fail. One way to

[issue29444] Out-of-bounds buffer access in match_getslice_by_index

2017-02-04 Thread WGH
Changes by WGH : -- keywords: +patch Added file: http://bugs.python.org/file46518/match_getslice_by_index.patch ___ Python tracker ___

[issue29444] Out-of-bounds buffer access in match_getslice_by_index

2017-02-04 Thread WGH
New submission from WGH: In [1]: import re In [2]: b = bytearray(b'A'*100) In [3]: m = re.search(b'A*', b) In [4]: m.group() Out[4]: b'' In [5]: del b[:] In [6]: m.group() Out[6]:

[issue29428] Doctest documentation unclear about multi-line fixtures

2017-02-04 Thread Marco Buttu
Marco Buttu added the comment: IMO if you would like to apply big changes to the current doc, as you wrote before, maybe is worth considering to propose a separate howto, instead of wide changes to the current page. I am suggesting this to you, because looking at the other modules of the

[issue29443] Re-running Windows installer should have option to set PATH

2017-02-04 Thread Dave Brondsema
Dave Brondsema added the comment: Yes, exactly. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29440] _dbm requires -lgdbm if gdbm is built as static libraries

2017-02-04 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Sorry, -lgdbm should come after -lgdbm_compat, or symbols in libgdbm.a are still not resolved. I don't know why - linking is a magic :( -- Added file: http://bugs.python.org/file46517/gdbm.patch ___ Python tracker

[issue29443] Re-running Windows installer should have option to set PATH

2017-02-04 Thread Eryk Sun
Eryk Sun added the comment: The user is presented with 3 buttons: Back, Next, and Cancel. The "Next" button is the only way forward to modify the installation. Did you assume "Next" would start the modification rather than take you to another dialog with options? How about if it had a more

[issue29443] Re-running Windows installer should have option to set PATH

2017-02-04 Thread Dave Brondsema
Dave Brondsema added the comment: A colleague has pointed out to me that this is available in the 2nd step within "Modify". I didn't realize there were more options after the first "Modify" screen. So perhaps the UI could be improved, but the functionality is there. --

[issue29443] Re-running Windows installer should have option to set PATH

2017-02-04 Thread Dave Brondsema
New submission from Dave Brondsema: If you miss the checkbox to set the "PATH" when installing Python for the first time, there isn't any easy way to set it again. (And for new programmers, having it set automatically is extremely useful). Uninstalling and re-installing does work to get

[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2017-02-04 Thread Eryk Sun
Eryk Sun added the comment: The Unix implementation of subprocess.Popen follows the behavior of os.execvpe, which is an outlier. Other execvpe implementations, such as the one added to glibc in 2009, search PATH in the current environment instead of the passed environment. As such, and given

[issue29438] SIGSEGV in PyObject_Malloc on python 3.6 and 3.7

2017-02-04 Thread STINNER Victor
STINNER Victor added the comment: Please update the issue title. -- ___ Python tracker ___ ___

[issue29347] Python could crash while creating weakref for a given object

2017-02-04 Thread Saida Dhanavath
Saida Dhanavath added the comment: Xiang, Sure, I will run it with other python versions and post the results. -- ___ Python tracker ___

[issue29347] Python could crash while creating weakref for a given object

2017-02-04 Thread Xiang Zhang
Xiang Zhang added the comment: Saida, I changed your test program to use set instead of self created type (see attachment). I tested it under Py2.7 and it seems no crash happens. python test.py 1 1 2.7.10 (default, Oct 14 2015, 16:09:02) [GCC 5.2.1 20151010] 0x101010101010101 0x1010101010101

[issue29439] _decimal on Android requires linking with libm

2017-02-04 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.6 ___ Python tracker

[issue29439] _decimal on Android requires linking with libm

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa26a5712a80849e968171b71b6bc8d9da3ac163 by Stefan Krah in branch 'master': Issue29439: _decimal on Android requires linking with libm. https://github.com/python/cpython/commit/aa26a5712a80849e968171b71b6bc8d9da3ac163 --

[issue29439] _decimal on Android requires linking with libm

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa26a5712a80849e968171b71b6bc8d9da3ac163 by Stefan Krah in branch '3.6': Issue29439: _decimal on Android requires linking with libm. https://github.com/python/cpython/commit/aa26a5712a80849e968171b71b6bc8d9da3ac163 --

[issue29439] _decimal on Android requires linking with libm

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset b60b46ad8751 by Stefan Krah in branch '3.6': Issue29439: _decimal on Android requires linking with libm. https://hg.python.org/cpython/rev/b60b46ad8751 -- nosy: +python-dev ___ Python tracker

[issue29439] _decimal on Android requires linking with libm

2017-02-04 Thread Stefan Krah
Stefan Krah added the comment: Thanks. Strange that on other systems the compilers don't complain (usually they do). -- assignee: -> skrah ___ Python tracker

[issue29414] Change 'the for statement is such an iterator' in Tutorial

2017-02-04 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Agreed. The issue I see with the additional suggestions by you and Marco (p.s the English was perfect!) is the introduction of other functions and/or objects that haven't been introduced yet. If you want to draw parallels with tuples, you'll need to

[issue29431] Add a PYTHONREVERSEDICTKEYORDER environment variable

2017-02-04 Thread INADA Naoki
INADA Naoki added the comment: At least, ordering of namespace dict and kwargs dict are language spec for 3.6. This option breaks it. When this option is set, CPython 3.6 is not Python 3.6. -- ___ Python tracker

[issue24905] Allow incremental I/O to blobs in sqlite3

2017-02-04 Thread Aviv Palivoda
Aviv Palivoda added the comment: Pinging again. I think this would be a great enhancement to the sqlite module. -- ___ Python tracker ___

[issue29347] Python could crash while creating weakref for a given object

2017-02-04 Thread Xiang Zhang
Xiang Zhang added the comment: But your weakref_crash.c doesn't look correct to me. Your test.object type doesn't support weak references at all. How could you use GET_WEAKREFS_LISTPTR then? See https://docs.python.org/3/extending/newtypes.html#weakref-support. --

[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset b0ef37ec83f337b4b77275b367288a5656a0682c by Serhiy Storchaka in branch 'master': Issue #20186: Converted the symtable module to Argument Clinic. https://github.com/python/cpython/commit/b0ef37ec83f337b4b77275b367288a5656a0682c New changeset

[issue8557] subprocess PATH semantics and portability

2017-02-04 Thread Eryk Sun
Changes by Eryk Sun : -- versions: +Python 3.5, Python 3.6, Python 3.7 -Python 2.6, Python 3.1, Python 3.2 ___ Python tracker ___

[issue15451] PATH is not honored in subprocess.Popen in win32

2017-02-04 Thread Eryk Sun
Eryk Sun added the comment: Sure, let's close this in favor of the older documentation issue 8557. -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> subprocess PATH semantics and portability ___ Python

  1   2   >