[issue24658] open().write() fails on 2 GB+ data (OS X)

2017-05-21 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___

[issue21074] Too aggressive constant folding

2017-05-21 Thread STINNER Victor
STINNER Victor added the comment: (I reopen the issue since it got a long new comment.) -- resolution: duplicate -> status: closed -> open ___ Python tracker

[issue24658] open().write() fails on 2 GB+ data (OS X)

2017-05-21 Thread STINNER Victor
STINNER Victor added the comment: I see that we have other clamps on Windows using INT_MAX: * sock_setsockopt() * sock_sendto_impl() Are these functions ok on macOS? If not, a new issue should be opened ;-) -- ___ Python tracker

[issue30290] IDLE: add tests for help_about.py

2017-05-21 Thread Louie Lu
Louie Lu added the comment: Terry: I see, I'll take some debugger stuff to try first. Cheryl: If you got any problem on 4/5/6, feel free to ask me on IRC or here! -- ___ Python tracker

[issue30416] constant folding opens compiler to quadratic time hashing

2017-05-21 Thread Andrew Dalke
Andrew Dalke added the comment: A complex solution is to stop constant folding when there are more than a few levels of tuples. I suspect there aren't that many cases where there are more than 5 levels of tuples and where constant creation can't simply be assigned and used as a module

[issue21074] Too aggressive constant folding

2017-05-21 Thread Andrew Dalke
Andrew Dalke added the comment: I know this issue was closed many years ago, and I don't propose re-opening it. I write this comment because some of the earlier comments here make it sound like only a foolish or perverse programmer might be affected by this 'too aggressive constant folding'.

[issue29596] Unfinished sentense in howto/clinic.rst

2017-05-21 Thread G Young
Changes by G Young : -- pull_requests: +1801 ___ Python tracker ___ ___ Python-bugs-list

[issue30422] Add roadmap.txt section to idlelib

2017-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: The existing todo.txt is a decade out of date or so. A low priority item is to review it against open issues + my own todo list. What I remember from when I read it is that some seemed either very low priority or something I don't really want to do. There

[issue23560] Group the docs of similar methods in stdtypes.rst

2017-05-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: I hope this is OK, but I created a version of the patch with a table as Raymond suggested. I didn't know how to make a patch, so I did it in a PR. I wanted to have a comparison available to see the differences between the two versions. I used the original

[issue23560] Group the docs of similar methods in stdtypes.rst

2017-05-21 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +1800 ___ Python tracker ___ ___

[issue29102] Add an id field to PyInterpreterState.

2017-05-21 Thread Eric Snow
Eric Snow added the comment: Yes, I still need it. :) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30290] IDLE: add tests for help_about.py

2017-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR merged. I will worry about where in the test to call AboutDialog.Ok, which has the last uncovered line - and any other details -- later, perhaps when I merge this file into help.py. -- ___ Python tracker

[issue30290] IDLE: add tests for help_about.py

2017-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 054e09147aaa6f61aca6cd40c7bf7ce6dc54a04b by terryjreedy (mlouielu) in branch 'master': bpo-30290: IDLE: Add more tests for help_about dialog (#1697) https://github.com/python/cpython/commit/054e09147aaa6f61aca6cd40c7bf7ce6dc54a04b --

[issue24658] open().write() fails on 2 GB+ data (OS X)

2017-05-21 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +1798 ___ Python tracker ___ ___

[issue24658] open().write() fails on 2 GB+ data (OS X)

2017-05-21 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hello I just updated this ticket with a PR on Github. -- ___ Python tracker ___

[issue30361] Docs example: converting mixed types to floating point

2017-05-21 Thread G Young
Changes by G Young : -- pull_requests: +1797 ___ Python tracker ___ ___ Python-bugs-list

[issue30388] ndbm can't iterate through values on OS X

2017-05-21 Thread Emily Morehouse
Changes by Emily Morehouse : -- nosy: +emilyemorehouse ___ Python tracker ___ ___

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-21 Thread Joel Hillacre
Joel Hillacre added the comment: > Joel, our patch system has moved to GitHub. Mind to turn your patch into a PR? I have opened a PR now. I took a look at changing my example into a test. I am not sure how to test for a lack of warning. Closest test I found was BadHELOServerTests in

[issue30413] Add fnmatch.filterfalse function

2017-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > 1) what do you think about "os.path is posixpath" vs just checking os.name == > 'posix' as I suggested earlier? Currently os.path is posixpath if and only if os.name == 'posix'. But this can be changed in future. I think it is safer to the current check.

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-21 Thread Joel Hillacre
Changes by Joel Hillacre : -- pull_requests: +1796 ___ Python tracker ___ ___

[issue30413] Add fnmatch.filter_false function

