[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-26 Thread Eryk Sun
Eryk Sun added the comment: You may have uncovered a bug in Python that's causing the invalid parameter handler to be invoked. It would help if you uploaded the zipped dump file for the crashed process. The status code you're getting (i.e. STATUS_STACK_BUFFER_OVERRUN, 0xC409) is used by

[issue10656] "Out of tree" build fails on AIX

2016-10-26 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Modules/python.exp is generated at build-time, thus does not belong to $(srcdir). -- ___ Python tracker ___

[issue25660] tabs don't work correctly in python repl

2016-10-26 Thread Clément
Clément added the comment: Could this commit be the reason why the attached code behaves differently in 2.7 and 3.5.2? This is the code used by Emacs' default Python mode to do completion; with it (python -i completion.py), pressing "tab" on a plain prompt offers candidates in Python 2.7, but

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Charles Stephens
Charles Stephens added the comment: Yes, I'm working on patching urllib3 to preprocess the host argument to HTTPConnection. However, it makes sense to strip square brackets regardless. -- ___ Python tracker _

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Charles Stephens
Charles Stephens added the comment: Not when passing it to getaddrinfo(). -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28541] Improve test coverage for json library - loading bytes

2016-10-26 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +ezio.melotti, rhettinger, zach.ware stage: -> patch review type: -> enhancement versions: +Python 3.7 ___ Python tracker ___ ___

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Zachary Ware
Zachary Ware added the comment: That looks like a bug in urllib3 to me. The host is *not* '[2620:125:9014:3240:14:240:128:0]', the host is '2620:125:9014:3240:14:240:128:0'; the brackets are merely for disambiguating the port. Compare to urllib.parse.urlsplit: >>> from urllib.parse import u

[issue28541] Improve test coverage for json library - loading bytes

