[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2015-09-07 Thread Martin Panter
Martin Panter added the comment: 1) The real problem is when _tunnel() internally calls getresponse(), it notices the connection cannot be reused for another request, and closes the socket object. Perhaps I should rethink my logic; maybe move sock and detach() to HTTPResponse. 2) With some ro

[issue24272] PEP 484 docs

2015-09-07 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Guido, are you going to commit our patches before 3.5.final? Is there a merge conflict now? Should I rebase my diff? If necessary I could make a clean patch combining two patches (my and Daniel's) on top of what Zachary did. -- _

[issue24951] Idle test_configdialog fails on Fedora 23, 3.6

2015-09-07 Thread Petr Viktorin
Petr Viktorin added the comment: Sorry for the delay; I lost the mail notification. I don't have a config-main.cfg file. The last output from the test, with the print added: test_dialog (idlelib.idle_test.test_configdialog.ConfigDialogTest) ... ('.139655680391704', 'configure', '-borderwidth'

[issue25017] htmllib deprecated: Which library to use? Missing sane default in docs

2015-09-07 Thread Thomas Guettler
New submission from Thomas Guettler: At the top of the htmllib module: > Deprecated since version 2.6: The htmllib module has been removed in > Python 3. Source: https://docs.python.org/2/library/htmllib.html#module-htmllib Newcomers need more advice: Which library should be used? I know t

[issue25018] test_shutil.test_make_archive() fails on Windows

2015-09-07 Thread STINNER Victor
New submission from STINNER Victor: It looks like test_shutil fails since the changeset 4383ff47ffface248c8eabedf0f4c3bdab11f535: http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Non-Debug%203.x/builds/315/ == FAIL:

[issue25018] test_shutil.test_make_archive() fails on Windows 8.1

2015-09-07 Thread STINNER Victor
STINNER Victor added the comment: The test pass on Windows 7 and Windows 10 buildbots. -- title: test_shutil.test_make_archive() fails on Windows -> test_shutil.test_make_archive() fails on Windows 8.1 ___ Python tracker

[issue25018] test_shutil.test_make_archive() fails on Windows 8.1

2015-09-07 Thread STINNER Victor
STINNER Victor added the comment: Strange, the bug is only on one buildbot. It pass on the Windows 8 buildbot: http://buildbot.python.org/all/builders/AMD64%20Windows8%203.x/builds/1249 -- ___ Python tracker __

[issue25017] htmllib deprecated: Which library to use? Missing sane default in docs

2015-09-07 Thread Martin Panter
Martin Panter added the comment: PEP 3108 says “Superseded by HTMLParser”. I presume this means Python 3’s “html.parser” module (called “HTMLParser” in Python 2). I guess a lot of work would be involved in changing existing code over, but it shouldn’t be much of a problem for someone writing n

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-07 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I've updated the patches with redirect to /dev/null, as is it is more clearer to the user what is our intent, without having him to necessarily read the regrtest documentation. I've also added a warning message regarding the output and ported all these li

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-07 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40387/python2.7-pgo-v07.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-07 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40388/python3.6-pgo-v07.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-07 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40389/README2.7-pgo-v02.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-07 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40390/README3.6-pgo-v02.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24862] subprocess.Popen behaves incorrect when moved in process tree

2015-09-07 Thread Andre Merzky
Andre Merzky added the comment: Hi again, can I do anything to help moving this forward? Thanks, Andre. -- ___ Python tracker ___ _

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Please don't call it "PROFILE_TASK_X86" - the architecture should have nothing to do with it. Actually, there shouldn't be any architecture-specific check at all. -- ___ Python tracker

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: As for the dual 2.7/3.6 aspect: I don't really understand it. If this is committed to 2.7 it should also be committed to 3.5. It doesn't threaten the stability of the interpreter in any way, given it does not affect the default build path. There's no reason wh

[issue25018] test_shutil.test_make_archive() fails on Windows 8.1

2015-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7bd6b8076c48 by Serhiy Storchaka in branch '3.4': Explicitly test archive name in shutil.make_archive() tests to expose failure https://hg.python.org/cpython/rev/7bd6b8076c48 New changeset beda04bf5991 by Serhiy Storchaka in branch '2.7': Explicitly