2017-05-21 Thread Wolfgang Maier
Wolfgang Maier added the comment: @serhiy: my bad! I just hadn't realized this behavior of the original. With this requirement I cannot see any simpler solution than Steven's. Some other questions though to everyone involved: 1) what do you think about "os.path is posixpath" vs just checking

[issue30425] Python 3.6.1 (32-bit)_20170522020736.log

2017-05-21 Thread Chakrit Rakhuang
New submission from Chakrit Rakhuang: [08B4:3B88][2017-05-22T02:07:36]i001: Burn v3.10.3.3007, Windows v10.0 (Build 15063: Service Pack 0), path: C:\Users\CHAKRI~1\AppData\Local\Temp\{FF4877B7-8096-4550-B901-76C2391DCB87}\.cr\python-3.6.1.exe [08B4:3B88][2017-05-22T02:07:36]i000: Initializing

[issue30412] mailbox : add option to prevent platform EOL conversion

2017-05-21 Thread R. David Murray
R. David Murray added the comment: I'm not entirely sure why some of the conversions are done they way they are, but I do know that one goal is to make all of the line endings consistent, whatever may be the case on disk. If you aren't modifing the mailbox, nothing should happen. If you

[issue30416] constant folding opens compiler to quadratic time hashing

2017-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Caching a tuple's hash value is a nice idea but it would increase the memory consumption of all tuples, which would probably hurt much more in the average case... Unless of course we find a way to cache the hash value in a separate memory area that's

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-05-21 Thread Utkarsh Upadhyay
Utkarsh Upadhyay added the comment: So we are okay with datetime.timedelta(minutes=-1) # -datetime.timedelta(seconds=60) and datetime.timedelta(minutes=-1).seconds # 86340 datetime.timedelta(minutes=-1).days # -1 ? Perhaps I'm reading this incorrectly: "If the repr() shows different

[issue24960] Can't use lib2to3 with embeddable zip file.

2017-05-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: re: Paul's "I'm not sure I see why you'd want to run lib2to3 with the embedded distribution anyway. Surely you'd do any 2to3 conversion in a normal development installation" lib2to3 is a library useful for doing things with Python code. Not just a stand

[issue26171] heap overflow in zipimporter module

2017-05-21 Thread Berker Peksag
Changes by Berker Peksag : -- pull_requests: -1794 ___ Python tracker ___ ___

[issue30424] make pydoc-topics fails

2017-05-21 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: -> needs patch versions: +Python 3.7 ___ Python tracker

[issue30424] make pydoc-topics fails

2017-05-21 Thread Jelle Zijlstra
New submission from Jelle Zijlstra: Running `make pydoc-topics` in Doc/ on master fails with $ make pydoc-topics sphinx-build -b pydoc-topics -d build/doctrees -D latex_elements.papersize= . build/pydoc-topics Running Sphinx v1.6.1 making output directory... loading pickled environment...

[issue30414] multiprocesing.Queue silently ignore messages after exc in _feeder

2017-05-21 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +davin, xiang.zhang ___ Python tracker ___ ___

[issue30412] mailbox : add option to prevent platform EOL conversion

2017-05-21 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-21 Thread Xiang Zhang
Xiang Zhang added the comment: Joel, our patch system has moved to GitHub. Mind to turn your patch into a PR? -- nosy: +xiang.zhang stage: -> patch review type: enhancement -> behavior versions: +Python 2.7, Python 3.5, Python 3.7 ___ Python tracker

[issue30423] [asyncio] orphan future close loop and cause "RuntimeError: Event loop stopped before Future completed."

2017-05-21 Thread Jimmy Lai
New submission from Jimmy Lai: Problem: "RuntimeError: Event loop stopped before Future completed." throws when calling run_until_complete(). We investigate and find out some orphan futures stay in the event loop before we run another run_until_complete(another_async_func()). The orphan

[issue26171] heap overflow in zipimporter module

2017-05-21 Thread Jimmy Lai
Changes by Jimmy Lai : -- pull_requests: +1794 ___ Python tracker ___ ___ Python-bugs-list

[issue30416] constant folding opens compiler to quadratic time hashing

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

[issue29854] Segfault when readline history is more then 2 * history size

2017-05-21 Thread Nir Soffer
Nir Soffer added the comment: This issue does not exist on OS X 10.11.6 (latest my old mac can install). I tested using .editrc file: $ cat ~/.editrc history size 5 With history file with 10 items that crashes on Linux using GNU readline. This settings is ignored, adding items to the history

[issue30421] argparse: relative include of config files

2017-05-21 Thread Robert Schindler
Changes by Robert Schindler : -- pull_requests: +1792 ___ Python tracker ___ ___

[issue30290] IDLE: add tests for help_about.py

