[issue29438] SIGSEGV in PyObject_Malloc on python 3.6 and 3.7

2017-02-03 Thread INADA Naoki
INADA Naoki added the comment: valgrind output is here. https://gist.github.com/methane/3c010daba71a374fd0b6a41a0d98e3ff It seems another bug relating to key-sharing dict... -- nosy: +inada.naoki ___ Python tracker

[issue13196] subprocess: undocumented if shell=True is necessary to find executable in Windows PATH

2017-02-03 Thread Martin Panter
Martin Panter added the comment: It is hard to make sense of this without decoding your URLs, downloading the repository and finding the relevant commit. Anyway, what you have posted sounds like a duplicate of Issue 8557. -- nosy: +martin.panter resolution: -> duplicate stage: ->

[issue29405] improve csv.Sniffer().sniff() behavior

2017-02-03 Thread Xiang Zhang
Changes by Xiang Zhang : -- stage: patch review -> commit review ___ Python tracker ___ ___

[issue29405] improve csv.Sniffer().sniff() behavior

2017-02-03 Thread Milt Epstein
Milt Epstein added the comment: That's right, with 11 lines in the sample data, total will become 20 on the second iteration. And that throws off some of the computations done in that function. Your patch looks good, in that it will achieve what I'm requesting. But :-), your pointing out

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

2017-02-03 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: The change is clear and self-explained. See the patch. Motivations: 1. The hack "To prevent optparse from raising an exception..." works for single letter flags (-I, -L, etc.) only. I plan to add --sysroot related codes for Android builds and I don't want

[issue18069] Subprocess searches special directories before PATH on Windows

2017-02-03 Thread Martin Panter
Changes by Martin Panter : -- title: Subprocess picks the wrong executable on Windows -> Subprocess searches special directories before PATH on Windows ___ Python tracker

[issue29411] Option --executable for entry_points

2017-02-03 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, Michal. Note that both [1] and [2] point to the same patch. Perhaps you meant to paste a link to a separate patch for distutils? (I removed 3.3 and 3.4 from the versions field since they are in security-fix-only mode now. I don't know

[issue29198] AsyncGenerator is missing from typing

2017-02-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7fd9559c9c97fcf0519ace33b9d76a81ae156523 by Berker Peksag in branch '3.5': Issue #29198: Document typing.AsyncGenerator https://github.com/python/cpython/commit/7fd9559c9c97fcf0519ace33b9d76a81ae156523 New changeset

[issue29311] Argument Clinic: convert dict methods

2017-02-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7baf0a0b90da5bb0b1ed5d27374f5a6b1c7b5dae by Serhiy Storchaka in branch 'master': Issue #29311: Regenerate Argument Clinic. https://github.com/python/cpython/commit/7baf0a0b90da5bb0b1ed5d27374f5a6b1c7b5dae --

[issue29198] AsyncGenerator is missing from typing

2017-02-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7fd9559c9c97fcf0519ace33b9d76a81ae156523 by Berker Peksag in branch '3.6': Issue #29198: Document typing.AsyncGenerator https://github.com/python/cpython/commit/7fd9559c9c97fcf0519ace33b9d76a81ae156523 New changeset

[issue29198] AsyncGenerator is missing from typing

2017-02-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7fd9559c9c97fcf0519ace33b9d76a81ae156523 by Berker Peksag in branch 'master': Issue #29198: Document typing.AsyncGenerator https://github.com/python/cpython/commit/7fd9559c9c97fcf0519ace33b9d76a81ae156523 New changeset

[issue29198] AsyncGenerator is missing from typing

2017-02-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset d7eb9526c4f4 by Berker Peksag in branch '3.5': Issue #29198: Fix indentation and markup in typing.rst https://hg.python.org/cpython/rev/d7eb9526c4f4 New changeset f49b6c35d1e3 by Berker Peksag in branch '3.6': Issue #29198: Merge from 3.5

[issue29198] AsyncGenerator is missing from typing

2017-02-03 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patches, Jelle :) -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed type: -> enhancement versions: +Python 3.5 ___ Python tracker

[issue27867] various issues due to misuse of PySlice_GetIndicesEx