[issue25018] test_shutil.test_make_archive() fails on Windows 8.1

2015-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a consequence of 9774088c8ff7. I don't know why the test fails. Added explicit checks for archive name. -- ___ Python tracker ___ ___

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-07 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I named this task PROFILE_TASK_X86 because it is rigorously tested and we have proven that regrtest performs better on this architecture. Until any other clear evidence and solid measurements that regrtest is performing better on other architectures exist

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-07 Thread Stefan Krah
Stefan Krah added the comment: I don't think we should provide any performance guarantees in the Makefile. +1 for not special-casing x86 (does it include amd64?). As I understood, Antoine was not talking about a unified patch but about applying the 3.6 patch to 3.5 right away. -- ___

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-07 Thread Larry Hastings
Larry Hastings added the comment: Well, for now I assume it really truly genuinely isn't going in 3.5.0. I suppose we can debate about 3.4.x and 3.5.1 later, once we have a fix everybody is happy with. -- ___ Python tracker

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-07 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40391/python2.7-pgo-v07.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-07 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Removed file: http://bugs.python.org/file40387/python2.7-pgo-v07.patch ___ Python tracker ___ ___ Python-bugs

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-07 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40392/python3.6-pgo-v07.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-07 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Removed file: http://bugs.python.org/file40388/python3.6-pgo-v07.patch ___ Python tracker ___ ___ Python-bugs

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-07 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: If you are talking just about the 3.6 patch, it is called this way to emphasize the fact that it is intended for the development branch. It is perfectly compatible with 3.5, therefore it is not needed for packagers to maintain two distinct versions. I've

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Larry> Well, for now I assume it really truly genuinely isn't going in 3.5.0. This is an unfortunate outcome. Larry> I suppose we can debate about 3.4.x and 3.5.1 later It is even more unfortunate that the question of whether this regression is a bug or

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-07 Thread Larry Hastings
Larry Hastings added the comment: If the guy doing the work says "don't merge it in 3.5.0", and we're at the final release candidate before 3.5.0 final ships, and we don't even have a patch that everyone likes yet... it does seem like it's not going to happen for 3.5.0. Unfortunate perhaps bu

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-07 Thread Stefan Krah
Stefan Krah added the comment: Just (hopefully) for extra clarity: As you mentioned, the 3.6 patch is perfect for 3.5, too. The reason why 3.5 was brought up is to ask Larry, our release manager, to allow it already for 3.5. Technically it's an enhancement/new feature, but practically it is ze

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-09-07 Thread Stefan Krah
Stefan Krah added the comment: The buildbot segfaults all over the place, also in test_tokenize and test_json: http://buildbot.python.org/all/builders/x86-64%20Windows%20Server%202012R2%20ICC%203.x/builds/89/steps/test/logs/stdio Running the tests under the VS debugger is probably the fastest

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-07 Thread STINNER Victor
STINNER Victor added the comment: > All you need to do is to revert a few chunks of 1e9cc1a03365 where the > regression was introduced. Hum, please don't revert this change. I spent a lot of days to write pytime.c/.h. My patches add more unit tests to datetime, to test the exact rounding mode

[issue25018] test_shutil.test_make_archive() fails on Windows 8.1

2015-09-07 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue25014] Add contextlib.itercm()

2015-09-07 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Victor> please don't revert this change. I did not suggest reverting the entire commit. The change that affects fromdatetime() is just -us = round(frac * 1e6) +us = int(frac * 1e6) in datetime.py. It is probably more involved in _datet

[issue25002] Deprecate asyncore/asynchat

2015-09-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 04, 2015, at 08:55 PM, STINNER Victor wrote: >Maybe it can be fun to rewrite the module using asyncio, but I'm not >convinced that a SMTP server in the Python stdlib is super useful. As I mentioned in issue25008, removing smtpd would be a hardship for m

[issue25008] Deprecate smtpd

2015-09-07 Thread STINNER Victor
STINNER Victor added the comment: Even if it may be possible to support asyncore/asynchat and asyncio at the same time, I would prefer to drop asyncore/asynchat support to simplify the code. The problem is that the API will be very different. asyncio has a different design. You don't instancia