2017-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am about to go to bed, way late. I would like to review and apply all the non-test changes, 4,5,6 in one PR, and add 3 since I know what I meant. There can be multiple commits in one PR though. Louie, from #30422 and a tracker search, you can see that

[issue30362] Launcher add list and list with paths options

2017-05-21 Thread Paul Moore
Paul Moore added the comment: I'm also not a fan of the -0 option. I'm OK with the ability to list available interpreters, but there's nothing about -0 as an option that says to me that's what it's for. I'm not a huge fan of including the list in the standard help, as py -h already generates

[issue30421] argparse: relative include of config files

2017-05-21 Thread Robert Schindler
Robert Schindler added the comment: Hi Louie, oh, I didn't notice that. But that's great news. I'll send a PR soon. Best regards Robert -- ___ Python tracker

[issue29702] Error 0x80070003: Failed to launch elevated child process

2017-05-21 Thread Kai Shen
Kai Shen added the comment: when you perform the installation and choose the "Download debugging symbols" or "Download debug binaries", make sure your internet connection is up and available. -- nosy: +Kai Shen ___ Python tracker

[issue30421] argparse: relative include of config files

2017-05-21 Thread Louie Lu
Louie Lu added the comment: Hi Robert, the submit flow has migrate to GitHub pull requests workflow, and it is strongly preferred to used GitHub PR workflow, do you mind to convert your patch to GitHub? * GitHub repo: https://github.com/python/cpython * devguide about PR:

[issue30290] IDLE: add tests for help_about.py

2017-05-21 Thread Louie Lu
Louie Lu added the comment: Cheryl: yes, I may work on 4a/4b and msg294004 on Monday, or do you start at these tasks? -- ___ Python tracker ___

[issue30290] IDLE: add tests for help_about.py

2017-05-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: Oh, I had started to make the changes, but that's OK. I'm still doing discovery too. 'Fun' did mean that I'll try something. This is exactly what I wanted to work on to dive into tkinter and idle, so I got excited. Louie, just to coordinate, are you

[issue30409] locale.getpreferredencoding doesn't return result

2017-05-21 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: -1780 ___ Python tracker ___ ___

[issue30419] Bdb: Update doc page

2017-05-21 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +1791 ___ Python tracker ___ ___

[issue30422] Add roadmap.txt section to idlelib

2017-05-21 Thread Louie Lu
Louie Lu added the comment: Roadmap definitely helps us for targeting what to do and clear the current development status. Such as #27609 helps a lot for focus on improving on part of the IDLE. 1. Should this be merged with the existing TODO.txt to ROADMAP.txt? 2. What does a "single window

[issue30290] IDLE: add tests for help_about.py

2017-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Louie, at first glance, this appears to implement the remaining changes in 1 and 2. A possible problem is that I expect the needed 'self.' additions will conflict with the name changes on the same lines that Cheryl said she would do, about 10 hours ago.

[issue29710] Incorrect representation caveat on bitwise operation docs

2017-05-21 Thread Mark Dickinson
Mark Dickinson added the comment: Adding Tim Peters to the nosy, since I suspect (without actually having checked) that this is his language. -- nosy: +tim.peters ___ Python tracker

[issue29710] Incorrect representation caveat on bitwise operation docs

2017-05-21 Thread Mark Dickinson
Mark Dickinson added the comment: So on re-reading the docs, I think we're misinterpreting this part: > this assumes that there are enough bits so that no overflow occurs during the > operation One way to think of | and & (and ~ and ^, too): 1. Find a positive integer n such that both x and

[issue30422] Add roadmap.txt section to idlelib

2017-05-21 Thread Terry J. Reedy
New submission from Terry J. Reedy: Idlelib needs a roadmap with a bit of history to help orient new contributors to IDLE as to where I see it going. I am not sure whether to add this to README.txt or make is a separate roadmap.txt file. A rough draft (which started as just an outline ;-):

[issue30421] argparse: relative include of config files

2017-05-21 Thread Robert Schindler
Changes by Robert Schindler : Added file: http://bugs.python.org/file46882/argparse_relative_includes2.patch ___ Python tracker ___

[issue30418] test_communicate_epipe() of test_subprocess fails randomly on AMD64 Windows7 SP1 3.x

2017-05-21 Thread STINNER Victor
STINNER Victor added the comment: So, would you mind to write such PR? -- ___ Python tracker ___ ___

[issue30418] test_communicate_epipe() of test_subprocess fails randomly on AMD64 Windows7 SP1 3.x

2017-05-21 Thread STINNER Victor
STINNER Victor added the comment: Basically, Windows EINVAL here looks like UNIX EPIPE. I agree to always ignore it (remove the check on poll()). I added the poll() check when I added the EINVAL test because I don't know well Windows and I didn't know that write () can also fail with EINVAL if