2017-02-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file46510/PySlice_GetIndicesEx-silence-warnings.patch ___ Python tracker

[issue29198] AsyncGenerator is missing from typing

2017-02-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset fe29826af634 by Berker Peksag in branch '3.5': Issue #29198: Document typing.AsyncGenerator https://hg.python.org/cpython/rev/fe29826af634 New changeset b475b076cc1f by Berker Peksag in branch '3.6': Issue #29198: Merge from 3.5

[issue29405] improve csv.Sniffer().sniff() behavior

2017-02-03 Thread Xiang Zhang
Xiang Zhang added the comment: Sounds reasonable. IIUC if the sample data gets 11 lines the total could be 20. I also think the second min is redundant. Would you mind review my patch Milt? -- keywords: +patch stage: -> patch review type: behavior -> enhancement versions: +Python 3.7

[issue29311] Argument Clinic: convert dict methods

2017-02-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 222b9392a83b by Serhiy Storchaka in branch 'default': Issue #29311: Regenerate Argument Clinic. https://hg.python.org/cpython/rev/222b9392a83b -- ___ Python tracker

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

2017-02-03 Thread Berker Peksag
New submission from Berker Peksag: Attached patch converts all examples that use @coroutine decorator in Doc/library/asyncio-task.rst. I also removed the generator example at https://docs.python.org/3/library/asyncio-task.html#example-coroutine-displaying-the-current-date See issue 29407 for

[issue27867] various issues due to misuse of PySlice_GetIndicesEx

2017-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good point Martin. I missed this because warnings are not emitted in non-debug build and were emitted only once in incremental debug build. Your idea about initializing slicelength in a macro LGTM. -- ___ Python

[issue29430] zipfile: invalid link

2017-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: https://support.pkware.com/display/PKZIP/Application+Note+Archives contains links to old versions of APPNOTE (the last is 6.3.3). But the actual version was at least 6.3.4 (I have a local copy). All external links refer to

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

2017-02-03 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Add the developer who wrote this line (issue15044) -- nosy: +ncoghlan ___ Python tracker ___

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

2017-02-03 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: In setup.py, _dbm links to gdbm_compat only. If gdbm is built as dynamic libraries, libgdbm_compat.so has a NEEDED flag for libgdbm.so, so both symbols in libgdbm and libgdbm_compat can be used. However, as static libraries does not provide such a flag,

[issue29439] _decimal on Android requires linking with libm

2017-02-03 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: Just like issue21668, _decimal requires -lm on Android. This wasn't fixed because _decimal didn't build before issue26846 lands. More specificially, log10 is called https://hg.python.org/cpython/file/tip/Modules/_decimal/libmpdec/mpdecimal.c#l7862 Added

[issue29430] zipfile: invalid link

2017-02-03 Thread Berker Peksag
Berker Peksag added the comment: > "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;> I think that HTML output suggests that their server configuration is broken. If you look at further down the page there is this error message: Something has triggered missing webpage on your website.

[issue29438] SIGSEGV in PyObject_Malloc on python 3.6 and 3.7

2017-02-03 Thread Xiang Zhang
Xiang Zhang added the comment: I could reproduce this using Audric's command. And yes, debug build doesn't suffer from this crash. Nosy Victor. DEBUG:root:Called with: ['/tmp/minimal_crash.py', '-d', 'sqlite:///crash.db', '-v'] INFO:__main__:Connecting to DB 'sqlite:///crash.db'

[issue27867] various issues due to misuse of PySlice_GetIndicesEx

2017-02-03 Thread Martin Panter
Martin Panter added the comment: Not a big deal, but the change produces compiler warnings with GCC 6.1.1: /home/proj/python/cpython/Objects/bytesobject.c: In function ‘bytes_subscript’: /home/proj/python/cpython/Objects/bytesobject.c:1701:13: warning: ‘slicelength’ may be used uninitialized

[issue29438] SIGSEGV in PyObject_Malloc on python 3.6 and 3.7

2017-02-03 Thread Audric Schiltknecht
New submission from Audric Schiltknecht: I've managed to create a minimal test file that causes python to crashe when run with python 3.6.0 (packaged in my distribution or from hg repository), 3.6 branch from hg repository and 3.7 branch from hg repository, but works fine on 3.5.3 and 3.5

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