2016-10-26 Thread Eric Appelt
New submission from Eric Appelt: Increase test coverage of the json library, specifically the detect_encoding() function in the __init__ module, which is used to handle the autodetection of the encoding of a bytes object passed to json.loads(). This function was added in issue 17909 which exte

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Charles Stephens
Charles Stephens added the comment: Our internal use case is happening through requests via urllib3 for parsing. Essentially requests is taking the URL, passing it to urllib3 for parsing. urllib3 is returning a namedtuple of type Url which includes a host and port property which is being fed

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Martin Panter
Martin Panter added the comment: I tried the original revision 433606e9546c code in Python 2.7 (which still allows mixed tabs and spaces), and it behaves the same as the current version. Thus I suspect revision 9e2b94a3b5dc did not change any behaviour. What is your use case? Why can’t you jus

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Charles Stephens
Charles Stephens added the comment: Example with patch applied: Python 2.7.6 (default, Oct 26 2016, 20:33:50) [GCC 4.8.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import httplib >>> con1 = httplib.HTTPConnection('[fe80::26a9:37ff:fe00:f764]', 15482) >

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Charles Stephens
Charles Stephens added the comment: I misapplied the term 'regression'. My intent was to describe how original author's change revision 433606e9546c was refactored to make it perform incorrectly. Without the scope specifier, the outcome is the same when HTTPConnection is instantiated. When

[issue2943] Distutils should generate a better error message when the SDK is not installed

2016-10-26 Thread STINNER Victor
STINNER Victor added the comment: Maybe we can add an entry to the Python FAQ, use this link and then add a link to the Microsoft article. -- ___ Python tracker ___ __

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't know anything about 'python._pth' and whether there is any bug with respect to that. As far as IDLE goes, there is no bug and this issue should be closed. In #24225, before the release of 3.6.0a2, most file names within idlelib were changed to short

[issue2943] Distutils should generate a better error message when the SDK is not installed

2016-10-26 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: @haypo, as I said, it's undesirable to link to a 3rd party site in a built-in error message because its availability and content are outside the dev team's control. -- ___ Python tracker

[issue28540] math.degrees(sys.float_info.max) should throw an OverflowError exception

2016-10-26 Thread Francisco Couzo
New submission from Francisco Couzo: Most functions in the math library raise an OverflowError when the arguments are finite but the result is not. >>> math.exp(sys.float_info.max) Traceback (most recent call last): File "", line 1, in OverflowError: math range error >>> math.degrees(sys.fl

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Martin Panter
Martin Panter added the comment: You say this is a regression. Can you point to a version that worked as you want? The IPv6 URL handling you pointed out seems to have been added to 2.4b1, and then backported to 2.3.5. I expect that earlier versions didn’t support IPv6 URLs at all. Also, it do

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Charles Stephens
Changes by Charles Stephens : -- title: httplib/http.client HTTPConnection._get_hostport() regression -> httplib/http.client HTTPConnection._set_hostport() regression ___ Python tracker ___

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Charles Stephens
Charles Stephens added the comment: Er, that is HTTPConnection._set_hostport() not _get_hostport() -- ___ Python tracker ___ ___ Pytho

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-26 Thread Ned Deily
Changes by Ned Deily : -- nosy: +roger.serwy, terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue28498] tk busy command

2016-10-26 Thread klappnase
klappnase added the comment: This is something entirely different, since the commands you list here in tk do not accept keyword arguments at all. -- ___ Python tracker ___ _

[issue28539] httplib/http.client HTTPConnection._get_hostport() regression

2016-10-26 Thread Charles Stephens
New submission from Charles Stephens: Back through the mists of time, there was a change to strip square brackets IPv6 address host literals in HTTPConnection._get_hostport(): https://hg.python.org/cpython/diff/433606e9546c/Lib/httplib.py However, the code mixed tabs and spaces and was "corect

[issue28046] Remove the concept of platform-specific directories

2016-10-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: 'make install' fails to remove the sysconfigdata module from lib-dynload and prints now instead: rm: cannot remove '/path/to/install/lib/python3.7/lib-dynload/_sysconfigdata_m.py': No such file or directory The patch fixes this. It also removes a useless

[issue28498] tk busy command

2016-10-26 Thread Miguel
Miguel added the comment: Using the same reasoning applied to tk_busy_hold(), we have to change also these methods: selection_set(self, first, last=None) -> selection_set(self, **kw) coords(self, value=None) -> coords(self, **kw) identify(self, x, y) -> identity(self, **kw) delet

[issue28498] tk busy command

2016-10-26 Thread klappnase
klappnase added the comment: Oops, I guess I violated PEP257 again, sorry, corrected version #4 attached. -- Added file: http://bugs.python.org/file45231/tk_busy_4.diff ___ Python tracker __

[issue28498] tk busy command

2016-10-26 Thread klappnase
klappnase added the comment: Ok, I hope I applied all the required changes now. The tests seemed to me to belong to test_misc, so I just added another function to the MiscTest class, I hope that is ok. The test runs well here, so I hope I did everything correctly. Thanks for your patience! ---

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-26 Thread Big Stone
Big Stone added the comment: Thanks Eryk, So the root cause is that IDLEX is no more compatible with IDLE in python3.6. ==> I can survive this loss... Now, I don't if the "python._pth" crash is a problem, as I can stay with "#Lib\site-packages" for now. -- ___

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-26 Thread Big Stone
Big Stone added the comment: Event Viewer says, when I put "Lub\site-packages" in python._pth: Nom de l’application défaillante python.exe, version : 3.6.112.1013, horodatage : 0x57fc0593 Nom du module défaillant : ucrtbase.dll, version : 10.0.14393.0, horodatage : 0x578997b5 Code d’except

[issue2943] Distutils should generate a better error message when the SDK is not installed

2016-10-26 Thread STINNER Victor
STINNER Victor added the comment: Idea: add a link to this article: https://aka.ms/vcpython or full link: https://blogs.msdn.microsoft.com/pythonengineering/2016/04/11/unable-to-find-vcvarsall-bat/ Related tweet from Steve Dower: https://twitter.com/zooba/status/791032320006328320 --

[issue2943] Distutils should generate a better error message when the SDK is not installed

2016-10-26 Thread Vivek Karumudi
Vivek Karumudi added the comment: I cannot understand the cryptic message could you please change it to something meaningful for "Unable to find vcvarsall.bat" -- nosy: +vivekkarumudi ___ Python tracker ___

[issue28524] Set default argument of logging.disable() to logging.CRITICAL

2016-10-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> vinay.sajip priority: normal -> low versions: +Python 3.7 ___ Python tracker ___ ___ P

[issue28212] Closing server in asyncio is not efficient

2016-10-26 Thread Константин Волков
Константин Волков added the comment: Seems that my example wasn`t good. Real reason in it was that closing server is not closing already established connections, and seems that it is not expected to do. Andrew, can you provide your example? I catched some problems but now I think it was becaus

[issue5996] abstract class instantiable when subclassing dict

2016-10-26 Thread R. David Murray
R. David Murray added the comment: My apologies, I added Nathaniel to nosy here when I closed the duplicate, but forgot to add a link to the closed issue: issue 28537. -- nosy: +r.david.murray ___ Python tracker __

[issue28530] Howto detect if an object is of type os.DirEntry

2016-10-26 Thread stephan
stephan added the comment: Some questions: - if posix.DirEntry is exposed I think nt.DirEntry and os.DirEntry (this one is mentioned in the documentation) should be exposed - will this bw backported to 3.5 lets say 3.5.3? -- ___ Python tracker

[issue28509] dict.update allocates too much

2016-10-26 Thread INADA Naoki
INADA Naoki added the comment: OK, I won't change it to allow additional resize while merging, after pre-resize. But current code has two problem: * Pre-resize happen even when resizing is not necessary. (ex. two dict has same keys). * Pre-resize allocates too much memory which doesn't make se

[issue26865] Meta-issue: support of the android platform

2016-10-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #28538: _socket module cross-compilation error on android-24 -- dependencies: +_socket module cross-compilation error on android-24 ___ Python tracker ___

[issue28538] _socket module cross-compilation error on android-24

2016-10-26 Thread Xavier de Gaye
New submission from Xavier de Gaye: On the latest Android API level (android-24), the if_nameindex function is now found by configure in Android libc. But the if_nameindex function and structure are still not defined in the Android net/if.h header. The compilation fails with: clang --sysroot

[issue2506] Add mechanism to disable optimizations

2016-10-26 Thread STINNER Victor
STINNER Victor added the comment: I would suggest -X noopt and use "noopt" in .pyc filenames. That's what I proposed in my PEP 511. -- ___ Python tracker ___

[issue2506] Add mechanism to disable optimizations

2016-10-26 Thread STINNER Victor
STINNER Victor added the comment: Since the discussion restarted, I reopen the issue and assigned it to Python 3.6. Maybe it's too late for such tiny change? -- resolution: rejected -> status: closed -> open versions: +Python 3.6 -Python 3.5 ___ Pyt

[issue23262] webbrowser module broken with Firefox 36+

2016-10-26 Thread Oleg Broytman
Oleg Broytman added the comment: Done. -- versions: -Python 2.7 Added file: http://bugs.python.org/file45228/webbrowser.py-3.5.patch ___ Python tracker ___ _

[issue23262] webbrowser module broken with Firefox 36+

2016-10-26 Thread Oleg Broytman
Changes by Oleg Broytman : Removed file: http://bugs.python.org/file45025/webbrowser.py-3.4-newfox.patch ___ Python tracker ___ ___ Python-bug

[issue23262] webbrowser module broken with Firefox 36+

2016-10-26 Thread Oleg Broytman
Changes by Oleg Broytman : Removed file: http://bugs.python.org/file45216/webbrowser.py-3.5-newfox.patch ___ Python tracker ___ ___ Python-bug

[issue23262] webbrowser module broken with Firefox 36+

2016-10-26 Thread Oleg Broytman
Changes by Oleg Broytman : Removed file: http://bugs.python.org/file45027/webbrowser.py-2.7-newfox.patch ___ Python tracker ___ ___ Python-bug

[issue23262] webbrowser module broken with Firefox 36+

2016-10-26 Thread Oleg Broytman
Changes by Oleg Broytman : Removed file: http://bugs.python.org/file45218/test_webbrowser.py-3.5-newfox.patch ___ Python tracker ___ ___ Pyth

[issue28353] os.fwalk() unhandled exception when error occurs accessing symbolic link target

2016-10-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue23262] webbrowser module broken with Firefox 36+

2016-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please provide a patch including all changes in unified format? -- ___ Python tracker ___ __

[issue27838] test_os.test_chown() failure on koobs-freebsd-current

2016-10-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch adds more verbose output in tests. Hope this will help to diagnose a problem. It also fixes test_chown_without_permission which can fail if run as a user next after root (uid=1 or like). -- keywords: +patch nosy: +serhiy.storchaka Add