[issue27127] Never have GET_ITER not followed by FOR_ITER

2016-06-05 Thread Demur Rumed
Demur Rumed added the comment: I've gotten most tests to past by having FOR_ITER be traced as if the instruction index is that of the corresponding FOR_BEGIN. test_sys_settrace still fails on test_15_loops because an empty loop body doesn't have the 'pass' line traced (ie when FOR_ITER starts

[issue26448] dis.findlabels ignores EXTENDED_ARG

2016-06-05 Thread Eric Fahlgren
Eric Fahlgren added the comment: Thanks, Serhiy. I sort of figured that it would get fixed with the wordcode rework, and was going to verify that it was when 3.6 settled down. On Sun, Jun 5, 2016 at 8:30 AM, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > This bug was fixe

[issue26329] os.path.normpath("//") returns //

2016-06-05 Thread Jack McCracken
Jack McCracken added the comment: Hey all - I would love to write a patch :) Working on it! -- nosy: +Jack.McCracken ___ Python tracker ___ __

[issue26467] Add async magic method support to unittest.mock.Mock

2016-06-05 Thread Yusuke Tsutsumi
Yusuke Tsutsumi added the comment: Taking a look at the code, this may require a bit more discussion. Mock's classes create copies of themselves when an attribute is accessed. As such, I can't just add __aexit__ and have it generate a different mock type entirely, unless I know exactly what an

[issue27229] In tree cross-build fails copying Include/graminit.h to itself

2016-06-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Yes, those changes incorrectly assume that the source directory and the build directory are always different (using VPATH). Alex patch LGTM, this other patch overwrites the graminit.[ch] files, not sure if this is better. -- Added file: http://bugs.pyt

[issue26329] os.path.normpath("//") returns //

2016-06-05 Thread Jack McCracken
Jack McCracken added the comment: Here's the patch I made. -- keywords: +patch Added file: http://bugs.python.org/file43250/add-many-slash-path-note.patch ___ Python tracker ___