[issue25008] Deprecate smtpd

2015-09-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 07, 2015, at 02:26 PM, STINNER Victor wrote: >Can we modify the issue title to "Rewrite smtpd with asyncio"? Sure, although I'm currently thinking it's best to go third party until the API and implementation settle down. -- ___

[issue25008] Deprecate smtpd

2015-09-07 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue8232] webbrowser.open incomplete on Windows

2015-09-07 Thread Brandon Milam
Brandon Milam added the comment: applying 25005_1.patch patching file Lib/webbrowser.py Hunk #1 FAILED at 498 Hunk #2 FAILED at 524 Hunk #3 FAILED at 532 Hunk #4 FAILED at 540 Hunk #5 FAILED at 548 I'm trying to apply your patch after applying webbrowserfix6.patch but I am encountering problems.

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-07 Thread Mark Dickinson
Mark Dickinson added the comment: FWIW, count me as +1 on roundTiesToEven, mostly just for consistency. It's easier to remember that pretty much everything in Python 3 does round-ties-to-even (round function, string formatting, float literal evaluations, int-to-float conversion, Fraction-to-f

[issue8232] webbrowser.open incomplete on Windows

2015-09-07 Thread Steve Dower
Steve Dower added the comment: Try doing: hg up -r 4e329892817c1eed81aafd14e82b8ef23b45a6e6 hg import --no-commit http://bugs.python.org/file40384/25005_1.patch That *should* apply it where I originally made it from. I'll do the same and rebase the patch against tip. -- _

[issue8232] webbrowser.open incomplete on Windows

2015-09-07 Thread Steve Dower
Steve Dower added the comment: New patch against 3.6. -- Added file: http://bugs.python.org/file40393/8232_1.patch ___ Python tracker ___ _

[issue25019] xmlparse_setattro() Type Confusion

2015-09-07 Thread John Leitch
New submission from John Leitch: Python 3.4 and 3.5 suffer from a vulnerability caused by the behavior of the xmlparse_setattro() function. When called, the function uses the provided name argument in several conditional statements which assume that the name argument is a string. However, if

[issue25019] xmlparse_setattro() Type Confusion

2015-09-07 Thread John Leitch
Changes by John Leitch : -- keywords: +patch Added file: http://bugs.python.org/file40395/xmlparse_setattro_Type_Confusion.patch ___ Python tracker ___ _

[issue25019] xmlparse_setattro() Type Confusion

2015-09-07 Thread John Leitch
Changes by John Leitch : -- nosy: +brycedarling ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue25019] xmlparse_setattro() Type Confusion

2015-09-07 Thread John Leitch
Changes by John Leitch : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue8232] webbrowser.open incomplete on Windows

2015-09-07 Thread Brandon Milam
Brandon Milam added the comment: Ok I've been able to test the new patch now and I'm not sure that os.startfile is going to work. I've been able to get os.startfile() to open a specified browser (>>> os.startfile("chrome.exe", "open")), however, the function does not allow additional arguments

[issue24272] PEP 484 docs

2015-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: I apologize, I've been distracted. I will try to get to this before 3.5.0 final goes out! I don't know if the fixes will end up in the tar ball but they will certainly be on docs.python.org. -- ___ Python tracker

[issue25018] test_shutil.test_make_archive() fails on Windows 8.1

2015-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 58937cd19a85 by Serhiy Storchaka in branch '3.4': Issue #25018: Fixed testing shutil.make_archive() with relative base_name on https://hg.python.org/cpython/rev/58937cd19a85 New changeset d9c4b35e3fdc by Serhiy Storchaka in branch '2.7': Issue #2501

[issue25018] test_shutil.test_make_archive() fails on Windows 8.1

2015-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I hope that I preserved the intention of the test. It tested relative make_archive() with base_name. Original test first changed working directory and drive (to the same drive as the drive of output file) and then called private function _make_tarball(). Aft

[issue25019] xmlparse_setattro() Type Confusion

2015-09-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> patch review ___ Python tracker ___ ___

[issue23551] IDLE to provide menu link to PIP gui.

