[issue27115] IDLE/tkinter: in simpledialog, != [OK] click

2017-05-26 Thread Louie Lu
Louie Lu added the comment: We can solve this problem by two ways. One is to add set_line_and_column() to the end of goto_line_event(), but this will make Return trigger set_line_and_column twice. Another is to change the bind event in simpledialog from "" to "" to prevent editor use the

[issue30485] Element.findall(path, dict) doesn't insert null namespace

2017-05-26 Thread Ben Wainwright
New submission from Ben Wainwright: The findall method for ElementTree.Element handles namespace prefixes by tokenising the path and inserting the full namespace in braces based on entries in a dictionary. Unfortunately, this does not work for a namespace without a prefix, so if you have

[issue30484] Garbage Collector can cause Segfault whilst iterating dictionary items

2017-05-26 Thread Jim Wright
New submission from Jim Wright: We discovered this issue whilst using h5py (HDF5 python library) under python 3.5.2 on Ubuntu 16.04.2 x86_64. The construct used is very dubious, and I will separately be raising an issue with the h5py team. However I thought you might like to know there is a

[issue30477] tuple.index error message improvement

2017-05-26 Thread Martin Panter
Martin Panter added the comment: Also discussed in Issue 13349 -- nosy: +martin.panter superseder: -> Non-informative error message in index() and remove() functions ___ Python tracker

[issue24484] multiprocessing cleanup occasionally throws exception

2017-05-26 Thread Marcin Słowik
Marcin Słowik added the comment: I can confirm, I have managed to accidentally reproduce this issue on a custom build of 3.6.0 on RHEL. sys.version: '3.6.0 (default, Jan 18 2017, 11:23:11) [GCC 4.4.7 20120313 (Red Hat 4.4.7-16)]' The issue popped out of nowhere, on a code that was working

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

2017-05-26 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker ___

[issue13349] Non-informative error message in index() and remove() functions

2017-05-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: See http://bugs.python.org/issue30477 for why I think this shouldn't be done. In short, the IndexError may be part of control flow (looping over successive matches) rather than an error (this patch adds a time/space cost with no benefit in those cases).

[issue30486] Allow setting cell value

2017-05-26 Thread Antoine Pitrou
New submission from Antoine Pitrou: There are use cases for setting a cell value. One such use case is for (un)pickling recursive closures (see heroic workaround here: https://github.com/cloudpipe/cloudpickle/pull/90/files#diff-d2a3618afedd4e124c532151eedbae09R74 ). Other use cases may

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-05-26 Thread Yury Selivanov
Yury Selivanov added the comment: A while ago, Eric Appelt stepped forward to help with the asyncio documentation. Here's my response to his email in which we discuss the direction for the new docs. On May 24, 2017 at 1:04:56 PM, Eric Appelt (eric.app...@gmail.com) wrote: > Hi Yury, > > I

[issue30145] Create a How to or Tutorial documentation for asyncio

2017-05-26 Thread Eric Appelt
Changes by Eric Appelt : -- nosy: +Eric Appelt ___ Python tracker ___ ___

[issue30433] Devguide lacks instructions for building docs

2017-05-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks Caleb. This has been addressed in the Dev Guide PR https://github.com/python/devguide/pull/206 and it has been merged. -- nosy: +Mariatta resolution: -> fixed stage: -> resolved status: open -> closed versions: -Python 3.7

[issue30487] DOC: automatically create a venv and install Sphinx when running make

2017-05-26 Thread Caleb Hattingh
New submission from Caleb Hattingh: Under guidance from zware during Pycon sprints, I've changed the Doc/ Makefile to automatically create a virtual environment and install Sphinx, all as part of the `make html` command. -- assignee: docs@python components: Documentation messages:

[issue30479] improve asyncio debugging

2017-05-26 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list

[issue30487] DOC: automatically create a venv and install Sphinx when running make

2017-05-26 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> patch review ___ Python tracker ___ ___

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2017-05-26 Thread Barry Davis
Changes by Barry Davis : -- versions: +Python 3.6 ___ Python tracker ___ ___

[issue30433] Devguide lacks instructions for building docs

2017-05-26 Thread Caleb Hattingh
Caleb Hattingh added the comment: The PR has been merged by Mariatta so I think this can be closed. -- ___ Python tracker ___

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2017-05-26 Thread Barry Davis
Barry Davis added the comment: I think this is the same issue I'm getting. I'm hitting it when compiling python 3.6.2 compiled with gcc-4.8.4. This wasn't occasional, it was every time I tried. As a feeble workaround I was compiling in parallel, then in serial when it fails, although I'm now

[issue30485] Element.findall(path, dict) doesn't insert null namespace

2017-05-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: I agree that this is a recurring irritant. -- nosy: +eli.bendersky, rhettinger, scoder type: behavior -> enhancement versions: +Python 3.7 -Python 3.6 ___ Python tracker

[issue30485] Element.findall(path, dict) doesn't insert null namespace

2017-05-26 Thread Stefan Behnel
Stefan Behnel added the comment: Agreed that this should be added. I think the key should be None, though, not the empty string. I attached a quick patch for lxml's corresponding file. It's mostly the same for ET. -- keywords: +patch Added file:

[issue30486] Allow setting cell value

2017-05-26 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker ___

[issue11588] Add "necessarily inclusive" groups to argparse

2017-05-26 Thread Pedro
Pedro added the comment: Just voicing my support for this. I was also looking for a solution on StackOverflow and ended up here. -- nosy: +pgacv2 ___ Python tracker

[issue30476] Add _GenerateCRCTable() to zipfile.py to pre-compute CRC Table

2017-05-26 Thread Shubha Ramani
Shubha Ramani added the comment: This is not needed after all jkloth explained. Please feel free to close. -- ___ Python tracker ___

[issue30490] Allow pass an exception to the Event.set method

2017-05-26 Thread pfreixes
Changes by pfreixes : -- pull_requests: +1911 ___ Python tracker ___ ___ Python-bugs-list

[issue11874] argparse assertion failure with brackets in metavars

2017-05-26 Thread wim glenn
Changes by wim glenn : -- pull_requests: +1912 ___ Python tracker ___ ___

[issue30476] Add _GenerateCRCTable() to zipfile.py to pre-compute CRC Table

2017-05-26 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30486] Allow setting cell value