2017-02-03 Thread Eryk Sun
Eryk Sun added the comment: > difference from the behaviour of Posix's execvpe() was deliberate POSIX doesn't define execvpe [1]. GNU glibc implemented it in 2009 [2]. On Windows, MSC has had execvpe and spawnvpe since at least 5.0 [3], and I think it arrived in 4.0 in 1986. Guido added

[issue29430] zipfile: invalid link

2017-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The Applicaton Note link in both the doc and here work for me with Firefox and Edge. ''' http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;> http://www.w3.org/1999/xhtml; xml:lang="en"> ...''' You must have been hit by a temporary glitch. -- nosy:

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

2017-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The preceding sentences are also off. "In many ways the object returned by range() behaves as if it is a list, but in fact it isn’t. It is an object which returns the successive items of the desired sequence when you iterate over it, but it doesn’t really

[issue27051] Create PIP gui

2017-02-03 Thread Upendra Kumar
Upendra Kumar added the comment: I have tried to inquire about the possibility of a pip API, however currently it doesn't seem that it is top priority for pip organisation as per these issue threads : 1. https://github.com/pypa/pip/issues/924 2. https://github.com/pypa/pip/issues/3999

[issue29400] Add instruction level tracing via sys.settrace

2017-02-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed title: Instruction level tracing via sys.settrace -> Add instruction level tracing via sys.settrace versions: +Python 3.7 -Python 3.6 ___ Python tracker

[issue29394] Cannot tunnel TLS connection through TLS connection

2017-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Maximilian, I could not tell if you are still requesting that something be changed, or if this should be closed. -- nosy: +terry.reedy ___ Python tracker

[issue29387] Tabs vs spaces FAQ out of date