[issue30421] argparse: relative include of config files

2017-05-21 Thread Robert Schindler
Changes by Robert Schindler : -- title: Relative include of config files -> argparse: relative include of config files ___ Python tracker

[issue30421] Relative include of config files

2017-05-21 Thread Robert Schindler
New submission from Robert Schindler: Hi, When one includes an argument file at the command line using argparse and that file contains another include statement, the inner include path is treated as relative to os.getcwd(), what is not the way people expect it to be, I guess. This patch

[issue30415] Improve fnmatch testing

2017-05-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30415] Improve fnmatch testing

2017-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2b67c7aae7344365dfc12a31e72e4b2659e6875d by Serhiy Storchaka in branch '2.7': [2.7] bpo-30415: Add new tests for the fnmatch module. (GH-1684). (#1696) https://github.com/python/cpython/commit/2b67c7aae7344365dfc12a31e72e4b2659e6875d

[issue30415] Improve fnmatch testing

2017-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bc75b72d393bc40c3243d7099db6c2c39fe632aa by Serhiy Storchaka in branch '3.5': [3.5] bpo-30415: Add new tests for the fnmatch module. (GH-1684) (#1695) https://github.com/python/cpython/commit/bc75b72d393bc40c3243d7099db6c2c39fe632aa

[issue30415] Improve fnmatch testing

2017-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cf5c1be8f6e0bc90280f66c65bb49808f01bfb3a by Serhiy Storchaka in branch '3.6': [3.6] bpo-30415: Add new tests for the fnmatch module. (GH-1684) (#1694) https://github.com/python/cpython/commit/cf5c1be8f6e0bc90280f66c65bb49808f01bfb3a

[issue30290] IDLE: add tests for help_about.py

2017-05-21 Thread Louie Lu
Louie Lu added the comment: Due to the merged of #30303, text_view now have _utest attribute for unittest, upload the unittest of help_about dialog in PR 1697 -- nosy: +louielu ___ Python tracker

[issue30290] IDLE: add tests for help_about.py

2017-05-21 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1790 ___ Python tracker ___ ___ Python-bugs-list

[issue30362] Launcher add list and list with paths options

2017-05-21 Thread Steve Barnes
Steve Barnes added the comment: Latest push still has -0 and -0p options for explicit discovery but also defaults to displaying the list if the requested version is not found. (As well as the default python being marked with a trailing * - I have also removed the less than helpful "default

[issue23560] Group the docs of similar methods in stdtypes.rst

2017-05-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think this should be done. Instead, add a table at the top listing the functions in groups, possibly linking to the alphabetical details docs below. When looking a what a string method does, alphabetical makes the search easier than having to

[issue30290] IDLE: add tests for help_about.py

2017-05-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I take 'fun' to mean you will try something. And yes, I have thought about the following for all IDLE modules. 6. Replace "from tkinter import *". It was mainly intended for interactive use. In production IDLE, use either a. from tkinter import Tk, Frame,

[issue30413] Add fnmatch.filter_false function

2017-05-21 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm happy for you to change the name to filterfalse. -- ___ Python tracker ___

[issue30415] Improve fnmatch testing

2017-05-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1789 ___ Python tracker ___ ___

[issue30416] constant folding opens compiler to quadratic time hashing

2017-05-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +pitrou ___ Python tracker ___ ___

[issue29976] urllib.parse clarify what ' ' in schemes mean

2017-05-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset b5bf7e85b74070973bff3e69990f948a0ed5efdb by Senthil Kumaran in branch '3.6': bpo-29976: urllib.parse clarify '' in scheme values. (GH-984) (GH-1692) https://github.com/python/cpython/commit/b5bf7e85b74070973bff3e69990f948a0ed5efdb --

[issue29976] urllib.parse clarify what ' ' in schemes mean

2017-05-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset a2a822614c64b01b0cf5c0ee63a96b3ad4561a85 by Senthil Kumaran in branch '3.5': bpo-29976: urllib.parse clarify '' in scheme values. (GH-984) (GH-1693) https://github.com/python/cpython/commit/a2a822614c64b01b0cf5c0ee63a96b3ad4561a85 --

[issue30420] Clarify kwarg handing for subprocess convenience APIs

2017-05-21 Thread Martin Panter
Martin Panter added the comment: If you add “cwd” to Frequently Use Arguments, please try to keep the details in one place. Otherwise you encourage a fix for Issue 15533 (cwd platform specifics) to repeat the problem of Issue 20344 (args vs shell platform specifics), where some details are

[issue30415] Improve fnmatch testing

2017-05-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1788 ___ Python tracker ___ ___