[issue31401] Dynamic compilation that uses function in comprehension fails when compiled inside function

2017-09-11 Thread Vedran Čačić
Vedran Čačić added the comment: Hm... then it _is_ a bug (in 3.7). Or we have "fast locals and slow locals" nightmare again... :-/ I don't have 3.7 to test... what do you mean is working? jpc's example or mine? -- ___ Python tracker

[issue31417] Use the enumerate function where appropriate

2017-09-11 Thread Vedran Čačić
Vedran Čačić added the comment: Sorry, this seems like a classical example of "When all you have is a hammer, everything looks like a nail. Then, when you learn of a screwdriver, you suddenly see half of these nails as screws, completely ignoring there are other tools besides those two." In

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Rustom Mody
On Monday, September 11, 2017 at 1:28:24 PM UTC+5:30, Marko Rauhamaa wrote: > Gregory Ewing: > > > Chris Angelico wrote: > >> Async functions in > >> JS are an alternative to callback hell; most people consider async > >> functions in Python to be an alternative to synchronous functions. > > > >

[issue26103] Contradiction in definition of "data descriptor" between (dotted lookup behavior/datamodel documentation) and (inspect lib/descriptor how-to)

2017-09-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Paul Rubin
Chris Angelico writes: > students learning Python *today* ... they're learning Python 3. I'm not so sure of that. I do know a few people currently learning Python, and they're using Python 2. >> * static type annotation Seems like a big win if you ask me. >> * asyncio

Re: Simple game board GUI framework