2017-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with Marco in that I do not understand the 'should'. Py 3 has a definite rule for when it raises. (I don't remember the exact details as I don't use tabs.) "Python raises xxxError if one mixes tabs and spaces in the same file." (Or whatever the

[issue27051] Create PIP gui

2017-02-03 Thread Upendra Kumar
Upendra Kumar added the comment: @Terry, I believe pip package doesn't solve the core purpose of GUI. Instead of that I should make a .deb, .rpm or .exe package so that beginners can directly install it. However, I will create the PyPI package by 10th Feb. --

[issue27051] Create PIP gui

2017-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: As far as I am concerned, this upload fulfills your obligation to CPython and PSF with respect to sponsoring your GSOC project. I wanted to get at least this loose end completed. I have no further expectation of you. I would *like* for you to make this pip

[issue29395] Edit with IDLE 3.6 don´t work if Name of File "code.py"

2017-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steve is correct. lib/code.py is used for IDLE's Shell. One should generally avoid naming files the same as stdlib files. To do so, one can either look in the module index of the docs or try 'import somename'. When Python starts, it imports the modules it

[issue25488] IDLE: Remove '', user_dir, and idlelib from sys.path when added

2017-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The sys.pyth manipulation will be different in the idle and user processes. If IDLE is started with -n, so both processes are the same, even more care is needed. -- ___ Python tracker

[issue25488] IDLE: Remove '', user_dir, and idlelib from sys.path when added

2017-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should have said that the problem with having '' at the beginning of the path is that when IDLE tries to import an stdlib module and '' (usually a user directory) contain a file with the same name, IDLE will import the user file instead and at some point

[issue29428] Doctest documentation unclear about multi-line fixtures

2017-02-03 Thread Jim DeLaHunt
Jim DeLaHunt added the comment: Marco and David, thank you again for your prompt replies. Let me respond to both of your comments on the doctest module documentation itself. [Marco] > The example in section 26.3.3.2 [1], before the compound statement (the if/else), contains two simple

[issue27435] ctypes library loading and AIX - also for 2.7.X (and later)

2017-02-03 Thread Michael Felt
Michael Felt added the comment: On 31/01/2017 20:22, Michael Haubenwallner wrote: > Michael Haubenwallner added the comment: > > Feels like it is up to me to shed some light on various topics here: Many thanks! > > AIX defines (static) "Object" files and "Shared Object" files. Both can (but >

[issue29431] Add a PYTHONREVERSEDICTKEYORDER environment variable

2017-02-03 Thread R. David Murray
R. David Murray added the comment: But that reliance/reproducibility-error would be an issue only on interpreters that don't preserve insertion order, and we're expecting we'll make that a language requirement. So for now, or for as long as you think it is warranted, just test against

[issue18859] README.valgrind should mention --with-valgrind

2017-02-03 Thread Łukasz Langa
Changes by Łukasz Langa : -- assignee: -> lukasz.langa nosy: +lukasz.langa ___ Python tracker ___

[issue26876] Extend MSVCCompiler class to respect environment variables

2017-02-03 Thread Rohit Jamuar
Rohit Jamuar added the comment: Steve, I've limited the changes to _msvccompiler for the master-branch's patch. Is it alright? -- ___ Python tracker ___

[issue29431] Add a PYTHONREVERSEDICTKEYORDER environment variable

2017-02-03 Thread lamby
lamby added the comment: I think we are misunderstanding each other regarding our goals here :) I'm not trying to test against other Python implementations or versions of CPython itself but rather "flush out" reproducibility issues in third-party Python code that (incorrectly) relies on dict

[issue29428] Doctest documentation unclear about multi-line fixtures

2017-02-03 Thread Jim DeLaHunt
Jim DeLaHunt added the comment: Marco, thank you for the suggestion to watch Raymond Hettinger's talk. > I suggest you to watch this talk of Raymond Hettinger, before going on: > > https://www.youtube.com/watch?v=voXVTjwnn-U That video is 63 minutes long, and a lot of those minutes are taken

[issue29428] Doctest documentation unclear about multi-line fixtures

2017-02-03 Thread Jim DeLaHunt
Jim DeLaHunt added the comment: Marco, thank you for your prompt comment. However, > Maybe you are running the doctest with Python 3. The StringIO module is no > more available in Python 3, so your doctest will fail on Python 3 Please let me be clear. This issue is not about the

[issue29395] Edit with IDLE 3.6 don´t work if Name of File "code.py"

2017-02-03 Thread Steve Dower
Steve Dower added the comment: I assume this is because Idle is doing "import code" somewhere and picking up your file instead of the real one. Renaming the file to not conflict with the standard library is an immediate workaround, but perhaps Idle should do some sys.path protection around

[issue26855] android: add platform.android_ver()

2017-02-03 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- assignee: xdegaye -> ___ Python tracker ___ ___

[issue27640] add the '--disable-test-suite' option to configure

2017-02-03 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- assignee: xdegaye -> ___ Python tracker ___ ___

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-02-03 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- assignee: xdegaye -> ___ Python tracker ___ ___

[issue29185] test_distutils fails on Android API level 24

2017-02-03 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- assignee: xdegaye -> ___ Python tracker ___ ___

[issue29184] skip tests of test_socketserver when bind() raises PermissionError (non-root user on Android)

2017-02-03 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- assignee: xdegaye -> ___ Python tracker ___ ___

[issue29181] skip tests that raise PermissionError in test_tarfile (non-root user on Android)

2017-02-03 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- assignee: xdegaye -> ___ Python tracker ___ ___

[issue29180] skip tests that raise PermissionError in test_os (non-root user on Android)

2017-02-03 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- assignee: xdegaye -> ___ Python tracker ___ ___

[issue28833] cross compilation of third-party extension modules

2017-02-03 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- assignee: xdegaye -> ___ Python tracker ___ ___

[issue29437] installation not listed for all users

2017-02-03 Thread Steve Dower
Steve Dower added the comment: Thanks, this is the same as issue25166. In short, we need a significant update to the WiX framework before this can be enabled, and so far the core WiX developers are not interested in doing it. I've been working on a patch, but it's actually fairly complicated

[issue29434] tuple.__repr__ may segv when it contains NULL

2017-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks similar to issue26811. I think that if the reproducer is found it would be better to fix the case of leaking a tuple containing NULL rather than making repr() be aware of NULLs. repr() is not the only way to crash with such tuples. --

[issue29437] installation not listed for all users

2017-02-03 Thread Mike
New submission from Mike: When installing Python 3.6 using the official installer and selecting "install for all users" from an account with admin privileges, the installation completes successfully and it shows in the list of installed programs for that user. However, because it's

[issue29431] Add a PYTHONREVERSEDICTKEYORDER environment variable

2017-02-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with David and Inada on this one (it is likely to become a wasted effort and it impacts maintainability to try to support this even for the short run). -- nosy: +rhettinger resolution: -> rejected stage: -> resolved status: open ->

[issue29436] Compilation failure against Android NDK r14 beta 2

2017-02-03 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Here's a copy of $ANDROID_NDK/sysroot/usr/include/langinfo.h. (/sysroot/ stores unified headers [1]) To use those headers correctly, packagers have to add -D__ANDROID_API__=XY to CPPFLAGS. On the other hand, __ANDROID_API_FUTURE__ is defined in

[issue29405] improve csv.Sniffer().sniff() behavior

2017-02-03 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list

[issue29436] Compilation failure against Android NDK r14 beta 2

2017-02-03 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: Since Android NDK r14 beta 2, unified headers provide langinfo.h but there's no nl_langinfo() in it, causing linking failures: libpython3.7m.a(pylifecycle.o): In function `get_locale_encoding':

[issue29433] any, all and sum should accept variadic args

2017-02-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Do you think I should send a mail to the ideas list? Personally, I don't think so. You want to write any(a, b, c, d), but you can get the same effect now by writing any([a, b, c, d]). There is unlikely to be any significant performance difference.

[issue29423] using concurrent.futures.ProcessPoolExecutor in class giving 'TypeError: can't pickle _thread.RLock objects' in 3.6, but not 3.5

2017-02-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29423] using concurrent.futures.ProcessPoolExecutor in class giving 'TypeError: can't pickle _thread.RLock objects' in 3.6, but not 3.5

