[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 ___

[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

[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

[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 ___

[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

[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

[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

[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 ___

[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 ___

[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

[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. --

[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

[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

[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

[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 ___

[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

[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

[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

[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

[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 ___

[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 ___

[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

[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

[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:

[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,

[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

[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.

[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

[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

[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,

[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

[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

[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

[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

[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)

[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.

[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 ___

[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 ___

[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

[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

[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

[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:

[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

[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 ___

[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

[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

[issue27052] Python2.7.11+ as in Debian testing and Ubuntu 16.04 LTS crashes with segfault

2016-06-05 Thread Matthias Klose
Matthias Klose added the comment: (checked with the recent packages in Debian unstable and Ubuntu yakkety) -- ___ Python tracker ___

[issue27052] Python2.7.11+ as in Debian testing and Ubuntu 16.04 LTS crashes with segfault

2016-06-05 Thread Matthias Klose
Changes by Matthias Klose : -- resolution: -> works for me status: open -> closed ___ Python tracker ___

[issue27052] Python2.7.11+ as in Debian testing and Ubuntu 16.04 LTS crashes with segfault

2016-06-05 Thread Matthias Klose
Matthias Klose added the comment: I'm unable to reproduce this with the 2.7 branch 20160603. -- ___ Python tracker ___

[issue9400] multiprocessing.pool.AsyncResult.get() messes up exceptions

2016-06-05 Thread Ned Deily
Changes by Ned Deily : -- nosy: +davin versions: +Python 3.5, Python 3.6 -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

[issue27224] IDLE: editor versus grep line number differ

2016-06-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yesterday, I grepped three times and got the same wrong result each time, so I know I was not crazy. But today, starting fresh with no IDLE or TortoiseHg running, all is well. Closing as 'heisenbug' ;-). Lesson: start fresh before reporting weird behavior.

[issue26867] test_ssl test_options fails on ubuntu 16.04

2016-06-05 Thread Ned Deily
Ned Deily added the comment: Can we close this as an Ubuntu-specific problem? -- nosy: +doko, ned.deily ___ Python tracker ___

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

2016-06-05 Thread Arno-Can Uestuensoez
Arno-Can Uestuensoez added the comment: Hi Serhiy, I am currently still investigating it for my own project. https://stackoverflow.com/questions/37646103/posix-path-1003-1-examples-and-behaviour-for-foo-bar Currently I do not have the build environment, so I can provide the text, but

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-06-05 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: I have reviewed the comments on Rietveld and made the changes to the patch. Attached is the revised version. -- Added file: http://bugs.python.org/file43248/addMissingEnvironmentVariables-review-1.patch ___

[issue27052] Python2.7.11+ as in Debian testing and Ubuntu 16.04 LTS crashes with segfault

2016-06-05 Thread Ned Deily
Ned Deily added the comment: FWIW, I am also unable to reproduce the crash on OS X with a current top-of-2.7 debug build. Since it doesn't seem to be able to be reproduced with stock Python 2.7's, perhaps it is time to close the issue here? -- nosy: +ned.deily

[issue27127] Never have GET_ITER not followed by FOR_ITER

2016-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks to me this idea is dead. -- ___ Python tracker ___ ___

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

2016-06-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I prefer 'rexcode' for the attribute name. I share Serhiy's reservations. When people write code that depends on CPython implementation details, even though documented as such, the existence of such code becomes a drag on change, especially when details

[issue27186] add os.fspath()

2016-06-05 Thread Dusty Phillips
Dusty Phillips added the comment: Ethan: Can you clarify what you mean by "testing the other classes"? PureWindowsPath and PurePosixPath are tested by extension of _BasePurePathTest. So I think you mean that _BasePathTest also needs testing, but I don't see anything in there that would mirror

[issue27236] Add CHAINED_COMPARE_OP opcode

2016-06-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: For now complex code is generated for chained comparing. $ echo "x = a < b > c < d" | ./python -m dis 1 0 LOAD_NAME0 (a) 2 LOAD_NAME1 (b) 4 DUP_TOP 6 ROT_THREE

[issue26582] asyncio documentation links to wrong CancelledError

2016-06-05 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: This patch documents CancelledError in the asyncio documentation. -- keywords: +patch nosy: +Jelle Zijlstra Added file: http://bugs.python.org/file43246/issue26582.patch ___ Python tracker

[issue27226] distutils: unable to compile both .opt-1.pyc and .opt2.pyc simultaneously

2016-06-05 Thread Brett Cannon
Changes by Brett Cannon : -- versions: -Python 3.5 ___ Python tracker ___ ___

[issue27226] distutils: unable to compile both .opt-1.pyc and .opt2.pyc simultaneously

2016-06-05 Thread Brett Cannon
Changes by Brett Cannon : -- type: behavior -> enhancement ___ Python tracker ___ ___

[issue25941] Add 'How to Review a Patch' section to devguide

2016-06-05 Thread Ned Deily
Ned Deily added the comment: The revised patch looks good to me (other than some trailing whitespace). Camilla, thanks for your contribution. If you haven't already, please sign a contributor form to cover this and future contributions as noted elsewhere in the Developer's Guide:

[issue27226] distutils: unable to compile both .opt-1.pyc and .opt2.pyc simultaneously

2016-06-05 Thread Michał Górny
Michał Górny added the comment: Yes, you could put it like this. -- ___ Python tracker ___ ___

[issue25941] Add 'How to Review a Patch' section to devguide

2016-06-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8b3f4473432e by Ned Deily in branch 'default': Issue #25941: Add "How To Review A Patch" section to the devguide. https://hg.python.org/devguide/rev/8b3f4473432e -- nosy: +python-dev ___ Python tracker

[issue19489] move quick search box above TOC

2016-06-05 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Yes, I don't think we control this, the layout is generated by sphinx. -- nosy: +Jelle Zijlstra ___ Python tracker ___

[issue15243] Misleading documentation for __prepare__

2016-06-05 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I think the current documentation is correct and doesn't need changes. There is also already an example of a working __prepare__ method. -- nosy: +Jelle Zijlstra ___ Python tracker

[issue27226] distutils: unable to compile both .opt-1.pyc and .opt2.pyc simultaneously

2016-06-05 Thread Brett Cannon
Brett Cannon added the comment: But distutils still does the right thing with -O2 and --optimize 2, right? If that's the case then this is an enhancement request to add support to distutils to compile all bytecode levels and not a regression. --

[issue27182] PEP 519 support in the stdlib

2016-06-05 Thread Brett Cannon
Brett Cannon added the comment: Functions that only accept file descriptors should not be updated to work with __fspath__() as it will never return an int/fd. As for Ethan's suggestion, are you saying you want to toss the str/bytes check from os.fspath()? If so then you will need to go to

[issue27215] Docstrings of Sequence and MutableSequence seems not right

2016-06-05 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: The docstrings (at least in 3.6) say subclasses must override __new__ *or* __init__. However, I think this is wrong too. The following is a correct (if not very useful) implementation of Sequence: >>> import collections.abc >>> class

[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 Ned Deily
Changes by Ned Deily : -- stage: -> patch review ___ 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 Ned Deily
Changes by Ned Deily : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing

[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 Ned Deily
Ned Deily added the comment: Since 3.5.2 is almost upon us, I'm setting this to "release blocker" status so we can make a decision about whether this should be changed for 3.5.2 or not. @haypo, do you have an opinion about the patch? -- nosy: +ned.deily priority: normal -> release

[issue27221] [multiprocessing] Doc is outdated regarding method picklability

2016-06-05 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : Added file: http://bugs.python.org/file43244/issue27221.patch ___ Python tracker ___

[issue27221] [multiprocessing] Doc is outdated regarding method picklability

2016-06-05 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : Removed file: http://bugs.python.org/file43243/issue27233.patch ___ Python tracker ___

[issue19234] socket.fileno() documentation

2016-06-05 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: This looks fixed. -- nosy: +Jelle Zijlstra resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue27221] [multiprocessing] Doc is outdated regarding method picklability

2016-06-05 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Patch attached. I also checked that this case is tested, and it looks like the Bunch object in Lib/test/_test_multiprocessing.py uses a method as its target. -- keywords: +patch nosy: +Jelle Zijlstra Added file:

[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-06-05 Thread Ned Deily
Ned Deily added the comment: Sorry, it is no longer clear to me exactly what problem(s) and solution are being proposed here. When dealing with installation problems like this, we have to be *very* precise: here's what I started with on what platform, here are the contents of the relevant

[issue27226] distutils: unable to compile both .opt-1.pyc and .opt2.pyc simultaneously

2016-06-05 Thread Michał Górny
Michał Górny added the comment: Brett, .pyc was controlled by --compile and .pyo by --optimize (either 1 or 2). Technically only two variants could be used simultaneously, and distutils accounted for that. Now you have .pyc + .opt-1.pyc + .opt-2.pyc, so three variants instead of two.

[issue27226] distutils: unable to compile both .opt-1.pyc and .opt2.pyc simultaneously

2016-06-05 Thread Brett Cannon
Brett Cannon added the comment: So the reason Python does the right thing at install is because compileall is used by the Makefile to do the compilation and it's run twice (it actually doesn't use distutils for this). My question is what did distutils do before PEP 488 since .pyc and .pyo

[issue17500] move PC/icons/source.xar to http://www.python.org/community/logos/

2016-06-05 Thread Ned Deily
Ned Deily added the comment: LGTM -- versions: +Python 3.5, Python 3.6 -Python 3.2, Python 3.3, Python 3.4 ___ 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 : -- type: -> security ___ Python tracker ___ ___

[issue27111] redundant variables in long_add and long_sub

2016-06-05 Thread Oren Milman
Oren Milman added the comment: done. By the way, I am logging in to bugs.python.org through accounts.google.com, but I couldn't see any way to do the same in www.python.org, so I have a native account there (with the same email address). I hope that won't be an issue... --

[issue27233] Missing documentation for PyOS_FSPath

2016-06-05 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Patch adds concise documentation -- keywords: +patch Added file: http://bugs.python.org/file43242/issue27233.patch ___ 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 : -- title: Heap overflow occurred due to the int overflow -> Heap overflow occurred due to the int overflow (Python-2.7.11/Modules/posixmodule.c) ___ Python tracker

[issue27235] Heap overflow occurred due to the int overflow

2016-06-05 Thread Rustemzade Mehemmed
New submission from Rustemzade Mehemmed: I have tested this vulnerability on the Python 2.7 and it absolutely affected :). Integer overflow produce in posix_fdopen function. If an attacker sent fdopen mode value larger than max integer value (2*32) to fdopen after integer overflow occurred.

[issue27198] Adding an assertClose() method to unittest.TestCase

2016-06-05 Thread Chris Barker
Chris Barker added the comment: Thanks Raymond. Damn! I wrote a nice comprehensive note, and my browser lost it somehow :-(. Here's a shorter version: "FWIW, I find assertClose easy to misinterpret. At first, it looks like an assertion that a file is closed." sure -- we can find a new name

[issue27151] multiprocessing.Process leaves read pipes open (Process.sentinel)

2016-06-05 Thread Ned Deily
Changes by Ned Deily : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27168] Yury isn't sure comprehensions and await interact correctly

2016-06-05 Thread Ned Deily
Changes by Ned Deily : -- assignee: -> yselivanov ___ Python tracker ___ ___

[issue27231] Support the fspath protocol in the posixpath module

2016-06-05 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: This patch adds a number of os.fspath calls to the posixpath.py module. I didn't duplicate all tests to check PathLike objects in addition str/bytes, because that seemed excessive. Instead I tried to ensure that each function has at least one test checking

[issue27111] redundant variables in long_add and long_sub

2016-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oren, could you please sign a Contributor Licensing Agreement? http://www.python.org/psf/contrib/contrib-form/ http://www.python.org/psf/contrib/ -- ___ Python tracker

[issue27224] IDLE: editor versus grep line number differ

2016-06-05 Thread Ned Deily
Ned Deily added the comment: FWIW, using an IDLE built from the current top-of-trunk default (on OS X), the steps outlined above produce the correct result, 226 and 236, which match up with what other tools report. -- nosy: +ned.deily ___ Python

[issue21130] equivalent functools.partial instances should compare equal

2016-06-05 Thread Emanuel Barry
Emanuel Barry added the comment: Shakur - Feel free to take over and work on it. Serhiy - I don't think that partial(func) == func should be, in the same sense that (0, 1, 2), [0, 1, 2] and range(3) aren't equal even though they fundamentally represent the same thing. --

[issue27188] sqlite3 execute* methods return value not documented

2016-06-05 Thread Berker Peksag
Berker Peksag added the comment: Could you also change the function signatures from .. method:: execute(sql, [parameters]) to .. method:: execute(sql[, parameters]) and document that parameters should be list (or sequence or iterable -- I'm a the airport now so I can't check what is

[issue27156] IDLE: remove unused code

2016-06-05 Thread Ned Deily
Ned Deily added the comment: > Ned, do you have any objection to removing these now, for 3.6? No, go right ahead. Nobody should be using them. And I concur with keeping the others around for the time being. -- ___ Python tracker

[issue27234] tuple - single value with comma is assigned as type tuple

2016-06-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: Yes, it is intended. Commas create tuples, not parentheses. (With the exception of the empty tuple.) The parens are just for grouping and precedence. `1,` is a tuple, regardless of whether you use parens around it or not. -- nosy: +steven.daprano

[issue21130] equivalent functools.partial instances should compare equal

2016-06-05 Thread shakur shams Mullick
shakur shams Mullick added the comment: Emanuel Barry if you want to take it over, I will stop and will not modify my patch further. Otherwise please let me know. -- ___ Python tracker

[issue27234] tuple - single value with comma is assigned as type tuple

2016-06-05 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Yes, this is intentional. It is documented in https://docs.python.org/3/reference/expressions.html#expression-lists: "The trailing comma is required only to create a single tuple" -- nosy: +Jelle Zijlstra ___

  1   2   >