2017-05-26 Thread Lisa Roach
Lisa Roach added the comment: This idea makes sense to me. I'll see if I can put together the code for it. -- nosy: +lisroach ___ Python tracker ___

[issue13349] Non-informative error message in index() and remove() functions

2017-05-26 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___

[issue13349] Non-informative error message in index() and remove() functions

2017-05-26 Thread Brett Cannon
Brett Cannon added the comment: A potential compromise would be if ValueError gained a 'value' attribute. That would allow for the exception message to be static but still provide the information for introspection later if desired to figure out exactly what object led to the cause of the

[issue30463] Add __slots__ to ABC convenience class

2017-05-26 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue30485] Element.findall(path, dict) doesn't insert null namespace

2017-05-26 Thread Stefan Behnel
Stefan Behnel added the comment: Patch replaced by pull request. https://github.com/python/cpython/pull/1823 -- ___ Python tracker ___

[issue30485] Element.findall(path, dict) doesn't insert null namespace

2017-05-26 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1910 ___ Python tracker ___

[issue30488] Documentation for subprocess.STDOUT needs clarification

2017-05-26 Thread Max
New submission from Max: The documentation states that subprocess.STDOUT is: Special value that can be used as the stderr argument to Popen and indicates that standard error should go into the same handle as standard output. However, when Popen is called with stdout=None,

[issue30476] Add _GenerateCRCTable() to zipfile.py to pre-compute CRC Table

2017-05-26 Thread Shubha Ramani
Shubha Ramani added the comment: It looks like _GenerateCRCTable() is already implemented here: https://svn.python.org/projects/python/trunk/Lib/zipfile.py The question is, why isn't it implemented here ? https://github.com/python/cpython/blob/master/Lib/zipfile.py --

[issue30489] Add CmdLineTest to standard library