2017-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Josh> There is nothing to fix behaviorally on Python's side ... Serhiy> I concur with Josh This implies to me that we should close this as 'not a bug', with possibly a new issue for better error reporting. --

[issue29433] any, all and sum should accept variadic args

2017-02-03 Thread sedrubal
sedrubal added the comment: Thanks for your answers and for showing the issue with sum. I think this would make python just a bit more sexier as it already is ;) Are there any other disadvantages (performance, ...)? Do you think I should send a mail to the ideas list? --

[issue29347] Python 2.7.8 is crashing while creating weakref for a given object.

2017-02-03 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang versions: -Python 3.3, Python 3.4 ___ Python tracker ___

[issue29376] threading._DummyThread.__repr__ raises AssertionError

2017-02-03 Thread Xiang Zhang
Xiang Zhang added the comment: This seems an regression from #18808, so nosy Tim and Antoine. Since _DummyThread is always alive and daemonic, I think the solution could be overriding is_alive in _DummyThread and always returning True. -- keywords: +patch nosy: +xiang.zhang stage: ->

[issue29376] threading._DummyThread.__repr__ raises AssertionError

2017-02-03 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +pitrou, tim.peters ___ Python tracker ___ ___

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

2017-02-03 Thread Anthony Scopatz
Changes by Anthony Scopatz : -- nosy: +Anthony Scopatz versions: +Python 3.6 ___ Python tracker ___

[issue29431] Add a PYTHONREVERSEDICTKEYORDER environment variable

2017-02-03 Thread R. David Murray
R. David Murray added the comment: Inada: we haven't 100% decided that this is going to become a language feature. However it is likely to become so, so adding such a flag is probably wasted effort. Further, if the goal is to test compatibility with other python implementations, shouldn't

[issue29428] Doctest documentation unclear about multi-line fixtures

2017-02-03 Thread R. David Murray
R. David Murray added the comment: And thanks for wanting to improve the docs! -- ___ Python tracker ___ ___

[issue29428] Doctest documentation unclear about multi-line fixtures

2017-02-03 Thread R. David Murray
R. David Murray added the comment: It does appear that "test" is being used ambiguously in the docs. In most places it means a single statement, but in execution context it appears to be being used as a synonym for "docstring". In that section it should be replaced by "docstring". It would