2015-09-07 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue22179] Idle. Search dialog found text not highlited on Windows

2015-09-07 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue22460] idle editor: replace all in selection

2015-09-07 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue13586] IDLE: Replace selected not working/consistent with find

2015-09-07 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue18590] Found text not always highlighted by Replace dialog on Windows

2015-09-07 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue16893] Generate Idle help from Doc/library/idle.rst

2015-09-07 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue8232] webbrowser.open incomplete on Windows

2015-09-07 Thread Steve Dower
Steve Dower added the comment: The C part of the patch adds an extra argument to startfile to accept the arguments. You'll need to rebuild Python to test the change completely - it's no longer just a pure Python change. -- ___ Python tracker

[issue24972] IDLE: revisit text highlighting for inactive windows on win32

2015-09-07 Thread Mark Roseman
Mark Roseman added the comment: See inactiveselection.patch. This addresses the original bug of the debugger not highlighting the correct line, and also various issues with the find windows not highlighting the selection they have found, e.g. #22179, #18590 -- keywords: +patch Added fi

[issue25017] htmllib deprecated: Which library to use? Missing sane default in docs

2015-09-07 Thread Thomas Guettler
Thomas Guettler added the comment: This issue is just about documentation. No code change is required for it. How to update the docs, to point to html.parser? -- ___ Python tracker

[issue25019] xmlparse_setattro() Type Confusion

2015-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset ff2c4f281720 by Serhiy Storchaka in branch '3.4': Issue #25019: Fixed a crash caused by setting non-string key of expat parser. https://hg.python.org/cpython/rev/ff2c4f281720 New changeset 6006231dcaae by Serhiy Storchaka in branch '3.5': Issue #250

[issue25017] htmllib deprecated: Which library to use? Missing sane default in docs

2015-09-07 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue25017] htmllib deprecated: Which library to use? Missing sane default in docs

2015-09-07 Thread Ezio Melotti
Ezio Melotti added the comment: If you want to create a patch, you have to edit the file Doc/library/htmllib.rst in the 2.7 branch. You can find information about cloning the CPython repository and switching branch in the devguide. The warning should suggest :mod:`HTMLParser` for Python 2 and

[issue25019] xmlparse_setattro() Type Confusion

2015-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution John. The committed patch slightly differs from the proposed patch. Error message now is the same as in setattr() and general __setattr__(). Tests are moved to existing test class for testing of attribute setting. Improved tes

[issue25018] test_shutil.test_make_archive() fails on Windows 8.1

2015-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The build bot is green. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue24272] PEP 484 docs

2015-09-07 Thread Larry Hastings
Larry Hastings added the comment: Doc fixes are always welcome. Barring mishaps I should tag 3.5.0 final on Saturday; it'd be sweet if you could get me your diff no later than Friday night. -- ___ Python tracker

[issue25012] pathlib should allow converting to absolute paths without resolving symlinks

2015-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, this wasn't meant to be a public method really. I'm still on the fence as to whether we should expose something like this. What is your use case? -- type: behavior -> enhancement versions: +Python 3.6 -Python 3.4 __

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: I *think* shifting by an amount larger than the operand's width is undefined behaviour (at least LLVM clearly seems to think so, since it gives different results on x86 and ARM), so the compiler is probably allowed to do what it wants (even return 42). --

[issue25003] os.urandom() should call getrandom(2) not getentropy(2)

2015-09-07 Thread STINNER Victor
STINNER Victor added the comment: Attached patch (for Python 3.4) removes code to use getentropy() in os.urandom(). -- keywords: +patch Added file: http://bugs.python.org/file40397/remove_get_entropy.patch ___ Python tracker

[issue16893] Generate Idle help from Doc/library/idle.rst

2015-09-07 Thread Mark Roseman
Mark Roseman added the comment: If it's useful, I quickly threw together a routine that takes the HTML generated by Sphinx, and using html.parser, strips out the navigation stuff, and stuffs it into a Tk text widget, doing appropriate things with the subset of the formatting it uses (lists, he

[issue22241] strftime/strptime round trip fails even for UTC datetime object

