Re: Simple board game GUI framework

2017-09-12 Thread Wolfgang Maier
On 11.09.2017 12:58, Paul Moore wrote: I'm doing some training for a colleague on Python, and I want to look at a bit of object orientation. For that, I'm thinking of a small project to write a series of classes simulating objects moving round on a chess-style board of squares. I want to

Re: array.array()'s memory shared with multiprocessing.Process()

2017-09-12 Thread gerlando . falauto
Il giorno lunedì 11 settembre 2017 12:19:27 UTC+2, Thomas Jollans ha scritto: > On 2017-09-10 23:05, iurly wrote: > > As far as I'm concerned, I'm probably better off using double buffers to > > avoid this kind of issues. > > Thanks a lot for your help! > > > > > That should work. Some other

[issue31426] Segfault during GC of generator object; invalid gi_frame?

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: I pointed bpo-26617 to Ian since Python 3.5.2 contains this GC crash, but it seems like it's not the same bug. -- nosy: +pitrou, serhiy.storchaka ___ Python tracker

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

2017-09-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3504 ___ Python tracker ___

Re: windows 8 versus urllib2 certificate verify

2017-09-12 Thread dieter
Robin Becker writes: > 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

[issue31426] [3.5] gen_traverse(): gi_frame.ob_type=NULL when called by subtract_refs() during a GC collection

2017-09-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +yselivanov ___ Python tracker ___ ___

[issue31426] [3.5] gen_traverse(): gi_frame.ob_type=NULL when called by subtract_refs() during a GC collection

2017-09-12 Thread STINNER Victor
Changes by STINNER Victor : -- title: Segfault during GC of generator object; invalid gi_frame? -> [3.5] gen_traverse(): gi_frame.ob_type=NULL when called by subtract_refs() during a GC collection ___ Python tracker

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

2017-09-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

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