[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-06-05 Thread Jack McCracken
Jack McCracken added the comment: Don't know how useful this will be, but here's a crash report from Mac OS X 10.11 with Klamann's example (Python 3.5). -- nosy: +Jack.McCracken Added file: http://bugs.python.org/file43251/coredump_macosx10.11.5.crash __

[issue26336] Expose regex bytecode as attribute of compiled pattern object

2016-06-05 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Yes, you can get at it with ctypes. I released a small (and virtually untested) library at https://github.com/JelleZijlstra/regdis that provides dis-like capabilities. -- ___ Python tracker

[issue27236] Add CHAINED_COMPARE_OP opcode

2016-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please stop adding new opcodes for rare use cases. That represents a sharp departure from our entire history of adding opcodes. Code like "x = a < b > c < d" almost never comes up. -- nosy: +rhettinger ___ Pytho

[issue26867] test_ssl test_options fails on ubuntu 16.04

2016-06-05 Thread Martin Panter
Martin Panter added the comment: This test is already decorated with @skip_if_broken_ubuntu_ssl. I’m not sure Python should go too far out of its way to handle downstream patches, but it seems there is a precedent here. -- nosy: +martin.panter ___ P

[issue23401] Add pickle support of Mapping views

2016-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Raymond, what is your opinion? Whether and how to pickle should be at the discretion of a concrete class rather than a requirement for being a mapping. For example, it may not make any sense for a persistent dictionary such as a FileDict or an SQLDict.

[issue27237] Kafka Python Consumer Messages gets truncated

2016-06-05 Thread Rahul
New submission from Rahul: Snippet code is below: from kafka import KafkaConsumer from kafka.client import KafkaClient from kafka.consumer import SimpleConsumer consumer = KafkaConsumer('eventdetails_ingestion' , group_id='1',bootstrap_servers=‘:9092', max_partition_fetch_bytes=1055) fo

[issue26867] test_ssl test_options fails on ubuntu 16.04

2016-06-05 Thread Ned Deily
Ned Deily added the comment: I just spoke with @doko about this here at PyCon. I think we came to the conclusion it might be time to consider removing the old @skip_if_broken_ubuntu_ssl decorator and focus on making the tests work with the most recent releases since pretty much every distribu

[issue27215] Docstrings of Sequence and MutableSequence seems not right

2016-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think you're reading too much into the docs. Most useful classes provide a __new__ or __init__ to put data into instances. The docs are simply saying that that responsibility lies with the implementer rather than with the ABC. IMO, the docs are more use

[issue27237] Kafka Python Consumer Messages gets truncated

2016-06-05 Thread Ned Deily
Ned Deily added the comment: Sorry, kafka is a third-party package, not part of the Python Standard Library. Suggest you pursue this with the Kafka project: http://kafka-python.readthedocs.io/en/master/support.html -- nosy: +ned.deily resolution: -> third party stage: -> resolved st

[issue27236] Add CHAINED_COMPARE_OP opcode

2016-06-05 Thread Demur Rumed
Demur Rumed added the comment: @rhettinger can you clarify your opinion in relation to #27140 with #27095 & #27213 in mind? I agree that CHAINED_COMPARE_OP is unnecessary -- ___ Python tracker ___

[issue27072] random.getrandbits is limited to 2**31-1 bits on 64-bit Windows

2016-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry Steven, I'm going to mark this as rejected on the grounds that it is likely to do more harm than good. We could in fact make the range larger but it easily creates terrible effects (encouraging bad design and creating a non-interruptable, long-runnin

[issue27238] Bare except: usages in turtle.py

2016-06-05 Thread Jelle Zijlstra
New submission from Jelle Zijlstra: Will add a patch -- assignee: Jelle Zijlstra components: Library (Lib) messages: 267493 nosy: Jelle Zijlstra, serhiy.storchaka priority: normal severity: normal status: open title: Bare except: usages in turtle.py versions: Python 3.6

[issue26014] Guide users to the newer package install instructions

2016-06-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71fc5b246f5b by Ned Deily in branch '2.7': Issue #26014: Guide 2.7 users to the new packaging documentation: https://hg.python.org/cpython/rev/71fc5b246f5b New changeset f5fd646b265b by Ned Deily in branch '3.5': Issue #26014: Update 3.x packaging d

[issue22558] Missing doc links to source code for Python-coded modules.

2016-06-05 Thread Yoni Lavi
Yoni Lavi added the comment: Thank you very much for the detailed review, Nathan. Attached is a new patch that resolves the merge issues, and some of the other issues you mentioned. Concerning the index reference in marshal.rst , ah, yes, I missed that it only related to a single paragraph. I

[issue26014] Guide users to the newer package install instructions

2016-06-05 Thread Ned Deily
Ned Deily added the comment: Thanks, Susan, for your suggested patch. I expanded on it to address all of the issues Nick brought up and then some, such as also updating to the changed setuptools doc link. Pushed for release in 2.7.12, 3.5.2, and 3.6.0. -- nosy: +ned.deily resolution:

[issue27229] In tree cross-build fails copying Include/graminit.h to itself

2016-06-05 Thread Martin Panter
Martin Panter added the comment: I was a little concerned that Alex’s patch used “test A -ef B”, which is not specified by Posix. But it is apparently widely supported (and consider we would only need it for cross compilation). Anyway, I was going to suggest test "$(srcdir)" == "." instead, bu

[issue17598] mingw: init system calls

2016-06-05 Thread Martin Panter
Martin Panter added the comment: Part of this patch is superceded by revision c7adad17f663 (Issue 22579). Here is a patch of the remaining significant changes. But I don’t know enough about Modules/Setup.config.in and Modules/Setup.dist to give it a proper review. -- nosy: +martin.pant

[issue27156] IDLE: remove unused code

2016-06-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 166784c40be8 by Terry Jan Reedy in branch 'default': Issue #27156: Remove more unused idlelib code. https://hg.python.org/cpython/rev/166784c40be8 -- ___ Python tracker

[issue27156] IDLE: remove unused code

2016-06-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3 and 4 removed. Closing at least until I find something else that is not part of a refactoring but needs at least a question answered. -- components: +IDLE nosy: -python-dev resolution: -> fixed stage: needs patch -> resolved status: open -> closed

[issue27164] zlib can't decompress DEFLATE using shared dictionary

2016-06-05 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24790] Idle: improve stack viewer

2016-06-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Deleted .keys in 8.6. -- versions: -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ ___ P

[issue24759] Idle: require tk 8.5 and ttk widgets, and drop unneeded code.

2016-06-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Fixed whitespace and added comment. -- Added file: http://bugs.python.org/file43254/require85-v3.diff ___ Python tracker ___ ___

[issue26867] test_ssl test_options fails on ubuntu 16.04

2016-06-05 Thread Xiang Zhang
Xiang Zhang added the comment: @skip_if_broken_ubuntu_ssl doesn't work in this case. `hasattr(ssl, 'PROTOCOL_SSLv2')` returns False. -- ___ Python tracker ___ __

[issue26839] Python 3.5 running on Linux kernel 3.17+ can block at startup or on importing the random module on getrandom()

2016-06-05 Thread Martin Panter
Martin Panter added the comment: Minor thing: the patch has tabbed intentation in places rather than spaces. As I understand it, if there is no entropy initialized, this patch will fall back to reading /dev/urandom, which will return predictable data (opposite of “random” data!). But since we

[issue27110] smtpd.__all__ list is incomplete

2016-06-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset bcc0c3fd4a40 by Martin Panter in branch 'default': Issue #27110: Add smtpd.SMTPChannel to __all__, by Jacek Kołodziej https://hg.python.org/cpython/rev/bcc0c3fd4a40 -- nosy: +python-dev ___ Python tracker

[issue27105] cgi.__all__ is incomplete

2016-06-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 74ed6f3fb8d2 by Martin Panter in branch 'default': Issue #27105: Add cgi.test() to __all__, based on Jacek Kołodziej’s patch https://hg.python.org/cpython/rev/74ed6f3fb8d2 -- nosy: +python-dev ___ Python

[issue27109] plistlib.__all__ list is incomplete

2016-06-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 450171f53e81 by Martin Panter in branch 'default': Issue #27109: Add InvalidFileException to __all__, by Jacek Kołodziej https://hg.python.org/cpython/rev/450171f53e81 -- nosy: +python-dev ___ Python trac

[issue27108] mimetypes.__all__ list is incomplete

2016-06-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2057b0af1c52 by Martin Panter in branch 'default': Issue #27108: Add missing names to mimetypes.__all__, by Jacek Kołodziej https://hg.python.org/cpython/rev/2057b0af1c52 -- nosy: +python-dev ___ Python t

[issue27107] mailbox.__all__ list is incomplete

2016-06-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4705b7597c86 by Martin Panter in branch 'default': Issue #27107: Add exception classes to mailbox.__all__, by Jacek Kołodziej https://hg.python.org/cpython/rev/4705b7597c86 -- nosy: +python-dev ___ Python

[issue23883] __all__ lists are incomplete

2016-06-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset a36c7f87eba9 by Martin Panter in branch 'default': Issue #23883: News updates for __all__ attributes https://hg.python.org/cpython/rev/a36c7f87eba9 -- ___ Python tracker

[issue26839] Python 3.5 running on Linux kernel 3.17+ can block at startup or on importing the random module on getrandom()

2016-06-05 Thread Martin Panter
Martin Panter added the comment: Maybe an alternative would be to add a special PYTHONHASHSEED=best-effort (or whatever) value that says if there is no entropy available, use a predictable hash seed. That would force whoever starts the Python process to be aware of the problem. -- __

[issue27107] mailbox.__all__ list is incomplete

2016-06-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset d62e57958e7c by Martin Panter in branch 'default': Issue #27107: mailbox.fcntl = None on Windows https://hg.python.org/cpython/rev/d62e57958e7c -- ___ Python tracker _

[issue27108] mimetypes.__all__ list is incomplete

2016-06-05 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue27109] plistlib.__all__ list is incomplete