2015-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset ea1bfb64e898 by Victor Stinner in branch 'default': Issue #22241: Fix a compiler waring https://hg.python.org/cpython/rev/ea1bfb64e898 -- ___ Python tracker __

[issue25011] Smarter rl complete: hide private and special names

2015-09-07 Thread R. David Murray
R. David Murray added the comment: Sounds good to me, especially the __ part. I don't actually use completions, though :) -- ___ Python tracker ___ _

[issue8232] webbrowser.open incomplete on Windows

2015-09-07 Thread Brandon Milam
Brandon Milam added the comment: Finally got it rebuilt after having trouble with visual studio for awhile. I've tested the new patch and it is still able to properly find both chrome and firefox and is able to differentiate between new window and new tab for those two browsers so it appears t

[issue21505] cx_freeze multiprocessing bug

2015-09-07 Thread Davin Potts
Davin Potts added the comment: Closing as there is no additional information forthcoming from the OP and per the prior comments, Torsten's suggestion seems as helpful as anything that can be offered without more info. -- resolution: -> out of date status: pending -> closed __

[issue24475] The docs never define what a pool "task" is

2015-09-07 Thread Davin Potts
Changes by Davin Potts : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue24484] multiprocessing cleanup occasionally throws exception

2015-09-07 Thread Davin Potts
Davin Potts added the comment: The 'crash' type is reserved for core dump type situations; 'behavior' is more appropriate for the misbehavior your describe. -- type: crash -> behavior ___ Python tracker __

[issue23992] multiprocessing: MapResult shouldn't fail fast upon exception

2015-09-07 Thread Davin Potts
Davin Potts added the comment: @neologix: Budgeting time this week to have a proper look -- sorry I haven't gotten back to it sooner. -- ___ Python tracker ___ _

[issue25012] pathlib should allow converting to absolute paths without resolving symlinks

2015-09-07 Thread David Barnett
David Barnett added the comment: The idiom of pathlib.Path.cwd() / pathlib.Path('some/path') isn't too bad of an approach if it could just be mentioned in the docs. I would intuitively expected something like pathlib.Path('some/path').resolve(follow_symlinks=False) My use case was that I ha

[issue25016] defaultdict's pop gives a KeyError

2015-09-07 Thread R. David Murray
R. David Murray added the comment: It would not be sensible for pop to return the default value, since the point of pop is to *remove* a key from the dictionary (while returning the existing value), whereas the point defaultdict is to *add* key to the dictionary with the default value if you r

[issue24862] subprocess.Popen behaves incorrect when moved in process tree

2015-09-07 Thread R. David Murray
R. David Murray added the comment: Not really. Give GPS a couple more weeks to respond, and then maybe bring it up on python-dev. -- ___ Python tracker ___

[issue25003] os.urandom() should call getrandom(2) not getentropy(2)

2015-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: I got several long private emails from Theo De Raadt about this issue. I think the gist of it all is that most likely (a) the app most likely shouldn't be calling os.urandom() that often, and (b) Solaris getentropy() is apparently stunningly slow. Theo also

[issue25020] IDLE - centralize ui policies and small utilities

2015-09-07 Thread Mark Roseman
New submission from Mark Roseman: Certain policy decisions should be in one place in the code (DRY). These could be based on preferences or environment (should we be using ttk?), which operating system we're using (what hand cursor looks best?) or even the version of the operating system we'r

[issue25014] Add contextlib.itercm()

2015-09-07 Thread Yury Selivanov
Yury Selivanov added the comment: TBH, I don't like the idea. It would take me some time to digest the code every time I see this. > lines = chain.from_iterable(itercm(open(f)) for f in fnames) This looks like an extremely rare use case. -- nosy: +yselivanov

[issue25014] Add contextlib.itercm()

2015-09-07 Thread Nick Coghlan
Nick Coghlan added the comment: Having spent a few days pondering this after Ezio first mentioned the concept to me on IRC, I'm rejecting this on the basis of "not every 3 line function needs to be in the standard library". The vast majority of iterable CM use cases are going to fall into one

[issue24982] shutil.make_archive doesn't archive empty directories