[issue29435] Allow to pass fileobj to is_tarfile

2017-02-03 Thread Thom Wiggers
New submission from Thom Wiggers: The tarfile.is_tarfile() function only supports opening from paths. However, the `Tarfile` class also supports opening from `fileobj`s. It would be useful if the is_tarfile function would also accept those. For reference, this is the current implementation:

[issue29423] using concurrent.futures.ProcessPoolExecutor in class giving 'TypeError: can't pickle _thread.RLock objects' in 3.6, but not 3.5

2017-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was backported but later reverted (54dd5c105334). I concur with Josh. Thank you for good analysis Josh. As for your idea about more detailed error reporting, I think it can be implemented. Separate exception can be raised for every object in the chain,

[issue29412] IndexError thrown on email.message.Message.get

2017-02-03 Thread R. David Murray
R. David Murray added the comment: I'm really short on time to even review patches these days, but I'll see if I can pry any loose if someone wants to propose a patch. -- versions: +Python 3.6, Python 3.7 ___ Python tracker

[issue29423] using concurrent.futures.ProcessPoolExecutor in class giving 'TypeError: can't pickle _thread.RLock objects' in 3.6, but not 3.5

2017-02-03 Thread R. David Murray
R. David Murray added the comment: Oh, I take it back, it looks like the change was backported. I think that's bad, but I wasn't involved in the decision :( -- ___ Python tracker

[issue29423] using concurrent.futures.ProcessPoolExecutor in class giving 'TypeError: can't pickle _thread.RLock objects' in 3.6, but not 3.5

2017-02-03 Thread R. David Murray
R. David Murray added the comment: See the issue I linked to. RLocks were incorrectly pickled before but the resulting unpickled object was broken. If the unpickled RLock never got used such code would not break, but the objects were inherently broken and this could lead to hard to debug

[issue29433] any, all and sum should accept variadic args

2017-02-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: Serhiy, that doesn't generalise to code like: any(a, b, c, *extras) which is hard to write out by hand. You would have to say bool(a or b or c or any(extras)) I think this might be worth considering on Python-Ideas. It will probably be rejected,

[issue29378] Invalid example in documentation for PyErr_Fetch

2017-02-03 Thread Xiang Zhang
Xiang Zhang added the comment: I can't see any problem with the example either. So I just close this issue for now. But if you still think it gets problems please reopen it and tell your thoughts. -- nosy: +xiang.zhang resolution: -> not a bug stage: -> resolved status: open ->

[issue29434] tuple.__repr__ may segv when it contains NULL

2017-02-03 Thread INADA Naoki
INADA Naoki added the comment: The patch missed `continue;`. And I couldn't reproduce the problem for now. I'll reopen when I can reproduce the problem. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue29434] tuple.__repr__ may segv when it contains NULL

2017-02-03 Thread INADA Naoki
New submission from INADA Naoki: sys.getobjects() contains tuples including NULLs. Even without pydebug, tuple under construction can be exposed accidentally. Allowing repr() for such tuples ease investigating what is the tuple. -- components: Interpreter Core files:

[issue29433] any, all and sum should accept variadic args

2017-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no such need. You can use operators. any(arg1, arg2, arg3) -> arg1 or arg2 or arg3 all(arg1, arg2, arg3) -> arg1 and arg2 and arg3 sum(arg1, arg2, arg3) -> arg1 + arg2 + arg3 -- nosy: +serhiy.storchaka resolution: -> rejected stage: ->

[issue29433] any, all and sum should accept variadic args

2017-02-03 Thread sedrubal
New submission from sedrubal: any, all and sum (and maybe some other functions) should accept variadic args. It should be possible to do things like this: >>> any(True, False, True) True >>> all(True, False, True) False >>> sum(1, 2, 3) 6 This was compliant to max and min behaviour: >>>

[issue29432] wait_for(gather(...)) logs weird error message

2017-02-03 Thread Martin Teichmann
New submission from Martin Teichmann: when waiting for a gather that times out, everything works as expected, yet a weird error message is logged. To give a minimal example: import asyncio @asyncio.coroutine def main(): try: sleep = asyncio.sleep(0.2)