2017-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9adc87b0f82e5169c5f44739f89212a86013d1c4 by Serhiy Storchaka in branch '3.6': [3.6] bpo-31416: Fix assertion failures in case of a bad warnings.filters or warnings.defaultaction. (GH-3496) (#3509)

Re: array.array()'s memory shared with multiprocessing.Process()

2017-09-12 Thread Stephan Houben
Op 2017-09-12, gerlando.fala...@gmail.com schreef : > Notice however how I'd have to create those Arrays dynamically in the > producer thread. Would I then be able to pass them to the consumer by > putting a reference in a queue? Yes. > I wouldn't want them to be

[issue31265] Remove doubly-linked list from C OrderedDict

2017-09-12 Thread INADA Naoki
INADA Naoki added the comment: > 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

[issue31265] Remove doubly-linked list from C OrderedDict

2017-09-12 Thread INADA Naoki
INADA Naoki added the comment: > I would side with Inada in thinking they both give the same amortized > complexity, but beyond that, benchmarks are the real answer. There is little > value in keeping the current implementation of OrderedDict *if* benchmarks > show that it is rarely faster.

[issue31426] Segfault during GC of generator object; invalid gi_frame?

2017-09-12 Thread Ian Wienand
New submission from Ian Wienand: Using 3.5.2-2ubuntu0~16.04.3 (Xenial) we see an occasional segfault during garbage collection of a generator object A full backtrace is attached, but the crash appears to be triggered inside gen_traverse during gc --- (gdb) info args gen = 0x7f22385f0150

[issue31426] Segfault during GC of generator object; invalid gi_frame?

2017-09-12 Thread Ian Wienand
Changes by Ian Wienand : Added file: https://bugs.python.org/file47135/crash-py-bt.txt ___ Python tracker ___

[issue31426] Segfault during GC of generator object; invalid gi_frame?

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: Python 3.5 moved to security only fixes recently, it doesn't accept bug fixes anymore: https://devguide.python.org/#status-of-python-branches It would be nice to Python 3.5.4 at least, or better: Python 3.6.x. > (gdb) print *gen->gi_frame > $112 = {ob_base =

[issue31426] [3.5] crash in gen_traverse(): gi_frame.ob_type=NULL, called by subtract_refs() during a GC collection

2017-09-12 Thread STINNER Victor
Changes by STINNER Victor : -- title: [3.5] gen_traverse(): gi_frame.ob_type=NULL when called by subtract_refs() during a GC collection -> [3.5] crash in gen_traverse(): gi_frame.ob_type=NULL, called by subtract_refs() during a GC collection

[issue31373] demoting floating float values to unrepresentable types is undefined behavior

2017-09-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset cb356c2ecc0528d47fee2b9f4b32da4fcfb48b3a by Benjamin Peterson in branch '3.6': [3.6] bpo-31373: remove overly strict float range checks (GH-3486) (#3495) https://github.com/python/cpython/commit/cb356c2ecc0528d47fee2b9f4b32da4fcfb48b3a

Re: array.array()'s memory shared with multiprocessing.Process()

2017-09-12 Thread Thomas Jollans
On 12/09/17 10:21, gerlando.fala...@gmail.com wrote: > Il giorno lunedì 11 settembre 2017 12:19:27 UTC+2, Thomas Jollans ha scritto: >> On 2017-09-10 23:05, iurly wrote: >>> As far as I'm concerned, I'm probably better off using double buffers to >>> avoid this kind of issues. >>> Thanks a lot

Re: mutiprocessing gui

2017-09-12 Thread dieter
Antoon Pardon writes: > When one wants to combine multithreading and gui programming > all sorts of issues arise. So I wonder how one might combine > multiprocessing with gui programming. > > gui libraries typically have some registration mechanisme, > where you can register

[issue31426] [3.5] gen_traverse(): gi_frame.ob_type=NULL when called by subtract_refs() during a GC collection

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: > I pointed bpo-26617 to Ian since Python 3.5.2 contains this GC crash, but it > seems like it's not the same bug. Ah, I found an issue which had bpo-26617 in subtract_refs():

[issue31437] test_socket.SendfileUsingSendfileTest.testWithTimeoutTriggeredSend fails due to sendfile completing before timeout

2017-09-12 Thread Brian Moyles
New submission from Brian Moyles: In building Python 3.6.2 on Ubuntu 16.04, test_socket repeatedly fails at == FAIL: testWithTimeoutTriggeredSend (test.test_socket.SendfileUsingSendfileTest)

[issue30923] Add -Wimplicit-fallthrough=0 to Makefile ?

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset c0e77364ca29df6cfb311e79892955c92bd8e595 by Victor Stinner in branch '3.6': [3.6] bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0 (#3518)

[issue31275] Check fall-through in _codecs_iso2022.c

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset c0e77364ca29df6cfb311e79892955c92bd8e595 by Victor Stinner in branch '3.6': [3.6] bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0 (#3518)

[issue31275] Check fall-through in _codecs_iso2022.c

2017-09-12 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.6 ___ Python tracker ___ ___

Re: Python dress

2017-09-12 Thread Steve D'Aprano
On Wed, 13 Sep 2017 02:16 am, Larry Martell wrote: > Not too many females here, but anyway: > > https://svahausa.com/collections/shop-by-interest-1/products/python-code-fit-flare-dress Was expecting a dress in a snake-skin pattern. Was pleasantly surprised to see Insertion Sort in Python on a

[issue31249] test_concurrent_futures leaks dangling threads

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3bcf157c115ba3e48bce62ac8cb13c703475a113 by Victor Stinner in branch 'master': bpo-31249: Fix test_concurrent_futures dangling thread (#3521) https://github.com/python/cpython/commit/3bcf157c115ba3e48bce62ac8cb13c703475a113 --

[issue31438] IDLE 3 crashes and quits when caret character typed

2017-09-12 Thread ALPER PAKSOY
New submission from ALPER PAKSOY: IDLE 3 crashes and quits whenever I type the caret (^) character in the editor. I have to copy and paste the caret character into the IDLE editor whenever I have to use the caret character. I have the IDLE 3.6.2 running on macOS Sierra (v10.12.6) on mid-2011

[issue31164] test_functools: test_recursive_pickle() stack overflow on x86 Gentoo Refleaks 3.x

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: Sadly, this crash was only seen once in one month, so I will just close the issue :-/ -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue31438] IDLE 3 crashes and quits when caret character typed

2017-09-12 Thread R. David Murray
R. David Murray added the comment: Have you followed the instructions on this page?: https://www.python.org/download/mac/tcltk/ -- nosy: +r.david.murray ___ Python tracker

[issue31394] Ellipsis_token.type != token.ELLIPSIS

2017-09-12 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +3525 ___ Python tracker ___ ___

[issue31394] Ellipsis_token.type != token.ELLIPSIS

2017-09-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 5513e888e9a742156c35ce7ab628407d8cf9e1f0 by Mariatta in branch '3.6': [3.6] bpo-31394: Clarify documentation about token type attribute (GH-3469) (GH-3525) https://github.com/python/cpython/commit/5513e888e9a742156c35ce7ab628407d8cf9e1f0

[issue31437] test_socket.SendfileUsingSendfileTest.testWithTimeoutTriggeredSend fails due to sendfile completing before timeout

2017-09-12 Thread Brian Moyles
Brian Moyles added the comment: accidental double-submit, duplicates Issue31436 -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue31249] test_concurrent_futures leaks dangling threads

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: I still see the warning sometimes: 0:04:09 load avg: 7.03 [185/405/1] test_concurrent_futures failed (env changed) (68 sec) -- running: test_multiprocessing_spawn (160 sec), test_gdb (53 sec), test_lib2to3 (195 sec) test_cancel

[issue31259] [3.6] Enhance support reap_children() and threading_cleanup()

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: While backporting fixes on tests make sense, I'm not sure that it's doable to make regrtest more strict. It took me a while to fix all "dangling threads" and "dangling processes" on the master branch, and 6 months later, I'm not done yet. There are tricky

[issue31320] test_ssl logs a traceback

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix Christian. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue30313] Tests of Python 2.7 VS9.0 buildbots must be run with -uall -rwW options

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: Zachary Ware fixed the issue by tuning VS9 buildbot configurations: --- class Windows27VS9Build(WindowsBuild): buildersuffix = 'vs9' build_command = [r'PC\VS9.0\build.bat', '-e', '-k', '-d'] test_command = [r'PC\VS9.0\rt.bat', '-q', '-d', '-uall',

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

2017-09-12 Thread Nick Coghlan
Nick Coghlan added the comment: Introducing sys.__modules__ doesn't solve the problem, since you'd be able to recreate the problems Oren reports just by messing with that as well as with sys.modules. And we try reasonable hard to protect users from completely breaking the interpreter just by

[issue31394] Ellipsis_token.type != token.ELLIPSIS

2017-09-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 5f8fbf917ebf2398aa75a1f271617e2e50ab7c88 by Mariatta (Aivar Annamaa) in branch 'master': bpo-31394: Clarify documentation about token type attribute (GH-3469) https://github.com/python/cpython/commit/5f8fbf917ebf2398aa75a1f271617e2e50ab7c88

[issue16500] Allow registering at-fork handlers

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset bcf042ff98b6261b7780c1e40fa1681ef30502f9 by Victor Stinner (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31234: Enhance test_thread.test_forkinthread() (GH-3516) (#3519)

[issue31234] Make support.threading_cleanup() stricter

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset bcf042ff98b6261b7780c1e40fa1681ef30502f9 by Victor Stinner (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31234: Enhance test_thread.test_forkinthread() (GH-3516) (#3519)

[issue31233] socketserver.ThreadingMixIn leaks running threads after server_close()

2017-09-12 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch pull_requests: +3521 stage: -> patch review ___ Python tracker ___

[issue31233] socketserver.ThreadingMixIn leaks running threads after server_close()

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: Again, PR 3523 is a temporary fix to unblock the situation. For a proper fix, I have a question: Should server_close() calls self.close_request(request) on thread requests? -- ___ Python tracker

Re: [Tutor] beginning to code

2017-09-12 Thread Rick Johnson
Chris Angelico wrote: > Rick Johnson wrote: > > So, what are your answers to my four questions: > > > > (1) Is it a speed issue? Then prove it. > > > > (2) Is it a readability issue? If so, then that's an > > opinion _you_ get to have. > > > > (3) Is it a matter of "python purity"?

[issue31394] Ellipsis_token.type != token.ELLIPSIS

2017-09-12 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31249] test_concurrent_futures leaks dangling threads

2017-09-12 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch pull_requests: +3519 stage: resolved -> patch review ___ Python tracker ___

[issue31233] socketserver.ThreadingMixIn leaks running threads after server_close()

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: Another recent example while testing bpo-31234: test_ThreadingUDPServer (test.test_socketserver.SocketServerTest) ... (...) done Warning -- threading_cleanup() detected 1 leaked threads (count: 1, dangling: 2) ok --

[issue31234] Make support.threading_cleanup() stricter

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: Remaining issue: socketserver. bpo-31233: socketserver.ThreadingMixIn leaks running threads after server_close() See also bpo-31151: socketserver.ForkingMixIn.server_close() leaks zombie processes. -- ___ Python

[issue30830] test_logging leaks dangling threads on FreeBSD

2017-09-12 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch pull_requests: +3522 stage: -> patch review ___ Python tracker ___

[issue31151] socketserver.ForkingMixIn.server_close() leaks zombie processes

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: I created a thread on the python-dev mailing list to discuss this issue: https://mail.python.org/pipermail/python-dev/2017-August/148826.html -- ___ Python tracker

[issue31258] [2.7] Enhance support reap_children() and threading_cleanup()

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: While backporting fixes on tests make sense, I'm not sure that it's doable to make regrtest more strict. It took me a while to fix all "dangling threads" and "dangling processes" on the master branch, and 6 months later, I'm not done yet. There are tricky

[issue30855] [2.7] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this failure since one month on the 2.7 buildbots. While I fear that the bug still exists, I close it to clean up my list of open issues. I will reopen the issue if the bug strikes back! -- resolution: -> out of date status: open ->

[issue31394] Ellipsis_token.type != token.ELLIPSIS

2017-09-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset ea0f7c26cef4550bf4db1a9bae17d41b79ab7c0d by Mariatta in branch 'master': bpo-31394: Make tokenize.rst PEP 8-compliant (GH-3526) https://github.com/python/cpython/commit/ea0f7c26cef4550bf4db1a9bae17d41b79ab7c0d --

Re: Using Python 2

2017-09-12 Thread Steven D'Aprano
On Tue, 12 Sep 2017 20:22:30 -0700, Rick Johnson wrote: > Gregory Ewing wrote: >> Rick Johnson wrote: >> > Heck, when is the last time GvR participated in any discussion >> > outside the hermetic bubble of Python-Dev or Python-Ideas? >> >> I'd hardly call python-ideas "hermetic". Anyone is free

Re: Simple board game GUI framework

2017-09-12 Thread Rick Johnson
Terry Reedy wrote: > Paul Moore said: [...] > I was going to suggest tkinter. I would second Terry's advice here. If a low barrier and simplicity are what you want, then i would suggest tkinter first and Pygame second. You can do a lot with a tk.Canvas widget, and for proper image support make

[issue31438] IDLE 3 crashes and quits when caret character typed

2017-09-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the future, please upload plain text. I am fairly certain that this is a duplicate of previous issues about Apple's buggy tcl/tk causing crashes that bypass Python's error reporting. -- assignee: terry.reedy -> components: +Tkinter, macOS -IDLE

[issue31151] socketserver.ForkingMixIn.server_close() leaks zombie processes

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: I tag this issue as release blocker as a remainder that we have to agree how to handle threads/processes before Python 3.7 feature freeze. See also bpo-31233: socketserver.ThreadingMixIn leaks running threads after server_close(). -- nosy: +ned.deily

[issue31233] socketserver.ThreadingMixIn leaks running threads after server_close()

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: Attached PR 3523 is a temporary solution until we agree how to handle these threads and child processes in socketserver. I wrote the PR to fix "dangling threads" warnings to fix random buildbot failures. The PR fixes warnings but also reenable test_logging

[issue31249] test_concurrent_futures leaks dangling threads

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 94eb2d5b73d07bc447f1fe19923b4c3259734b9c by Victor Stinner (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31249: Fix test_concurrent_futures dangling thread (GH-3521) (#3522)

[issue31439] WindowsError: [Error 2] The system cannot find the file specified

2017-09-12 Thread Sneha Tipugade
Changes by Sneha Tipugade : -- components: Windows nosy: Sneha Tipugade, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: WindowsError: [Error 2] The system cannot find the file specified type: compile error

[issue31431] SSL: check_hostname should imply CERT_REQUIRED

2017-09-12 Thread Christian Heimes
Changes by Christian Heimes : -- keywords: +patch pull_requests: +3528 stage: needs patch -> patch review ___ Python tracker ___

Re: Python dress

2017-09-12 Thread Steven D'Aprano
On Wed, 13 Sep 2017 01:12:25 +0100, MRAB wrote: >> I don't recall seeing them go into paroxysms of >> gender confusion when Prince Charles, >> Duke of Edinburgh, appears in public wearing a kilt. > > You do know that Prince Charles is the Prince of Wales and that the Duke > of Edinburgh is his

[issue31432] Documention for CERT_OPTIONAL is misleading

2017-09-12 Thread Christian Heimes
Changes by Christian Heimes : -- keywords: +patch pull_requests: +3527 stage: -> patch review ___ Python tracker ___

[issue31436] test_socket.SendfileUsingSendfileTest.testWithTimeoutTriggeredSend fails due to sendfile completing before timeout

2017-09-12 Thread Brian Moyles
New submission from Brian Moyles: In building Python 3.6.2 on Ubuntu 16.04, test_socket repeatedly fails at == FAIL: testWithTimeoutTriggeredSend (test.test_socket.SendfileUsingSendfileTest)

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

2017-09-12 Thread Eric Snow
Eric Snow added the comment: > I haven't finished reviewing PR 1638. I'm not sure that this change > is worth. It breaks a code that assumes that sys.module is a dict, > and I afraid it slows down importing. Maybe revert this change until > resolving all problems? Yeah, I'm leaning that way

[issue29475] option to not follow symlinks when globbing

2017-09-12 Thread wim glenn
wim glenn added the comment: +1, would like to use this feature too, and I would like it also in pathlib.PosixPath.glob -- nosy: +wim.glenn ___ Python tracker

Re: [Tutor] beginning to code

2017-09-12 Thread INADA Naoki
2017/09/13 午前3:04 "Rick Johnson" : alister wrote: > [...] > were i to be less generous I would suggest that you had > deliberately picked the worst python method you could think > of to make the point Feel free to offer a better solution if you like. INADA Naoki

Re: [Tutor] beginning to code

2017-09-12 Thread Steve D'Aprano
On Wed, 13 Sep 2017 01:18 am, Paul Moore wrote: > Using map vs comprehensions is mostly a stylistic choice. Python > programmers will typically choose a comprehension, so that style looks > more idiomatic, but the map is not wrong. I haven't tested which is > faster - I can't imagine it would

[issue31394] Ellipsis_token.type != token.ELLIPSIS

2017-09-12 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +3526 ___ Python tracker ___ ___

[issue31233] socketserver.ThreadingMixIn leaks running threads after server_close()

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: Multiple test_logging tests have been skipped until this issue is fixed: see bpo-30830 and commit 6966960468327c958b03391f71f24986bd697307. -- ___ Python tracker

[issue31249] test_concurrent_futures leaks dangling threads

2017-09-12 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3520 ___ Python tracker ___

[issue31249] test_concurrent_futures leaks dangling threads

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: Ok, the issue should now be fixed in Python 3.6 and master (future 3.7). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31233] socketserver.ThreadingMixIn leaks running threads after server_close()

2017-09-12 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3524 ___ Python tracker ___ ___

[issue30830] test_logging leaks dangling threads on FreeBSD

2017-09-12 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3523 ___ Python tracker ___ ___

[issue30830] test_logging leaks dangling threads on FreeBSD

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: While testing PR 3138 (stricter threading_cleanup) with PR 3523 (socketserver joins threads), I got the following warning: test_listen_config_1_ok (test.test_logging.ConfigDictTest) ... Warning -- threading_cleanup() detected 1 leaked threads (count: 1,

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

2017-09-12 Thread R. David Murray
R. David Murray added the comment: Hmm. I must have made a mistake when I ran (jpc's) test on 3.7. It is failing with the NameError for me when I try it again. -- resolution: -> not a bug stage: -> resolved status: open -> closed type: compile error -> behavior

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

2017-09-12 Thread Tim Golden
On 12/09/2017 12:20, Leam Hall wrote: This is an area the Python community can improve on. Even I would encourage someone new to Python and wanting to do webdev to use Python 3. But if someone comes onto the list, or IRC, and says they need to stay on Python 2 then please drop the dozens of

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

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

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

2017-09-12 Thread Leam Hall
On 09/12/2017 08:28 AM, Steve D'Aprano wrote: On Tue, 12 Sep 2017 09:20 pm, Leam Hall wrote: But if someone comes onto the list, or IRC, and says they need to stay on Python 2 then please drop the dozens of e-mails and comments about upgrading. [...] My recent experience with some people's

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

2017-09-12 Thread Stephan Houben
Op 2017-09-12, Tim Golden schreef : > I agree. Except for the unusual case where someone's mistakenly chosen > to use, eg, Python 2.4 because they're using an old text book which > mentions it as the current version, most people are using the version > which suits them

[issue31429] TLS cipher suite compile time option for downstream

2017-09-12 Thread Christian Heimes
New submission from Christian Heimes: Python overrides OpenSSL's default cipher suites because the default selection used to be pretty bad and insecure. Python disables cipher suites with insecure algorithm such as RC4, MD5, DES, and 3DES. The SSL module has hard-coded cipher strings for

[issue31427] Proposed addition to Windows FAQ

2017-09-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Is this only a problem with 3.6.0 or >= 3.6.0? -- components: +Windows nosy: +Mariatta, paul.moore, steve.dower, tim.golden, zach.ware stage: -> needs patch ___ Python tracker

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

2017-09-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2017-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What the problem tries to solve PR 3508? Swallowing all exceptions looks like an antipattern to me. This puts the problem under the carpet. Rather than failing and allowing the programmer to fix the picleability of its class, this can silently produce

[issue31408] Leak in typeobject.c

2017-09-12 Thread Stefan Krah
Stefan Krah added the comment: It's fixed, thanks! -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> Reference leaks introduced by bpo-30860 ___ Python tracker

[issue27099] IDLE: turn built-in extensions into regular modules

2017-09-12 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3506 ___ Python tracker ___

[issue1612262] Class Browser doesn't show internal classes

2017-09-12 Thread Nick Coghlan
Nick Coghlan added the comment: I think a bundled copy as idlelib._pyclbr in the 3.6 branch would be within the intent of PEP 434. -- ___ Python tracker

[issue27099] IDLE: turn built-in extensions into regular modules

2017-09-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +3505 ___ Python tracker ___ ___

Re: Fw: Problems Installing Python36

2017-09-12 Thread Louis Krupp
On Tue, 12 Sep 2017 07:46:47 GMT, "rdb...@juno.com" wrote: >I have subscribed to the Python List as directed.Below is my information >request re-submitted. Thank you. >-- Forwarded Message -- >From: "rdb...@juno.com" >To:

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

2017-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I haven't finished reviewing PR 1638. I'm not sure that this change is worth. It breaks a code that assumes that sys.module is a dict, and I afraid it slows down importing. Maybe revert this change until resolving all problems? --

[issue27099] IDLE: turn built-in extensions into regular modules

2017-09-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset adb4cd2a2a59019ac6955e0fd531c9fec9258962 by Terry Jan Reedy in branch 'master': bpo-27099: Finish updating IDLE doc and help text. (#3510) https://github.com/python/cpython/commit/adb4cd2a2a59019ac6955e0fd531c9fec9258962 --

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

2017-09-12 Thread Chris Angelico
On Tue, Sep 12, 2017 at 9:20 PM, Leam Hall wrote: > Hey Chris, > > This is an area the Python community can improve on. Even I would encourage > someone new to Python and wanting to do webdev to use Python 3. > > But if someone comes onto the list, or IRC, and says they need

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

2017-09-12 Thread Chris Angelico
On Tue, Sep 12, 2017 at 9:34 PM, Leam Hall wrote: > On 09/12/2017 07:27 AM, Chris Angelico wrote: >> >> On Tue, Sep 12, 2017 at 9:20 PM, Leam Hall wrote: >>> >>> Hey Chris, >>> >>> This is an area the Python community can improve on. Even I would >>>

[issue31428] ElementTree.Element.__deepcopy__() raises a SystemError in case of a bad memo

2017-09-12 Thread Oren Milman
New submission from Oren Milman: The following code causes ElementTree.Element.__deepcopy__() to raise a SystemError: class BadMemo: def get(*args): return None import xml.etree.ElementTree xml.etree.ElementTree.Element('foo').__deepcopy__(BadMemo()) this is because

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

2017-09-12 Thread Leam Hall
Steve, Thank you very much. I appreciate your wisdom and support. Leam -- https://mail.python.org/mailman/listinfo/python-list

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

2017-09-12 Thread Ned Batchelder
On 9/12/17 7:40 AM, Chris Angelico wrote: > On Tue, Sep 12, 2017 at 9:34 PM, Leam Hall wrote: >> On 09/12/2017 07:27 AM, Chris Angelico wrote: >>> On Tue, Sep 12, 2017 at 9:20 PM, Leam Hall wrote: Hey Chris, This is an area the Python

[issue27099] IDLE: turn built-in extensions into regular modules

2017-09-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 01dcaa5c996baf019656cf51451bb1b6ecd720fa by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': [3.6] bpo-27099: Finish updating IDLE doc and help text. (GH-3510) (#3511)

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

2017-09-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 4d7807ab9ad9f990e948d250bbb390b23a790764 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31421: Document how IDLE runs tkinter programs. (GH-3513) (#3514)

[issue31427] Proposed addition to Windows FAQ

2017-09-12 Thread Stephan Houben
New submission from Stephan Houben: Several people have asked on python-list why they are running into these errors. Python 3.6.0 can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing. The solution is to install KB 2999226 "Update for Universal C Runtime in Windows".

[issue31428] ElementTree.Element.__deepcopy__() raises a SystemError in case of a bad memo

2017-09-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> needs patch versions: +Python 2.7, Python 3.6 ___ Python tracker

Re: Fw: Problems Installing Python36

2017-09-12 Thread Stephan Houben
Op 2017-09-12, Thomas Jollans schreef : > This isn't the first time I've someone with this issue here. It's > probably putting off plenty of potential new users who don't make as > much effort to find a solution. I can't say I understand the ins and > outs of installing things on

  1   2   >