2015-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 705ec4145f06 by Serhiy Storchaka in branch '2.7': Issue #24982: shutil.make_archive() with the "zip" format now adds entries https://hg.python.org/cpython/rev/705ec4145f06 New changeset 19216f5f6ee0 by Serhiy Storchaka in branch '3.4': Issue #24982:

[issue24982] shutil.make_archive doesn't archive empty directories

2015-09-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue25011] Smarter rl complete: hide private and special names

2015-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is improved patch. The completion of empty prefix now returns the list of private names if there are no public names. The completion of empty prefix or prefix '_' now returns the list of dunder names if there are no non-dunder names. For example try "No

[issue22460] idle editor: replace all in selection

2015-09-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: -0 on doing this. The current Find/Replace works pretty well even for replacements within a block (though it takes a few clicks to apply them one at a time). In general, IDLE aspires to be minimalist and favor rapid learnability over having more features

[issue25008] Deprecate smtpd

2015-09-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Unless there is a drop-in replacement, I don't think this should be deprecated or removed. Our biggest problem in the Python world is getting organizations using Python 2 to switch to Python 3. Deprecating modules that have been a part of the firmament fo

[issue25002] Deprecate asyncore/asynchat

2015-09-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Now that we've got asyncio in two releases (3.4 and 3.5) > we should start deprecating asyncore and asynchat. If we care about making it easier for organizations to move from Python 2 to Python 3, we should develop a strong aversion to deprecating modules

[issue25002] Deprecate asyncore/asynchat

2015-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: Then can we at least close any feature requests for asyncore/asynchat as wontfix? (And porting smtpd.py to asyncio is still a good idea.) -- ___ Python tracker _

[issue25021] product_setstate() Out-of-bounds Read

2015-09-07 Thread John Leitch
New submission from John Leitch: Python 3.3, 3.4, and 3.5 suffer from a vulnerability caused by the behavior of the product_setstate() function. When called, the function loops over the state tuple provided and clamps each given index to a value within a range from 0 up to the max number of po

[issue25021] product_setstate() Out-of-bounds Read

2015-09-07 Thread John Leitch
Changes by John Leitch : Added file: http://bugs.python.org/file40401/product_setstate_Type_Confusion.py ___ Python tracker ___ ___ Python-bug

[issue16893] Generate Idle help from Doc/library/idle.rst

2015-09-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Trying to produce .txt from .rst or .html was the original idea but the result in the upload help.txt is not terribly good. We decided that it is reasonable these days to depend on a browser being present and use the webbrowser module to display the html in a

[issue25010] minor typo in PCBuild readme.txt

2015-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7f4102a9818b by Zachary Ware in branch '3.4': Issue #25010: Fix path for .pyd example project. https://hg.python.org/cpython/rev/7f4102a9818b New changeset 309c0331726b by Zachary Ware in branch '3.5': Issue #25010: Merge with 3.4 https://hg.python.

[issue25010] minor typo in PCBuild readme.txt

2015-09-07 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the report and patch! Unfortunately, that example is so completely out of date we'd probably be better off to remove it, but we can at least point to the right path :) -- nosy: +zach.ware versions: +Python 3.4, Python 3.6

[issue25022] Remove PC/example_nt/

2015-09-07 Thread Zachary Ware
New submission from Zachary Ware: The instructions and examples in PC/example_nt/ are hopelessly outdated (the readme says "It has been tested with VC++ 7.1 on Python 2.4" on default!). Is there any reason to keep and update the example, or can we just drop it? -- assignee: docs@pytho

[issue25021] product_setstate() Out-of-bounds Read

2015-09-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue25021] product_setstate() Out-of-bounds Read

2015-09-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +kristjan.jonsson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue25023] time.strftime('%a'), ValueError: embedded null byte, in ko locale

2015-09-07 Thread grizlupo
New submission from grizlupo: >>> locale.setlocale(locale.LC_ALL, 'en') 'en' >>> time.strftime('%a') 'Tue' >>> locale.setlocale(locale.LC_ALL, 'ko') 'ko' >>> time.strftime('%a') Traceback (most recent call last): File "", line 1, in ValueError: embedded null byte >>> -- components: Un

  1   2   >