[issue24725] test_socket testFDPassEmpty fails on OS X 10.11 DP with Cannot allocate memory
New submission from Ned Deily: == ERROR: testFDPassEmpty (test.test_socket.RecvmsgSCMRightsStreamTest) -- Traceback (most recent call last): File /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/test/test_socket.py, line 2799, in testFDPassEmpty len(MSG), 10240), File /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/test/test_socket.py, line 1907, in doRecvmsg result = sock.recvmsg(bufsize, *args) OSError: [Errno 12] Cannot allocate memory == ERROR: testFDPassEmpty (test.test_socket.RecvmsgIntoSCMRightsStreamTest) -- Traceback (most recent call last): File /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/test/test_socket.py, line 2799, in testFDPassEmpty len(MSG), 10240), File /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/test/test_socket.py, line 1998, in doRecvmsg result = sock.recvmsg_into([buf], *args) OSError: [Errno 12] Cannot allocate memory -- Ran 507 tests in 28.819s FAILED (errors=2, skipped=122) test test_socket failed Same failures seen with 3.4.3 and 3.5.0b4 installers on 10.11 (El Capitan) Developer Previews 2 and 4. Passes on 10.10.x and earlier recent OS X systems. There have been other problems in this area on OS X in the past (see Issue12958). Probably need to open a RADAR. -- components: Macintosh messages: 247414 nosy: ned.deily, ronaldoussoren priority: normal severity: normal status: open title: test_socket testFDPassEmpty fails on OS X 10.11 DP with Cannot allocate memory versions: Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24725 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24723] The new typing module is not documented :-(
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 http://bugs.python.org/issue24723 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24272] PEP 484 docs
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24721] The result of calling dict.* methods on OrderedDict is undefined.
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. c.__dict__ = OrderedDict() c.a = 1 All access to the ordered dict is via the dict.__setitem__ method. I think this should be documented. -- nosy: +Mark.Shannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24721 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24585] Windows installer does not detect existing installs
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24585 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24728] Build fails when threads are disabled
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: without_threads.patch keywords: patch messages: 247430 nosy: louis.dassy priority: normal severity: normal status: open title: Build fails when threads are disabled type: compile error versions: Python 3.4 Added file: http://bugs.python.org/file40030/without_threads.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24728 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24599] urllib URLopener().open https url returns 501 Not Implemented when https_proxy env var is http://
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24599 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24729] Input and Output tutorial erroneously references default encoding UTF-8
Changes by Jason R. Coombs jar...@jaraco.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24729 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24727] Expand readline module
Changes by Barney Stratford barney_stratf...@fastmail.fm: -- components: +Extension Modules -Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24727 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24720] Python install help
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: http://answers.microsoft.com/en-us/windows/forum/windows_8-winapps/installing-and-updating-built-in-apps-not-working/57ae6edc-0df2-46da-9a96-106cc4098c78 looked like -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24720 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24725] test_socket testFDPassEmpty fails on OS X 10.11 DP with Cannot allocate memory
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24727] Expand readline module
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 whether we are reading a line, and one to call rl_forced_update_display. These functions enable me to say (in the daemon thread): def describe (indicator): if readline.reading_line (): print () print (indicator.description) readline.forced_update_display () else: print (indicator.description) I have read PEP7, and have made patchtest on my patch. -- components: Library (Lib) files: patch.txt messages: 247424 nosy: Barney Stratford priority: normal severity: normal status: open title: Expand readline module type: enhancement versions: Python 3.5, Python 3.6 Added file: http://bugs.python.org/file40029/patch.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24727 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English
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 think there is no need to patch _locale for testing. But getlocale() and getpreferredencoding() should be consistent with getdefaultlocale() (and getlocale() is yet one way to test private function _parse_localename()). setlocale() should work with the result of getlocale() and getdefaultlocale(). Are following tests passed on OSX? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18378 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24667] OrderedDict.popitem()/__str__() raises KeyError
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 3.5b2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24667 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24502] OS X installer provides flat sub-packages with no version numbers
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. Arguably SomeName could be IDLE, but it could also be a new custom GUI that does stuff. There'd obviously also need to be a documented way to get to the actual sys.prefix from the command-line. The advantage of this is that users don't have to use on an installer at all, just drop {SomeName}.app in the filesystem and use it. Getting this to work might be quite a lot of work though, the current binaries are not linked in such a way that this is possible and pyvenv also complicates things. A major disadvantage is that this likely breaks at least some users workflow. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24502 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24729] Input and Output tutorial erroneously references default encoding UTF-8
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). That statement is directly contradicted by the docs for open (Doc/library/functions.rst) which indicate: In text mode, if encoding is not specified the encoding used is platform dependent: locale.getpreferredencoding(False) is called to get the current locale encoding. The implementation matches the latter indication. -- assignee: docs@python components: Documentation, IO messages: 247433 nosy: docs@python, jason.coombs priority: normal severity: normal status: open title: Input and Output tutorial erroneously references default encoding UTF-8 versions: Python 3.4, Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24729 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24621] zipfile.BadZipFile: File is not a zip file
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 I am closing this issue. -- resolution: - rejected stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24621 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24726] OrderedDict has strange behaviour when dict.__setitem__ is used.
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 http://bugs.python.org/issue24726 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24716] Multiple fdopen() on mkstemp() descriptor crashes py27 interpreter
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24716 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24619] async/await parser issues
Changes by Yury Selivanov yseliva...@gmail.com: -- stage: commit review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24619 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24726] OrderedDict has strange behaviour when dict.__setitem__ is used.
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: test.py messages: 247421 nosy: Mark.Shannon, eric.snow priority: normal severity: normal status: open title: OrderedDict has strange behaviour when dict.__setitem__ is used. type: behavior versions: Python 3.6 Added file: http://bugs.python.org/file40028/test.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24726 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20544] Use specific asserts in operator tests
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 - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20544 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23441] rlcompleter: tab on empty prefix = insert spaces
David Beazley added the comment: It's still broken on Python 3.5b4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23441 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24695] Don't print traceback header if traceback is None in TracebackException
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19853] Add support for Bitrig to 2.7
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 party packaging systems who would also have to carry this patch set otherwise. -- nosy: +venture37 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19853 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24730] Returning a float via a method yields in an approximate value received
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: ned.deily, ronaldoussoren, terminadoru priority: normal severity: normal status: open title: Returning a float via a method yields in an approximate value received type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file40034/recursive.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24730 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24695] Don't print traceback header if traceback is None in TracebackException
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18181] PEP447: Add type.__getdescriptor__
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 know. This requires extra code, and hence extra tests (which exposed a number of crashers...). The code should be solid now. Note that the new error handling code isn't optimal style-wise, at some places I test for PyErr_Occurred() instead of adding error returns to functions now returning 'void' to keep the patch smaller and easier to review. -- Added file: http://bugs.python.org/file40027/pep447-2015-07-26.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18181 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21724] resetwarnings doesn't reset warnings registry
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, then restores it afterwards. It's particularly useful for unittests, just create call the __enter__() method during setUp(), and attach __exit__() via addCleanup. Each test is then gets it's own isolated warnings registry. -- nosy: +eli.collins Added file: http://bugs.python.org/file40031/reset_warning_registry.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21724 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23441] rlcompleter: tab on empty prefix = insert spaces
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 rep...@bugs.python.org http://bugs.python.org/issue23441 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24727] Expand readline module
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 Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24695] Don't print traceback header if traceback is None in TracebackException
Adam Bartoš added the comment: Ok, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24695 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24502] OS X installer provides flat sub-packages with no version numbers
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 addressed. I plan to work on that this fall. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24502 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24730] Returning a float via a method yields in an approximate value received
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19853] Add support for Bitrig to 2.7
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: +tritium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19853 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24732] 3.5.0b3 Windows accept() on unready non-blocking socket raises PermissionError
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 socket_bug_test.py, line 8, in module csock, addr = sock.accept() File c:\bin\Python34\lib\socket.py, line 187, in accept fd, addr = self._accept() BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately In Python 3.5.0b3 on the same system, it is raising: Traceback (most recent call last): File socket_bug_test.py, line 8, in module csock, addr = sock.accept() File c:\bin\Python35\lib\socket.py, line 195, in accept fd, addr = self._accept() PermissionError: [WinError 5] Access is denied This is a problem for other parts of the Standard Library. I hit it playing with asyncio, where in Lib\asyncio\selector_events.py the function BaseSelectorEventLoop._sock_accept() is prepared for an unready socket to raise BlockingIOError or InterruptedError, but does not catch the WinError: try: conn, address = sock.accept() conn.setblocking(False) except (BlockingIOError, InterruptedError): self.add_reader(fd, self._sock_accept, fut, True, sock) except Exception as exc: fut.set_exception(exc) else: fut.set_result((conn, address)) There are other calls to accept in accept() in asyncio, that I haven't tested but also look adversely affected. The older asyncore module looks to have a similar problem. In dispatcher.accept(): def accept(self): # XXX can return either an address pair or None try: conn, addr = self.socket.accept() except TypeError: return None except OSError as why: if why.args[0] in (EWOULDBLOCK, ECONNABORTED, EAGAIN): return None else: raise else: return conn, addr The 'except OSError as why' will catch the WinError, but why.args[0] will be errno.EACCES = 13, permission denied, which is not equal to any of anticipated errors. My system according to Python: import sys sys.version '3.5.0b3 (default, Jul 5 2015, 07:00:46) [MSC v.1900 64 bit (AMD64)]' sys.getwindowsversion() sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1') That's Windows 7 Professional, 64-bit, with Service pack 1. It has an AND Phenom II X6 1055T Processor 2.8 GHz, and 8GB of memory. -- components: Windows messages: 247452 nosy: bryangeneolson, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: 3.5.0b3 Windows accept() on unready non-blocking socket raises PermissionError type: behavior versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24732 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24732] 3.5.0b3 Windows accept() on unready non-blocking socket raises PermissionError
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 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24732 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24731] Incorrect assert in str_subtype_new
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 http://bugs.python.org/issue24731 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24731] Incorrect assert in str_subtype_new
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 to create a bytes object using the same arguments, and then copy the resulting data into the subclass-instance's memory. It does tmp = bytes_new(PyBytes_Type, args, kwds); [error checking] assert(PyBytes_CheckExact(tmp)); The problem is that bytes_new can return a subclass of bytes, if the argument provides a __bytes__ method that returns a bytes-subtype. For example class MyBytes(bytes): pass class C(object): def __bytes__(self): return MyBytes(bhello world) MyBytes(C()) # fails the assert This doesn't seem to cause any issues other than the failing assert in debug builds; it seems like the assert should just be relaxed from PyBytes_CheckExact to PyBytes_Check since that's enough to guarantee that the upcoming manipulation of the tmp variable is going to be valid. Also, this would match how unicode_subtype_new behaves. This bug also applies to Python 2, since I think the relevant code is the same, though in that case it applies to str instead of bytes. -- components: Interpreter Core messages: 247451 nosy: Kevin Modzelewski priority: normal severity: normal status: open title: Incorrect assert in str_subtype_new versions: Python 2.7, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24731 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17527] PATCH as valid request method in wsgiref.validator
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 PATCH to wsgiref.validator. Patch from Luca Sbardella. https://hg.python.org/cpython/rev/1a5b3dbafcca New changeset cb0c56f87a47 by Robert Collins in branch '3.5': Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella. https://hg.python.org/cpython/rev/cb0c56f87a47 New changeset d8d148624004 by Robert Collins in branch 'default': Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella. https://hg.python.org/cpython/rev/d8d148624004 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17527 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17527] PATCH as valid request method in wsgiref.validator
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 http://bugs.python.org/issue17527 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19853] Add support for Bitrig to 2.7
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24695] Don't print traceback header if traceback is None in TracebackException
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24695] Don't print traceback header if traceback is None in TracebackException
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 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24695 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24729] Input and Output tutorial erroneously references default encoding UTF-8
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24613] array.fromstring Use After Free
Serhiy Storchaka added the comment: Thank you for your contribution John. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24613 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24683] Type confusion in json encoding
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: Fixed crashes in _json functions called with arguments of https://hg.python.org/cpython/rev/ef4d09399b99 New changeset 7de4abf4eed2 by Serhiy Storchaka in branch 'default': Issue #24683: Fixed crashes in _json functions called with arguments of https://hg.python.org/cpython/rev/7de4abf4eed2 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24683 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24613] array.fromstring Use After Free
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24683] Type confusion in json encoding
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 tracker rep...@bugs.python.org http://bugs.python.org/issue24683 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24683] Type confusion in json encoding
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 http://bugs.python.org/issue24683 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com