[issue29432] wait_for(gather(...)) logs weird error message

2017-02-03 Thread Martin Teichmann
Changes by Martin Teichmann : -- type: -> behavior ___ Python tracker ___ ___

[issue27051] Create PIP gui

2017-02-03 Thread Upendra Kumar
Upendra Kumar added the comment: @Terry, The attached files contain the master branch of the pip_gui. It contains all the work done by me till now in pip_gui. If this projects need to be continued as open source project, is it expected to be continued as independent project, or CPython

[issue29429] Requests package is incompatible with py2exe

2017-02-03 Thread INADA Naoki
INADA Naoki added the comment: Here is issue tracker of Python. py2exe and requests are third party project. Please report an issue to py2exe issue tracker. -- nosy: +inada.naoki resolution: -> third party stage: -> resolved status: open -> closed

[issue29431] Add a PYTHONREVERSEDICTKEYORDER environment variable

2017-02-03 Thread INADA Naoki
INADA Naoki added the comment: For checking compatibility with other implementation, I want to wait until other implementation compatible with 3.6+ which doesn't keep insertion order of dict. For now, there are no 3.6+ compatible Python implementation except CPython. For checking compatibility

[issue29387] Tabs vs spaces FAQ out of date

2017-02-03 Thread Xiang Zhang
Xiang Zhang added the comment: LGTM. -t is not removed but only ignored in Py3 for backwards compatibility. And I am fine with the wording. -- nosy: +xiang.zhang ___ Python tracker

[issue29431] Add a PYTHONREVERSEDICTKEYORDER environment variable

2017-02-03 Thread lamby
lamby added the comment: > If the package produce same binary when dict keeps insertion order, > isn't it a "reproducible build"? No, as that's a CPython-specific (and 3.6+) implementation detail. Hence "forcing" a test for it :) -- ___ Python

[issue29431] Add a PYTHONREVERSEDICTKEYORDER environment variable

2017-02-03 Thread INADA Naoki
INADA Naoki added the comment: I can't understand what is the problem. If the package produce same binary when dict keeps insertion order, isn't it a "reproducible build"? -- ___ Python tracker

[issue29431] Add a PYTHONREVERSEDICTKEYORDER environment variable

2017-02-03 Thread lamby
lamby added the comment: > Why don't you use OrderdDict and reversed()? This isn't for my own code; I want to change the behaviour of CPython itself so it affects arbitrary third-party code - this is what we are testing when we are testing for reproducibility :) --

[issue29431] Add a PYTHONREVERSEDICTKEYORDER environment variable

2017-02-03 Thread INADA Naoki
INADA Naoki added the comment: Why don't you use OrderdDict and reversed()? -- nosy: +inada.naoki ___ Python tracker ___

[issue29431] Add a PYTHONREVERSEDICTKEYORDER environment variable

2017-02-03 Thread lamby
New submission from lamby: Due to implementation changes, since CPython 3.6 dict keys are returned in insertion order. However, in order to test for reproducible builds [0], it would be convenient to be able to reverse this ordering; we would then run a build of an arbitrary package both with

[issue29428] Doctest documentation unclear about multi-line fixtures

2017-02-03 Thread Marco Buttu
Marco Buttu added the comment: > I just had a problem with doctests. It manifested as an > error that occurred when I did > >>> import StringIO in my doctest. Maybe you are running the doctest with Python 3. The StringIO module is no more available in Python 3, so your doctest will fail on

[issue29430] zipfile: invalid link

2017-02-03 Thread Lucas Moeskops
New submission from Lucas Moeskops: The ZipFile documentation shows a link to the PKZip Application Node. This link, with address "https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT; goes to a "Page Not Found" document. -- messages: 286847 nosy: lucasmus priority: normal

[issue29429] Requests package is incompatible with py2exe

2017-02-03 Thread reason
New submission from reason: I use py2exe to compile some py files importing 'Requests' package into executable files user Windows.But I get unexpected exception , 'missing modules'. Even I tried to specify the '-p requests',I still got failure. -- messages: 286846 nosy: reason

[issue29429] Requests package is incompatible with py2exe

2017-02-03 Thread reason
Changes by reason : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___

  1   2   >