2016-06-05 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue27110] smtpd.__all__ list is incomplete

2016-06-05 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue27239] Make idlelib.macosx self-contained.

2016-06-05 Thread Terry J. Reedy
New submission from Terry J. Reedy: Lib/idlelib/macosx.py:8 initializes _tk_type to None. It next defines private function _initializeTkVariantTests, which in called in setupApp and which initializes _tk_type. Then follow 4 isXyzTk functins, which "assert _tk_type is not None". This is fine

[issue27105] cgi.__all__ is incomplete

2016-06-05 Thread Martin Panter
Martin Panter added the comment: Thanks for the patches Jacek. This one I committed after moving the test into CgiTests. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27107] mailbox.__all__ list is incomplete

2016-06-05 Thread Martin Panter
Martin Panter added the comment: FTR the closest thing I could find discussing reap_children() is Issue 16968. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27235] Heap overflow occurred due to the int overflow (Python-2.7.11/Modules/posixmodule.c)

2016-06-05 Thread Rustemzade Mehemmed
Changes by Rustemzade Mehemmed : -- components: +Interpreter Core versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list ma

[issue27233] Missing documentation for PyOS_FSPath

2016-06-05 Thread Martin Panter
Martin Panter added the comment: I haven’t really been following the FS-path stuff, but I guess this also needs .. versionadded:: 3.6 -- nosy: +martin.panter stage: -> patch review ___ Python tracker

[issue25738] http.server doesn't handle RESET CONTENT status correctly

2016-06-05 Thread Susumu Koshiba
Susumu Koshiba added the comment: Ah yes, you are right. I didn't think about the cases where it will send HEAD for codes like 204(No Content). I've created a patch for 3.6 to see if this looks reasonable, if review passes, I'll create patches for the rest of the releases. Thanks a lot for po

[issue27235] Heap overflow occurred due to the int overflow (Python-2.7.11/Modules/posixmodule.c)

2016-06-05 Thread SilentGhost
Changes by SilentGhost : -- components: +Extension Modules -Interpreter Core nosy: +larry ___ Python tracker ___ ___ Python-bugs-list

[issue27168] Comprehensions and await need more unittests

2016-06-05 Thread SilentGhost
Changes by SilentGhost : -- components: +Tests title: Yury isn't sure comprehensions and await interact correctly -> Comprehensions and await need more unittests type: -> behavior ___ Python tracker _

[issue27231] Support the fspath protocol in the posixpath module

2016-06-05 Thread SilentGhost
SilentGhost added the comment: There seems to be an issue with your patch, it does apply cleanly when doing that manually, but Rietveld doesn't like it. The changes in Lib/posixpath.py and Lib/test/test_posixpath.py don't show up. -- nosy: +SilentGhost

[issue27232] os.fspath() should not use repr() on error

2016-06-05 Thread SilentGhost
SilentGhost added the comment: This is behaviour introduced by issue 25548, it would make sense to me to discuss this problem there if you think it's necessary. repr in error messages has been a standard approach in Python for a very long time, however. -- nosy: +SilentGhost resolution

<    1   2