2017-05-26 Thread Santiago Castro
New submission from Santiago Castro: I see that you use some helpers to test command line utilities (https://hg.python.org/cpython/file/default/Lib/test/test_cmd_line_script.py) that would be useful to Python programmers. Please, consider to add them to the standard library (or somewhere) to

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-26 Thread Erik Simmler
Changes by Erik Simmler : -- nosy: +tgecho ___ Python tracker ___ ___ Python-bugs-list

[issue30482] socket.getservbyname(), socket.getservbyport(), socket.getprotobyname() are not threadsafe

2017-05-26 Thread Doug Freed
Doug Freed added the comment: It already checks for gethostbyname_r, but the comments in socketmodule.c mention that configure seems to get it wrong. Those comments are probably old, though, so perhaps that can be revisited as well. -- ___ Python

[issue30471] "as" keyword in comprehensions

2017-05-26 Thread Brett Cannon
Brett Cannon added the comment: I've created https://github.com/python/peps/pull/267 to clarify things a bit better in PEP 42, Dávid . -- ___ Python tracker

[issue30488] Documentation for subprocess.STDOUT needs clarification

2017-05-26 Thread Eryk Sun
Changes by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> subprocess.Popen(stderr=STDOUT) fails to redirect subprocess stderr to stdout ___ Python tracker

[issue30485] Element.findall(path, dict) doesn't insert null namespace

2017-05-26 Thread Stefan Behnel
Changes by Stefan Behnel : Removed file: http://bugs.python.org/file46906/lxml_elpath_empty_prefix.patch ___ Python tracker ___

[issue30476] Add _GenerateCRCTable() to zipfile.py to pre-compute CRC Table

2017-05-26 Thread Jeremy Kloth
Jeremy Kloth added the comment: See bpo-10030 (and pr #550). It removed that function in favor of the current approach. Also, that current code does not generate *every* time, but just once. Note that the computed value is stored in a global cache. -- nosy: +jkloth

[issue22729] `wait` and `as_completed` depend on private api

2017-05-26 Thread Nathaniel Manista
Nathaniel Manista added the comment: gRPC Python is strongly affected by this as well. We use grpc.Future objects (https://github.com/grpc/grpc/blob/e5f99b587338164230b0b2121d242fb015c2ae5a/src/python/grpcio/grpc/__init__.py#L50) to represent RPCs taking place asynchronously. Despite our

[issue11874] argparse assertion failure with brackets in metavars

2017-05-26 Thread paul j3
paul j3 added the comment: Any changes here including the latest pull request might conflict with http://bugs.python.org/issue29553 Argparser does not display closing parentheses in nested mutex groups If someone uses nested mutually exclusive groups (which I don't think they should, but

[issue30486] Allow setting cell value

2017-05-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 I don't see any reason this can't be writeable. -- ___ Python tracker ___

[issue30393] test_readline hangs

2017-05-26 Thread Martin Panter
Martin Panter added the comment: Perhaps if you ran the tests in verbose mode, that could narrow down which test it hangs at. Also, if you can capture a KeyboardInterrupt stack trace, that may help. Not sure if it works with your build setup, but maybe you can run something like ./python -m

[issue30486] Allow setting cell value

2017-05-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> lisroach ___ Python tracker ___

[issue30468] Propagate zipfile.py pypy issue #905 patch to CPython 3.7

2017-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The reason of using bytes concatenating rather than accumulating in the list, is that in most cases one of arguments is an empty bytes object (appending to the empty buffer or uncompressing a file with large compression block), and this case is optimized in

[issue30304] TestCase.assertMultiLineEqual only registered for Unicode strings in 2.7

2017-05-26 Thread Martin Panter
Martin Panter added the comment: I think the simplest way forward would be to add the word “Unicode” back in. You could look at making a Git Hub pull request for this if you want. Hopefully somebody else can merge it though, because I probably won’t be in a position to do so for a while.

[issue30476] Add _GenerateCRCTable() to zipfile.py to pre-compute CRC Table

2017-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After some investigations this idea no longer looks good to me. The table of 256 32-bit integers will take at least 44 lines. This is too large. It is easier to check the algorithm than all these numbers. The error even in one digit can break all, but for

[issue30468] Propagate zipfile.py pypy issue #905 patch to CPython 3.7

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

[issue19180] some RFC references could be updated

2017-05-26 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list

[issue22702] to improve documentation for join() (str method)

2017-05-26 Thread Nick Coghlan
Nick Coghlan added the comment: Raymond, I went ahead and accepted the patch to remove the "iterable iterable" phrasing by only referencing the parameter name and dropping the link to the term definition. Do you think that's sufficient to fully resolve the request here, or would you prefer

[issue30444] Add ability to change "-- more --" text in pager module

2017-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: pydoc.pager() is not a public API. This is an internal function of the pydoc module. The stdlib does not have a benefit from adding this feature. -- nosy: +serhiy.storchaka ___ Python tracker

[issue29526] Documenting format() function

2017-05-26 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list

[issue22702] to improve documentation for join() (str method)

2017-05-26 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 08e2f355d04d3cbea5751ce1275306ee3f569b32 by Nick Coghlan (Sanyam Khurana) in branch 'master': bpo-22702: Clarify documentation of str.join & bytes.join (GH-156) https://github.com/python/cpython/commit/08e2f355d04d3cbea5751ce1275306ee3f569b32

[issue30468] Propagate zipfile.py pypy issue #905 patch to CPython 3.7

2017-05-26 Thread Shubha Ramani
Shubha Ramani added the comment: Upon comparing the PyPy changes from attached diff to the latest cpython3 github, I don't find a need for improvement. Looks like cpython3 zipfile.py has the same changes and the read() method in class ZipExtFile(io.BufferedIOBase) is vastly improved compared

[issue30490] Allow pass an exception to the Event.set method

2017-05-26 Thread pfreixes
New submission from pfreixes: Having the Event as the way to synchronize 1:N coroutines, the none happy path should be able to be expressed making possible call the `set_exception` for each future related to each waiter. As an example the following code trying to implement a way to avoid the

[issue30472] [Selenium 3.4.2-geckodriver 0.16.1] Python 3.6.1 unable to initialize webdriver with "marionette" set to True

2017-05-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is the bug tracker for Python itself. What you're having is an issue with selenium, which is a third-party library. I recommend you post your issue on the selenium bug tracker instead. -- nosy: +pitrou ___

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-05-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: I could imagine people wanting to build old releases. But we have Windows binaries up here: https://www.python.org/ftp/python/ Therefore I don't think it's a problem to discontinue svn.python.org once new releases are migrated to github (but only once those

[issue30472] [Selenium 3.4.2-geckodriver 0.16.1] Python 3.6.1 unable to initialize webdriver with "marionette" set to True

2017-05-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30477] tuple.index error message improvement

2017-05-26 Thread schen
schen added the comment: What is the rationale for the inconsistency between tuples and lists here? ().index(0) ValueError: tuple.index(x): x not in tuple [].index(0) ValueError: 0 is not in list In this simple artificial case, it seems clear to me that the list version (which is similar to

[issue30479] improve asyncio debugging

2017-05-26 Thread Tarek Ziadé
New submission from Tarek Ziadé: This is a very useful trick to understand why the loop cleanup generates a lot of "Exception ignored in: " https://github.com/python/asyncio/issues/423#issuecomment-268882753 Could we consider including it in Task.__del__ ? -- components: asyncio

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-05-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: How far along are you with removing the svn.python.org dependency. Does Jan 1 2018 sound okay for the end of svn.python.org? I think a PEP is up to you. Doesn't seem like something that needs to be approved. --

[issue30480] samefile and sameopenfile fail for WebDAV mapped drives

2017-05-26 Thread Eryk Sun
New submission from Eryk Sun: os.path.samefile (used by shutil copyfile and move), os.path.sameopenfile, and pathlib.samefile rely on os.path.samestat (from genericpath.py), which compares corresponding st_dev and st_ino values. POSIX assures that the tuple (st_dev, st_ino) is unique. Windows

[issue30482] socket.getservbyname(), socket.getservbyport(), socket.getprotobyname() are not threadsafe

2017-05-26 Thread Doug Freed
New submission from Doug Freed: On at least Linux (and probably most other UNIXes, except OS X), the C functions getservbyname(), getservbyport(), and getprotobyname() are not threadsafe. CPython's wrappers around these functions in the socket module do nothing to cover up this fact. Simple

[issue30481] lib/socket.py, line 330, Treated 'file' as a socket object, instead of int

2017-05-26 Thread Mohamad amin Khakzadan
New submission from Mohamad amin Khakzadan: When I network programming, I got this problem: File "ft.py", line 43, in SendFile sent=conn.sendfile(fd.fileno(), offset) File "D:\Program Files\Python\Python35-32\lib\socket.py", line 391, in sendfile return

[issue30483] urllib.parse.parse_qsl does not handle unicode data properly

2017-05-26 Thread Abhilash Raj
New submission from Abhilash Raj: After decoding percentage encoded `name` and `values` in the query string, it tries to `_coerce_result` or encode the result to ascii (which is the value of _implicit_encoding). ``` File "/usr/lib/python3.6/urllib/parse.py", line 691, in parse_qsl value

[issue30481] lib/socket.py, line 330, Treated 'file' as a socket object, instead of int

2017-05-26 Thread Mohamad amin Khakzadan
Mohamad amin Khakzadan added the comment: sorry, my code have bug. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue30471] "as" keyword in comprehensions

2017-05-26 Thread Dávid Nemeskey
Dávid Nemeskey added the comment: The truth is, I was thinking about going to the list, but according to PEP 42 (https://www.python.org/dev/peps/pep-0042/), this space was one of the places new features could be requested: """ Note This PEP has been rejected as obsolete. All new feature

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2017-05-26 Thread Marcel H
Marcel H added the comment: I want to see this fixed in python3.x as well, please :) the patch should be the same -- nosy: +Marcel H2 versions: +Python 3.6, Python 3.7 ___ Python tracker

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2017-05-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue30482] socket.getservbyname(), socket.getservbyport(), socket.getprotobyname() are not threadsafe

2017-05-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: The configure.ac script should check for the availability of gethostbyname_r and friends, like it already does for other functions. -- nosy: +haypo, pitrou stage: -> needs patch versions: -Python 3.3, Python 3.4