2017-09-11 Thread Ian Kelly
On Mon, Sep 11, 2017 at 6:26 PM, Dennis Lee Bieber wrote: > I used to have a character on Furtoonia whose "tail" was described as > having a naked singularity at the tip (the tail was an object that > automatically followed the character around) -- the character's

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Michael Torrie
On 09/11/2017 08:36 AM, Dennis Lee Bieber wrote: > On Mon, 11 Sep 2017 18:35:02 +1000, Chris Angelico > declaimed the following: > >> >> Do a quick poll here on the list. Who sees async functions as an >> alternative to Twisted? Who here has even *used* Twisted? (How many >>

[issue16251] pickle special methods are looked up on the instance rather than the type

2017-09-11 Thread Łukasz Langa
Changes by Łukasz Langa : -- keywords: +patch pull_requests: +3503 stage: needs patch -> patch review ___ Python tracker ___

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Michael Torrie
On 09/11/2017 02:35 AM, Chris Angelico wrote: > Do a quick poll here on the list. Who sees async functions as an > alternative to Twisted? Who here has even *used* Twisted? (How many > even know what it is?) /me raises hand, slowly, cautiously looking around. I don't think of twisted so much as

[issue31404] undefined behavior and crashes in case of a bad sys.modules

2017-09-11 Thread Eric Snow
Eric Snow added the comment: This is pretty messy. :( Ideally we would disallow setting sys.modules to anything except a dict (or perhaps any mapping). However, we don't have that option currently (see https://github.com/ericsnowcurrently/cpython/tree/sys-module). In the meantime we have

[issue31417] Use the enumerate function where appropriate

2017-09-11 Thread R. David Murray
R. David Murray added the comment: Mark: Yeah, I think my comment was directed more to haypo than you :) -- ___ Python tracker ___

[issue30860] Consolidate stateful C globals under a single struct.

2017-09-11 Thread Eric Snow
Eric Snow added the comment: New changeset fc1bf872e9d31f3e837f686210f94e57ad3d6582 by Eric Snow in branch 'master': bpo-30860: Move windows.h include out of internal/*.h. (#3458) https://github.com/python/cpython/commit/fc1bf872e9d31f3e837f686210f94e57ad3d6582 --

[issue31265] Remove doubly-linked list from C OrderedDict

2017-09-11 Thread Eric Snow
Eric Snow added the comment: On Sun, Sep 10, 2017 at 10:27 PM, Serhiy Storchaka wrote: > Note that mixed insertion and deletion is worst-case O(n) in current > implementation. Could you elaborate? Note that every operation of the current implementation matches the

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2017-09-11 Thread R. David Murray
R. David Murray added the comment: Seems like it ought to be possible to use the same hooks that venv uses to make this work, but I haven't looked at the details of how those work. -- nosy: +r.david.murray ___ Python tracker

[issue31420] Reference leaks introduced by bpo-30860

2017-09-11 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30860] Consolidate stateful C globals under a single struct.

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8728018624f257c7cfe44014742ae46134047f49 by Victor Stinner (Eric Snow) in branch 'master': bpo-30860: Fix a refleak. (#3506) https://github.com/python/cpython/commit/8728018624f257c7cfe44014742ae46134047f49 --

[issue1612262] Class Browser doesn't show internal classes

2017-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Would it make any difference if the module were renamed? and made to only work with IDLE? -- ___ Python tracker ___

[issue1612262] Class Browser doesn't show internal classes

2017-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Nick, this over-due improvement to IDLE depends on the over-due improvement to pyclbr in 3.7. I would like to backport the IDLE improvement by putting a copy of 3.7 pyclbr in 3.6 idlelib. Do you agree that PEP434 allows this? -- nosy: +ncoghlan

[issue31407] --without-pymalloc broken

2017-09-11 Thread Eric Snow
Eric Snow added the comment: New changeset ba6d5d1defd7a281c8c8804e4b4cfd7370886236 by Eric Snow in branch 'master': bpo-30860: Always provide serialno. (#3507) https://github.com/python/cpython/commit/ba6d5d1defd7a281c8c8804e4b4cfd7370886236 --

[issue31407] --without-pymalloc broken

2017-09-11 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30860] Consolidate stateful C globals under a single struct.

2017-09-11 Thread Eric Snow
Eric Snow added the comment: New changeset ba6d5d1defd7a281c8c8804e4b4cfd7370886236 by Eric Snow in branch 'master': bpo-30860: Always provide serialno. (#3507) https://github.com/python/cpython/commit/ba6d5d1defd7a281c8c8804e4b4cfd7370886236 --

[issue31404] undefined behavior and crashes in case of a bad sys.modules

2017-09-11 Thread Eric Snow
Eric Snow added the comment: I'm looking into this. -- assignee: -> eric.snow ___ Python tracker ___ ___

[issue31407] --without-pymalloc broken

2017-09-11 Thread Eric Snow
Eric Snow added the comment: I've verified that the PR fixes the problem. -- ___ Python tracker ___ ___

[issue31407] --without-pymalloc broken

2017-09-11 Thread Eric Snow
Changes by Eric Snow : -- keywords: +patch pull_requests: +3502 stage: needs patch -> patch review ___ Python tracker ___

[issue30860] Consolidate stateful C globals under a single struct.

2017-09-11 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +3501 ___ Python tracker ___ ___

[issue31407] --without-pymalloc broken

2017-09-11 Thread Eric Snow
Eric Snow added the comment: I'm looking into this. -- assignee: -> eric.snow ___ Python tracker ___ ___

[issue31408] Leak in typeobject.c

2017-09-11 Thread Eric Snow
Eric Snow added the comment: @skrah, could you see if the PR for issue #31420 resolves this? I'm guessing it won't, but you indicated that the two issues might be related. Thanks! -- ___ Python tracker

[issue31420] Reference leaks introduced by bpo-30860

2017-09-11 Thread Eric Snow
Changes by Eric Snow : -- keywords: +patch pull_requests: +3500 stage: -> patch review ___ Python tracker ___

[issue30860] Consolidate stateful C globals under a single struct.

2017-09-11 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +3499 ___ Python tracker ___ ___

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2017-09-11 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: Oops, so it is. I can't read apparently. I'll spend my time on making more fuzz tests in the meantime. -- ___ Python tracker

[issue31417] Use the enumerate function where appropriate

2017-09-11 Thread Mark Byrne
Mark Byrne added the comment: Generally, we consider the danger of introducing bugs to be more significant than the benefit of the "cleanup" changes. The fact that you are discussing further changes to the code in the PR make this more likely. I haven't updated the PR with further code

[issue17085] test_socket crashes the whole test suite

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: I believe that my commit 40996d3f6fbd1adcb2e69e426fa311aaf90762ff fixes the root issue in Python 2.7 and so I close the issue. Thanks for the bug report! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue17085] test_socket crashes the whole test suite

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 40996d3f6fbd1adcb2e69e426fa311aaf90762ff by Victor Stinner in branch '2.7': bpo-17085: test_socket: cancel scheduled alarm on test failure (#3505) https://github.com/python/cpython/commit/40996d3f6fbd1adcb2e69e426fa311aaf90762ff --

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2017-09-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: misquote. that was me objecting to running it internally. :) i believe this is solvable, i haven't had time to spend on this part yet. -- ___ Python tracker

[issue31425] Expose AF_QIPCRTR in socket module

2017-09-11 Thread Bjorn Andersson
New submission from Bjorn Andersson: The address family AF_QIPCRTR represents a socket based communication mechanism, available since Linux v4.7, for communicating with services running on co-processors in Qualcomm based platforms; e.g. the modem services. Expose this address family in the

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

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: Ned Deily: > This issue slipped off the radar (so to speak) after being closed. For one, > the tests also fail on 3.5.x (and probably earlier systems) and fail on macOS > 10.12, not just 10.11. And, two, I'm not sure if anyone opened an issue with > Apple

[issue31022] ERROR: testRegularFile (test.test_socket.SendfileUsingSendTest) random failure on AppVeyor

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this issue recently, but I didn't check much Appveyor. Let's hope that the bug was fixed in the meanwhile. I will reopen the issue if the bug comes back. -- resolution: -> out of date stage: -> resolved status: open -> closed

[issue29269] test_socket failing in solaris

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: Since it seems like Solaris is dying, I'm not sure that it still makes sense to fix Python issues specific to Solaris. Here, I don't understand the issue, no patch is proposed and I'm not really interested to investigate :-/ -- nosy: +haypo

[issue17085] test_socket crashes the whole test suite

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: Charles-François Natali: > the crash occurs because the test doesn't reset the alarm (with alarm(0)) > upon exit, so if the alarm didn't go off during the test, it comes later when > the original signal handler has been reset, and the default handler just >

[issue17085] test_socket crashes the whole test suite

2017-09-11 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3498 ___ Python tracker ___ ___

[issue23669] test_socket.NonBlockingTCPTests failing due to race condition

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this message last 6 months even if we now have a long list of Windows buildbots. So I consider that the bug was fixed in the meanwhile. -- nosy: +haypo resolution: -> fixed stage: -> resolved status: open -> closed

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Making the upper merge context be " " (a line of equals and 2 blanks) has worked great to eliminate backport merge conflicts.) -- stage: patch review -> needs patch ___ Python

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 99b941b420d63027654dc6722f1648a8f36d2925 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': [3.6] bpo-30928: Update idlelib/NEWS.txt to 2017-09-11. (GH-3503) (#3504)

[issue31424] test_socket hangs on x86 Gentoo Installed with X 3.x

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: The failing build was triggered by the commit 834a5cecac0e77e907762611c06fa460545487e7. Maybe it's related? -- ___ Python tracker

[issue29767] build python failed on test_socket due to unused_port is actually used.

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: I am sorry but it is not possible to fix the issue since we don't have enough information to identify or reproduce the bug. -- nosy: +haypo resolution: -> out of date stage: -> resolved status: open -> closed ___

[issue31424] test_socket hangs on x86 Gentoo Installed with X 3.x

2017-09-11 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86%20Gentoo%20Installed%20with%20X%203.x/builds/1004/steps/test/logs/stdio ... running: test_socket (35311 sec) running: test_socket (35341 sec) running: test_socket (35371 sec) running: test_socket (35401 sec)

[issue31420] Reference leaks introduced by bpo-30860

2017-09-11 Thread Eric Snow
Eric Snow added the comment: Moving warnoptions (and xoptions) out of PyInterpreterState seems like a good idea to me for the same reasons as applied to sys.modules. The case for these two is even stronger since they are only used in sysmodule.c. --

[issue31417] Use the enumerate function where appropriate

2017-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with David in general. And as you can see there are questions to the concrete patch. -- nosy: +serhiy.storchaka ___ Python tracker

IEEE Spectrum ranks Python at top, along with C

2017-09-11 Thread Terry Reedy
https://spectrum.ieee.org/static/interactive-the-top-programming-languages-2017 -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

[issue31420] Reference leaks introduced by bpo-30860

2017-09-11 Thread Eric Snow
Changes by Eric Snow : -- assignee: -> eric.snow ___ Python tracker ___ ___

[issue31420] Reference leaks introduced by bpo-30860

2017-09-11 Thread Eric Snow
Eric Snow added the comment: I'm looking into this. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue31416] assertion failures in warn_explicit() in case of a bad warnings.filters or warnings.defaultaction

2017-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9d984fd2b097c8c29479d1c3eb740995fe1ccb0d by Serhiy Storchaka (Oren Milman) in branch 'master': bpo-31416: Fix assertion failures in case of a bad warnings.filters or warnings.defaultaction. (#3496)

Re: Simple game board GUI framework

2017-09-11 Thread Ian Kelly
On Mon, Sep 11, 2017 at 10:36 AM, ROGER GRAYDON CHRISTMAN wrote: > I would echo the recommendation of teaching something you are already > familiar with doing. Perhaps you can find a different class hierarchy to > work > with. > > I remember that the first time I really began to

[issue25218] Automate creation of idlelib/help.html from Doc/.../idle.html

2017-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Zach, I currently build idlelib/help.html by first building a complete doc set and then copying from Doc/.../idle.html, stripping trailing whitespace on the say. One problem is that the result has a lot of extraneous stuff aside from the doc text itself: the

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2017-09-11 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: kcc strongly disagrees though. Copying latest comment: """ fwiw - I object to us running any of this internally at Google. We need to be part of the main oss-fuzz project pulling from upstream revisions. Doing this testing within our blackhole of internal

[issue31413] Support importing anything in ._pth files.

2017-09-11 Thread Steve Dower
Steve Dower added the comment: This is by design. You should not be using the ._pth file for anything other than initializing sys.path. If you want to run code at startup, consider using sitecustomize.py or a regular .pth file, all of which will be imported when you include "import site" in

[issue31420] Reference leaks introduced by bpo-30860

2017-09-11 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-09-11 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3497 ___ Python tracker ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 8239fd704637d7cbf59273883fbe487fc0f568fc by Terry Jan Reedy in branch 'master': bpo-30928: Update idlelib/NEWS.txt to 2017-09-11. (#3503) https://github.com/python/cpython/commit/8239fd704637d7cbf59273883fbe487fc0f568fc --

[issue31414] IDLE: Entry tests should delete before insert.

2017-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 31b242459cef0835057f08c8756559b3261aa8ff by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31414: IDLE -- fix tk entry box tests by deleting first. (GH-3501) (#3502)

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-09-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- keywords: +patch pull_requests: +3496 stage: needs patch -> patch review ___ Python tracker ___

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2017-09-11 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: > i'd rather make this work in oss-fuzz on cpython. can you point me to how > oss-fuzz works and what it wants to do so i can better understand what it > needs? I don't have any details except for what's in the PR to oss-fuzz

[issue31414] IDLE: Entry tests should delete before insert.

2017-09-11 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3495 ___ Python tracker ___

[issue31414] IDLE: Entry tests should delete before insert.

2017-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 667522efa8fedfb57fd89d7335d7dfd270f274d5 by Terry Jan Reedy in branch 'master': bpo-31414: IDLE -- fix tk entry box tests by deleting first. (#3501) https://github.com/python/cpython/commit/667522efa8fedfb57fd89d7335d7dfd270f274d5 --

[issue31423] Error while building PDF documentation

2017-09-11 Thread Julien Palard
New submission from Julien Palard: Since the docsbuild-scripts [1] upgraded its sphinx-build [2], we're having this error when building the docs: ! Undefined control sequence. \py@authoraddress -> \strong {Python Software Foundation}\\ Email: \email {d... l.58

[issue31414] IDLE: Entry tests should delete before insert.

2017-09-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- keywords: +patch pull_requests: +3494 stage: needs patch -> patch review ___ Python tracker ___

[issue31417] Use the enumerate function where appropriate

2017-09-11 Thread R. David Murray
R. David Murray added the comment: Anyone who uses stdlib code as examples of best practice doesn't understand the history of stdlib code. Generally, we consider the danger of introducing bugs to be more significant than the benefit of the "cleanup" changes. The fact that you are discussing

[issue31422] tkinter.messagebox and tkinter.filedialog don't show default button's keyboard shortcuts

2017-09-11 Thread jcrmatos
New submission from jcrmatos: tkinter.messagebox windows (eg. askokcancel, showerror, showinfo, ...) in Tkinter 8.6 running on Python 3.5.3, don't don't show the keyboard shortcuts/accelerators in the default buttons. And the askopenfilename from tkinter.filedialog only shows the Open one.

[issue30389] distutils._msvccompiler cannot find VS 2017

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: The fix: commit af8d6b90723daa943c5cd0a38ee7564790d8687a Author: Steve Dower Date: Fri Sep 8 11:35:38 2017 -0700 Fixes reference leak (#3457) -- ___ Python tracker

[issue31420] Reference leaks introduced by bpo-30860

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: Extract of my msg295399: "The problem is that warnoptions is stored in a C global variable *and* in sys.warnoptions of each interpreter. The ownership of this variable is unclear." Maybe we need a change similar to bpo-28411 (commit

[issue30598] Py_NewInterpreter() leaks a reference on warnoptions in _PySys_EndInit()

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: This bug came back in master: see bpo-31420. -- ___ Python tracker ___ ___

[issue31414] IDLE: Entry tests should delete before insert.

2017-09-11 Thread Henk-Jaap Wagenaar
Changes by Henk-Jaap Wagenaar : -- nosy: -Henk-Jaap Wagenaar ___ Python tracker ___

[issue31420] Reference leaks introduced by bpo-30860

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: The leak comes from the following lines of _PySys_EndInit(): --- PyObject *warnoptions = get_warnoptions(); if (warnoptions == NULL) return -1; SET_SYS_FROM_STRING_BORROW_INT_RESULT("warnoptions", warnoptions); PyObject *xoptions =

Re: Simple board game GUI framework

2017-09-11 Thread Terry Reedy
On 9/11/2017 10:12 AM, Paul Moore wrote: Thanks for the information. That's more or less the sort of thing I was thinking of. In fact, from a bit more browsing, I found another way of approaching the problem - rather than using pygame, it turns out to be pretty easy to do this in tkinter. I

[issue31421] IDLE doc: add section on developing tkinter apps.

2017-09-11 Thread Henk-Jaap Wagenaar
Changes by Henk-Jaap Wagenaar : -- nosy: +Henk-Jaap Wagenaar ___ Python tracker ___

[issue31414] IDLE: Entry tests should delete before insert.

2017-09-11 Thread Henk-Jaap Wagenaar
Changes by Henk-Jaap Wagenaar : -- nosy: +Henk-Jaap Wagenaar ___ Python tracker ___

Re: Simple game board GUI framework

2017-09-11 Thread ROGER GRAYDON CHRISTMAN
I would echo the recommendation of teaching something you are already familiar with doing. Perhaps you can find a different class hierarchy to work with. I remember that the first time I really began to grok OOP was in a text-based MUD environment. In the application area, clearly everything

[issue31421] IDLE doc: add section on developing tkinter apps.

2017-09-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: docs@python -> terry.reedy ___ Python tracker ___

[issue31421] IDLE doc: add section on developing tkinter apps.

2017-09-11 Thread Terry J. Reedy
New submission from Terry J. Reedy: One of IDLE's great features is being able to interactively work with tkinter gui's because run calls update, without blocking, in the background. Document it in a new subsection, '3.5 Developing tkinter applications'. Adapt the following (written for a

[issue31421] IDLE doc: add section on developing tkinter apps.

2017-09-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: -Documentation ___ Python tracker ___ ___

Re: Simple board game GUI framework

2017-09-11 Thread Paul Moore
On 11 September 2017 at 16:32, Dennis Lee Bieber wrote: > This leads to a subtle question... If the focus strictly on OOP, or do > you intend to supply some precursor OOAD stuff. OOP is just implementation > and usage, but without some understanding of OOAD the

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: Serhiy on the PR: "This is overgeneralization. Can tp_dict be not exact dict at all? I don't think this is possible. In many places concrete dict API is used with tp_dict. If you want to allow tp_dict be not exact dict, please open a separate issue for this."

Re: Python programming language vulnerabilities

2017-09-11 Thread Stephen Michell
CORRECTION. My sincere apologies to anyone that tried the link that I posted. The actual link is www.open-std.org/jtc1/sc22/wg23 follow the link to documents, or go directly there via www.open-std.org/jtc1/sc22/wg23/docs/documents.html I was informed that there are some broken links to

[issue31420] Reference leaks introduced by bpo-30860

2017-09-11 Thread Stefan Krah
Stefan Krah added the comment: Could be the same as #31408. -- nosy: +skrah ___ Python tracker ___ ___

[issue30860] Consolidate stateful C globals under a single struct.

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4866957e86594935ec2e6434b6e470ebeb0c79b4 by Victor Stinner in branch 'master': bpo-30860: Add Include/internal/ in "make tags" (#3498) https://github.com/python/cpython/commit/4866957e86594935ec2e6434b6e470ebeb0c79b4 --

[issue30860] Consolidate stateful C globals under a single struct.

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: The commit 2ebc5ce42a8a9e047e790aefbf9a94811569b2b6 introduced reference leaks: see bpo-31420 which tracks them. -- ___ Python tracker

[issue31420] Reference leaks introduced by bpo-30860

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: > The following commands show memory leaks introduced by bpo-30860: Oh, I'm talking about the commit 2ebc5ce42a8a9e047e790aefbf9a94811569b2b6. -- ___ Python tracker

[issue31420] Reference leaks introduced by bpo-30860

2017-09-11 Thread STINNER Victor
New submission from STINNER Victor: The following commands show memory leaks introduced by bpo-30860: $ ./python -m test -R 3:3 test_atexit -m test.test_atexit.SubinterpreterTest.test_callbacks_leak $ ./python -m test -R 3:3 test_atexit -m

[issue30389] distutils._msvccompiler cannot find VS 2017

2017-09-11 Thread Steve Dower
Steve Dower added the comment: I fixed the ref leak during the sprints but forgot to tag this issue in the PR. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31417] Use the enumerate function where appropriate

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: > Thanks for wanting to improve Python, but we don't usually accept refactoring > requests like this. We "fix" such issues when the code is touched for other > reasons. We'll see what other developers think, though. The standard library is used by some

[issue31417] Use the enumerate function where appropriate

2017-09-11 Thread R. David Murray
R. David Murray added the comment: Thanks for wanting to improve Python, but we don't usually accept refactoring requests like this. We "fix" such issues when the code is touched for other reasons. We'll see what other developers think, though. -- nosy: +r.david.murray

windows 8 versus urllib2 certificate verify

2017-09-11 Thread Robin Becker
I have an application built on 32 bit windows 7 with python 2.7.10. The application runs fine on windows 7 and older windows machines, but it is failing to connect properly using urllib2 when run on windows 8. The error CERTIFICATE_VERIFY_FAILED indcates this is some issue with urllib2 not

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: I ran a microbenchmark on the current PR 3279 using: ./python -m perf timeit --inherit=PYTHONPATH 'class C: pass' Result: haypo@selma$ ./python -m perf compare_to ref.json patch.json Mean +- std dev: [ref] 9.71 us +- 0.38 us -> [patch] 8.74 us +- 0.22 us:

[issue22559] [2.7] Backport ssl.MemoryBIO to Python 2.7 - PEP 546

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: ssl_io_loop() currently ignores the timeout parameter: https://github.com/python/cpython/pull/3500 fixes it in the master branch. -- ___ Python tracker

[issue30860] Consolidate stateful C globals under a single struct.

2017-09-11 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3493 ___ Python tracker ___ ___

[issue30860] Consolidate stateful C globals under a single struct.

2017-09-11 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3492 ___ Python tracker ___ ___

[issue31419] Can not install python3.6.2 due to Error 0x80070643: Failed to install MSI package

2017-09-11 Thread Fernado
New submission from Fernado: HI: I tried to install python3.5.1 64bit and python3.6.2 64bit on wondows, I met the same problem. Error 0x80070643: Failed to install MSI package. [2BD0:2360][2017-09-11T14:56:47]e000: Error 0x80070643: Failed to configure per-user MSI package.

[issue30758] test_pydoc hangs sometimes on 3.6 and master branches on ARMv7 Ubuntu 3.x

2017-09-11 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/ARMv7%20Ubuntu%203.x/builds/1337/steps/test/logs/stdio The issue still exists: 0:10:38 load avg: 7.31 [403/405] test_multiprocessing_forkserver passed (110 sec) -- running: test_pydoc (590 sec), test_buffer (55 sec)

[issue31418] assertion failure in PyErr_WriteUnraisable() in case of an exception with a bad __module__

2017-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think this patch doesn't need a test (which would require using a subprocess). -- ___ Python tracker ___

Re: People choosing Python 3

2017-09-11 Thread Matt Ruffalo
On 2017-09-10 05:42, Chris Warrick wrote: > > RHEL’s release process starts at forking a recent Fedora release. It > wouldn’t make much sense for them to undo the Python 3 progress that > happened over the past few years in Fedora — including dnf, an > improved package manager written in Python 3.

  1   2   >