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

Re: Don't put your software in the public domain

2016-06-05 Thread Nobody
On Sat, 04 Jun 2016 12:28:33 +1000, Steven D'Aprano wrote: >> OTOH, a Free software licence is unilateral; the author grants the user >> certain rights, with the user providing nothing in return. > > That's not the case with the GPL. > > The GPL requires the user (not the end-user, who merely

Re: Operator precedence problem

2016-06-05 Thread Lawrence D’Oliveiro
On Monday, June 6, 2016 at 4:06:20 AM UTC+12, Uri Even-Chen wrote: > Never write expressions, such as 2 ** 3 ** 2 or even 2 * 4 > + 5, without parentheses. That leads to the code equivalent of . --

[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

Re: Everything good about Python except GUI IDE?

2016-06-05 Thread Michael Torrie
On 06/05/2016 10:01 PM, Michael Torrie wrote: > I've thought about this before and even tried my hand at creating a nice > library for doing this sort of thing with Python. Generators seem like > a natural analog for the shell pipes. However there is one big problem > with them and that is they

Re: I'm wrong or Will we fix the ducks limp?

2016-06-05 Thread Random832
On Sun, Jun 5, 2016, at 23:52, Steven D'Aprano wrote: > Certainly not. x = y = 999 is required to bind the same object to x and > y. My statement was that if two variables can be bound to the same object, then variables *cannot* contain objects. The object has to exist somewhere, and this

Re: Everything good about Python except GUI IDE?

2016-06-05 Thread Michael Torrie
On 03/02/2016 03:36 PM, Marko Rauhamaa wrote: > Requirements for what I have in mind: > > 1. It would have to be and feel like real Python. > > 2. External commands should be available as callable Python functions. > > 3. Functions/commands should return streams. (Generators, maybe?) > >

Re: I'm wrong or Will we fix the ducks limp?

2016-06-05 Thread Steven D'Aprano
On Mon, 6 Jun 2016 03:42 am, Random832 wrote: > On Sun, Jun 5, 2016, at 02:37, Steven D'Aprano wrote: >> No they don't. You are confusing the implementation with the programming >> model. >> >> Following the assignment: >> >> x = 99 >> >> if you print(x), do you see something like "reference

Re: Operator precedence problem

2016-06-05 Thread ICT Ezy
On Sunday, June 5, 2016 at 10:49:49 PM UTC+5:30, Random832 wrote: > On Sun, Jun 5, 2016, at 02:53, ICT Ezy wrote: > > >>> 2 ** 3 ** 2 > > Answer is 512 > > Why not 64? > > Order is right-left or left-right? > > You're mixing up order of evaluation with operator associativity. The ** > operator

Re: Operator precedence problem

2016-06-05 Thread ICT Ezy
On Monday, June 6, 2016 at 5:18:21 AM UTC+5:30, Michael Torrie wrote: > On 06/05/2016 10:05 AM, Uri Even-Chen wrote: > > My suggestion: Never write expressions, such as 2 ** 3 ** 2 or even 2 * 4 > > + 5, without parentheses. Always add parentheses - 2 ** (3 ** 2) (or (2 ** > > 3) **2) or (2 * 4)

Re: Operator precedence problem

2016-06-05 Thread ICT Ezy
On Sunday, June 5, 2016 at 9:36:20 PM UTC+5:30, Uri Even-Chen wrote: > My suggestion: Never write expressions, such as 2 ** 3 ** 2 or even 2 * 4 > + 5, without parentheses. Always add parentheses - 2 ** (3 ** 2) (or (2 ** > 3) **2) or (2 * 4) + 5 (or 2 * (4 + 5)). > > > *Uri Even-Chen* >

[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

Re: I'm wrong or Will we fix the ducks limp?

2016-06-05 Thread Lawrence D’Oliveiro
On Monday, June 6, 2016 at 1:08:21 PM UTC+12, Gregory Ewing wrote: > The only special-ish thing about [None] is that it's unique -- > there will never be another one like it, no matter how > much dog breeding you do. Fortunately, it's also immortal. Maybe not immortal, but it seems to have 533

[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

Re: I'm wrong or Will we fix the ducks limp?

2016-06-05 Thread Lawrence D’Oliveiro
On Sunday, June 5, 2016 at 3:18:05 PM UTC+12, I wrote: > (This makes no difference for immutable objects, only mutable ones.) I retract this part. Thanks, Marko, for showing me where I was wrong. :) -- https://mail.python.org/mailman/listinfo/python-list

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

Re: I'm wrong or Will we fix the ducks limp?

2016-06-05 Thread Gregory Ewing
Random832 wrote: There *is* a variable called None [getattr(__builtins__, 'None')] which holds a leash tied to that puppy ... But nothing's special about the object itself, no more than any other object. The only special-ish thing about it is that it's unique -- there will never be another one

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

Re: Yet Another Cairo API Binding

2016-06-05 Thread Lawrence D’Oliveiro
On Thursday, June 2, 2016 at 9:16:25 AM UTC+12, I wrote: > Thought I would mention Qahirah , which is > yet another binding for the Cairo graphics > library. To add to this, I have bindings for Pixman

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

Re: Operator precedence problem

2016-06-05 Thread Michael Torrie
On 06/05/2016 10:05 AM, Uri Even-Chen wrote: > My suggestion: Never write expressions, such as 2 ** 3 ** 2 or even 2 * 4 > + 5, without parentheses. Always add parentheses - 2 ** (3 ** 2) (or (2 ** > 3) **2) or (2 * 4) + 5 (or 2 * (4 + 5)). I can understand using parenthesis when operator

[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

Re: I'm wrong or Will we fix the ducks limp?

2016-06-05 Thread cs
On 03Jun2016 16:09, Sayth Renshaw wrote: (By the way, the "pf = pf.append(thing)" construction is weird. All you need is pf.append(thing).) I got the pf = pf.append(thing) from doing pandas because in pandas its not an inplace function. In Python this doesn't do

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

Re: I'm wrong or Will we fix the ducks limp?

2016-06-05 Thread Random832
On Sun, Jun 5, 2016, at 15:20, Marko Rauhamaa wrote: > I say None is a wooden post, you say None is a puppy. > > What piece of Python code could put our dispute to rest? isinstance(None, object) Anyway, I read the "wooden post" claim as suggesting that a reference to None is somehow different

[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

Re: I'm wrong or Will we fix the ducks limp?

2016-06-05 Thread Marko Rauhamaa
Random832 : > On Sun, Jun 5, 2016, at 02:37, Steven D'Aprano wrote: >> You bind values (that is, objects) > > Values are not objects. x and z have the same value, and their objects > are identical but distinct, but they are different because they point > (or refer, or by

[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

Re: I'm wrong or Will we fix the ducks limp?

2016-06-05 Thread Marko Rauhamaa
Random832 : > On Sun, Jun 5, 2016, at 04:01, Marko Rauhamaa wrote: >> You could also think of variables as pegs, references as leashes, and >> objects as cute puppies. One puppy could be held with multiple >> leashes hung on separate pegs. Some puppies hold leashes in

Re: Anyone know a donation app codebase?

2016-06-05 Thread Ben Finney
Albert writes: > Thank you for your answer Ben, You're welcome. Please note that top-posting is poor etiquette for discussions; instead, interleave your response like a written dialogue. See . > That is not

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

  1   2   >