[issue24725] test_socket testFDPassEmpty fails on OS X 10.11 DP with Cannot allocate memory

2015-07-26 Thread Ned Deily
New submission from Ned Deily: == ERROR: testFDPassEmpty (test.test_socket.RecvmsgSCMRightsStreamTest) -- Traceback (most recent call last): File

[issue24723] The new typing module is not documented :-(

2015-07-26 Thread Berker Peksag
Berker Peksag added the comment: This is a duplicate of issue 24272. -- nosy: +berker.peksag resolution: - duplicate stage: - resolved status: open - closed superseder: - PEP 484 docs ___ Python tracker rep...@bugs.python.org

[issue24272] PEP 484 docs

2015-07-26 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag stage: needs patch - patch review versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24272 ___

[issue24721] The result of calling dict.* methods on OrderedDict is undefined.

2015-07-26 Thread Mark Shannon
Mark Shannon added the comment: I think this is a bug. This is not a normal case of subclassing as the interpreter calls the C API PyDict_XXX() in many cases where a dictionary subclass is passed in. For example: class C: pass c = C() # Liskov substitution principle says this is OK.

[issue24585] Windows installer does not detect existing installs

2015-07-26 Thread Steve Dower
Steve Dower added the comment: Sorry to do that to you Larry, though I have done extra testing on these changes (hence the fake version support) so I'm confident they work, just not yet 100% confident the user experience is going to be correct. --

[issue24728] Build fails when threads are disabled

2015-07-26 Thread Louis Dassy
New submission from Louis Dassy: If threads are disabled using --without-threads, the build of Python/pythonrun.c will fail because PyGILState_GetThisThreadState() is undefined. I've attached the trivial fix, modeled after 29f51c4ae11a. -- components: Interpreter Core files:

[issue24599] urllib URLopener().open https url returns 501 Not Implemented when https_proxy env var is http://

2015-07-26 Thread Stefano Mazzucco
Stefano Mazzucco added the comment: Any thoughts from the core Python developers? It seems to me that this is a confirmed bug with a working fix (that may need further review, but indeed works). So, hopefully, this issue could be resolved fairly quickly. --

[issue24729] Input and Output tutorial erroneously references default encoding UTF-8

2015-07-26 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24729 ___ ___ Python-bugs-list

[issue24727] Expand readline module

2015-07-26 Thread Barney Stratford
Changes by Barney Stratford barney_stratf...@fastmail.fm: -- components: +Extension Modules -Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24727 ___

[issue24720] Python install help

2015-07-26 Thread Steve Dower
Steve Dower added the comment: So I've done some quick research but don't have a lot of time. You're getting error code 0x80240017 from wusa.exe, which is trying to install a Windows Update. This thread looks like it may have some solutions on it:

[issue24725] test_socket testFDPassEmpty fails on OS X 10.11 DP with Cannot allocate memory

2015-07-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree this needs a radar when it works on older releases of the OS and not on the 10.11 beta's. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24725

[issue24727] Expand readline module

2015-07-26 Thread Barney Stratford
New submission from Barney Stratford: I have a use case where a daemon thread needs to write periodic updates to sys.stdout. I'd prefer it not to print in the middle of a command being typed. In order to achieve this, I have added to the readline module. There is now a function to determine

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2015-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, I were testing on a Linux machine and forgot that results are OS depending. I agree, that test should less depend on implementation details. As far as _locale._getdefaultlocale is defined only on Windows and UTF-8 is not valid locale on Windows, I

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-07-26 Thread Fabian
Fabian added the comment: Ah okay. If you look at Eric's response you'll see that this is a different issue and tracked in issue24721. I mean it is possible that urllib3 does it too (it's devs would need to answer that) but in the end highly unlikely as it doesn't happen on versions before

[issue24502] OS X installer provides flat sub-packages with no version numbers

2015-07-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: What's your plan for installers for Py3.6? In a world where backward compatibility is not an issue I'd definitely advocate trying to move to some kind off .app as the installation. That is: have a {SomeName}.app that contains the entire Python installation.

[issue24729] Input and Output tutorial erroneously references default encoding UTF-8

2015-07-26 Thread Jason R. Coombs
New submission from Jason R. Coombs: In Doc/tutorial/inputoutput.rst, the docs state this about opening a file: Normally, files are opened in :dfn:`text mode`, that means, you read and write strings from and to the file, which are encoded in a specific encoding (the default being UTF-8).

[issue24621] zipfile.BadZipFile: File is not a zip file

2015-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is common to prepend some data (e.g. self-extractor exacutable) to ZIP file, but it is not common to append data to ZIP file. In this case all appended data is zero bytes, and it looks as particularity of particular software rather than common case. Thus

[issue24726] OrderedDict has strange behaviour when dict.__setitem__ is used.

2015-07-26 Thread Marco Paolini
Marco Paolini added the comment: Linking related issues http://bugs.python.org/issue24721 http://bugs.python.org/issue24667 and http://bugs.python.org/issue24685 -- nosy: +mpaolini ___ Python tracker rep...@bugs.python.org

[issue24716] Multiple fdopen() on mkstemp() descriptor crashes py27 interpreter

2015-07-26 Thread Thomas Krijnen
Thomas Krijnen added the comment: Thanks for the feedback. I realize the example code is rather bad, I was just surprised to see the interpreter actually crash. Good to know in py3 things are more robust. Closed. -- resolution: - not a bug status: open - closed

[issue24619] async/await parser issues

2015-07-26 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- stage: commit review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24619 ___ ___

[issue24726] OrderedDict has strange behaviour when dict.__setitem__ is used.

2015-07-26 Thread Mark Shannon
New submission from Mark Shannon: Setting an item in an ordered dict via dict.__setitem__, or by using it as an object dictionary and setting an attribute on that object, creates a dictionary whose repr is: OrderedDict([NULL]) Test case attached. -- components: Library (Lib) files:

[issue20544] Use specific asserts in operator tests

2015-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7bf3d91f8d6c by Antoine Pitrou in branch 'default': Closes #20544: use specific asserts in operator tests. https://hg.python.org/cpython/rev/7bf3d91f8d6c -- nosy: +python-dev resolution: - fixed stage: commit review - resolved status: open

[issue23441] rlcompleter: tab on empty prefix = insert spaces

2015-07-26 Thread David Beazley
David Beazley added the comment: It's still broken on Python 3.5b4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23441 ___ ___

[issue24695] Don't print traceback header if traceback is None in TracebackException

2015-07-26 Thread Berker Peksag
Berker Peksag added the comment: Looks like a cache issue. I've just fixed it: https://docs.python.org/3.5/whatsnew/changelog.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24695 ___

[issue19853] Add support for Bitrig to 2.7

2015-07-26 Thread Sevan
Sevan added the comment: Is there any possibility this could be reconsidered, it's 2015 and Bitrig is still a thing under active development and the proposed patch set essentially adds Bitrig to the if statements where OpenBSD is already stated. This would of benefit for people working on 3rd

[issue24730] Returning a float via a method yields in an approximate value received

2015-07-26 Thread Dorin
New submission from Dorin: I was making a script to get some best configurations in a recursive manner when I noticed a weird result. In the attached script the method should return 1.3 but it received 1.27 -- components: Macintosh files: recursive.py messages: 247444 nosy:

[issue24695] Don't print traceback header if traceback is None in TracebackException

2015-07-26 Thread Adam Bartoš
Adam Bartoš added the comment: I meant this one: https://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-beta-4 . -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24695 ___

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2015-07-26 Thread Alessandro Cucci
Alessandro Cucci added the comment: udloaded a new patch, hope i had all bugs fixed! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19475 ___

[issue18181] PEP447: Add type.__getdescriptor__

2015-07-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Todays version of the patch adds more tests, especially for exceptions in __getdescriptor__ during the lookup of special methods. Those tests were added because the C code couldn't get exceptions other than AttributeError before this patch and can get those

[issue21724] resetwarnings doesn't reset warnings registry

2015-07-26 Thread Eli Collins
Eli Collins added the comment: I'm not sure how generally applicable this is, but it might be useful as a starting point: Attached is a bit of code I've been using: it's a reset_warnings_registry() context manager, which backs up clears the registry state for the duration of the context,

[issue23441] rlcompleter: tab on empty prefix = insert spaces

2015-07-26 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch with a simple test case. -- nosy: +berker.peksag stage: commit review - patch review versions: +Python 3.6 Added file: http://bugs.python.org/file40032/issue23441.diff ___ Python tracker

[issue24727] Expand readline module

2015-07-26 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +twouters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24727 ___ ___ Python-bugs-list mailing list

[issue24695] Don't print traceback header if traceback is None in TracebackException

2015-07-26 Thread Adam Bartoš
Adam Bartoš added the comment: Ok, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24695 ___ ___ Python-bugs-list mailing list

[issue24502] OS X installer provides flat sub-packages with no version numbers

2015-07-26 Thread Ned Deily
Ned Deily added the comment: Yes, providing Python on OS X via an app bundle, rather than an installer, seems like the way to go moving forward. But, yes, there are enough potential compatibility issues that a PEP for it is in order to make sure the major use cases are identified and

[issue24730] Returning a float via a method yields in an approximate value received

2015-07-26 Thread Zachary Ware
Zachary Ware added the comment: https://docs.python.org/3/tutorial/floatingpoint.html -- nosy: +zach.ware resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24730

[issue19853] Add support for Bitrig to 2.7

2015-07-26 Thread Alex Walters
Alex Walters added the comment: The vast majority of the patch is adding || Defined('bitrig') after Defined('openbsd'). I don't know if that is an argument for or against, but on its face, its just working around an issue of an openbsd fork not identifying as openbsd. -- nosy:

[issue24732] 3.5.0b3 Windows accept() on unready non-blocking socket raises PermissionError

2015-07-26 Thread Bryan G. Olson
New submission from Bryan G. Olson: In Python 3.4 on Windows 7, the code: import socket sock = socket.socket() sock.bind(('127.0.0.1', 52384)) sock.listen(5) sock.setblocking(False) csock, addr = sock.accept() Raised: Traceback (most recent call last): File

[issue24732] 3.5.0b3 Windows accept() on unready non-blocking socket raises PermissionError

2015-07-26 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the report! I'm pretty sure I've noticed the effects of this, but hadn't had a chance to look into it. With your nice small test case, I can start bisecting and try to figure out what caused it. -- priority: normal - high versions: +Python

[issue24731] Incorrect assert in str_subtype_new

2015-07-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka stage: - needs patch type: - crash versions: +Python 3.4, Python 3.6 ___ Python tracker rep...@bugs.python.org

[issue24731] Incorrect assert in str_subtype_new

2015-07-26 Thread Kevin Modzelewski
New submission from Kevin Modzelewski: (Using python 3 terminology) str_subtype_new is the function that creates instances of any subtypes of bytes (ie is called by bytes_new if the requested type is not PyBytes_Type -- looks like this function's name comes from python 2). Its approach is

[issue17527] PATCH as valid request method in wsgiref.validator

2015-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5919531c0b03 by Robert Collins in branch '2.7': Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella. https://hg.python.org/cpython/rev/5919531c0b03 New changeset 1a5b3dbafcca by Robert Collins in branch '3.4': Issue #17527: Add

[issue17527] PATCH as valid request method in wsgiref.validator

2015-07-26 Thread Robert Collins
Robert Collins added the comment: Applied to 2.7/3.4/3.5(for .1)/3.6 -- nosy: +rbcollins resolution: - fixed stage: commit review - resolved status: open - closed versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org

[issue19853] Add support for Bitrig to 2.7

2015-07-26 Thread Sevan
Sevan added the comment: As discussed with Alex on IRC if that's the case then OpenBSD should identify as NetBSD DragonFlyBSD should identify as FreeBSD ?? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19853

[issue24695] Don't print traceback header if traceback is None in TracebackException

2015-07-26 Thread Adam Bartoš
Adam Bartoš added the comment: Just out of my curiosity – why is not this issue listed in Python 3.5b4 changelog even though the issue is fixed there? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24695

[issue24695] Don't print traceback header if traceback is None in TracebackException

2015-07-26 Thread Berker Peksag
Berker Peksag added the comment: Could you please share the link of the changelog you've mentioned? Unless I'm missing something, this issue is already listed in the changelog: https://hg.python.org/releasing/3.5/file/f65605b99cb4/Misc/NEWS#l37 --

[issue24729] Input and Output tutorial erroneously references default encoding UTF-8

2015-07-26 Thread Alessandro Cucci
Alessandro Cucci added the comment: corrected -- keywords: +patch nosy: +acucci Added file: http://bugs.python.org/file40033/issue24729.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24729

[issue24613] array.fromstring Use After Free

2015-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution John. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24613 ___ ___

[issue24683] Type confusion in json encoding

2015-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset b3d0bf112f70 by Serhiy Storchaka in branch '3.4': Issue #24683: Fixed crashes in _json functions called with arguments of https://hg.python.org/cpython/rev/b3d0bf112f70 New changeset ef4d09399b99 by Serhiy Storchaka in branch '3.5': Issue #24683:

[issue24613] array.fromstring Use After Free

2015-07-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24613 ___

[issue24683] Type confusion in json encoding

2015-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a1266ef1b5d by Serhiy Storchaka in branch '2.7': Issue #24683: Fixed a crash in _json.make_encoder() called with non-dict 1st argument. https://hg.python.org/cpython/rev/0a1266ef1b5d -- ___ Python

[issue24683] Type confusion in json encoding

2015-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report paul. Thanks for review Raymond. -- resolution: - not a bug stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org