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

[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

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

[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

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

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

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

[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

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

[issue31394] Ellipsis_token.type != token.ELLIPSIS

2017-09-12 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +3526 ___ 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

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

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"?

[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

[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

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

[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

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

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

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

[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

[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

[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

[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

[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

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

[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

[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

[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

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

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

[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

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

[issue31249] test_concurrent_futures leaks dangling threads

2017-09-12 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3520 ___ 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

[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

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

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

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

[issue31275] Check fall-through in _codecs_iso2022.c

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

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

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

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

[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

[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

[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

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

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

Re: [Tutor] beginning to code

2017-09-12 Thread Paul Moore
On 12 September 2017 at 18:52, Rick Johnson wrote: > In any event, i believe my point -- that complex statements > in Ruby follow a more intuitive left-to-right comprehension > flow, whereas Python, which due to a reliance on built-in > functions as opposed to Object

Re: Hatch - A modern project, package, and virtual env manager

2017-09-12 Thread ofekmeister
0.10.0 features environment-aware testing, full Xonsh shell support, and more colors! https://github.com/ofek/hatch#0100 -- https://mail.python.org/mailman/listinfo/python-list

[issue28909] Adding LTTng-UST tracing support

2017-09-12 Thread Francis Deslauriers
Francis Deslauriers added the comment: Hi all, Is there anything I can do to move this patch-set forward? @Charalampos, I will make sure to include this in the patch. Thank you. -- ___ Python tracker

Re: Python dress

2017-09-12 Thread Leam Hall
On 09/12/2017 04:00 PM, Ben Finney wrote: Larry Martell writes: https://svahausa.com/collections/shop-by-interest-1/products/python-code-fit-flare-dress (And if any guys want to wear this, there's nothing wrong with that.) Boo, the code is not PEP 8 conformant :-)

[issue27815] Make SSL suppress_ragged_eofs default more secure

2017-09-12 Thread Martin Panter
Martin Panter added the comment: Even if some use cases depend on suppress_ragged_eofs=True, I think it is best to avoid that as the default. There could be a deprecation period if necessary. I tested some HTTP clients I had handy. In summary, most seemed to handle a truncation attack on the

[issue31427] Proposed addition to Windows FAQ

2017-09-12 Thread Eryk Sun
Eryk Sun added the comment: The FAQ could instead link to the more recent update, KB3118401. https://support.microsoft.com/en-us/help/3118401/update-for-universal-c-runtime-in-windows -- nosy: +eryksun ___ Python tracker

[issue31250] test_asyncio leaks dangling threads

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5013a5ebc9978a58435036fa3860c465882c21da by Victor Stinner in branch '3.6': [3.6] bpo-31250: test_asyncio: fix dangling threads (#3517) https://github.com/python/cpython/commit/5013a5ebc9978a58435036fa3860c465882c21da --

[issue31427] Proposed addition to Windows FAQ

2017-09-12 Thread Eryk Sun
Changes by Eryk Sun : -- versions: +Python 3.5 ___ Python tracker ___ ___

[issue31250] test_asyncio leaks dangling threads

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

[issue31435] Addition giving incorrect result in certain circumstances

2017-09-12 Thread R. David Murray
R. David Murray added the comment: https://docs.python.org/3/tutorial/floatingpoint.html -- nosy: +r.david.murray ___ Python tracker ___

[issue31435] Addition giving incorrect result in certain circumstances

2017-09-12 Thread Stefan Krah
Stefan Krah added the comment: Pythons has binary floating point, which does not give the same results as a pocket calculator. You can see the differences by using the decimal module: # These are the binary floats in exact decimal representation. >>> Decimal(7.95)

Re: Python dress

2017-09-12 Thread Ben Finney
Larry Martell writes: > https://svahausa.com/collections/shop-by-interest-1/products/python-code-fit-flare-dress > (And if any guys want to wear this, there's nothing wrong with that.) Boo, the code is not PEP 8 conformant :-) If it weren't for the bad code style, I

[issue31435] Addition giving incorrect result in certain circumstances

2017-09-12 Thread Aodhán Collins
New submission from Aodhán Collins: Basic addition is dropping a tiny fraction when adding together certain numbers. We have discovered that when adding together the numbers 8.95 and 0.95 we get an incorrect answer, that is off by a tiny fraction. This doesn't occur when adding 7.95 and 0.95

[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: > The recursion case was successfully deep copying under Python 2. When > migrating the code, the sudden recursion error is pretty hard to debug. Python 3 is not compatible with Python 2 because it fixes many bugs that can't be fixed without breaking

[issue18875] Idle: Auto insertion of the closing parens, brackets, and braces

2017-09-12 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- keywords: +patch pull_requests: +3517 stage: -> patch review ___ Python tracker ___

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

2017-09-12 Thread Łukasz Langa
Łukasz Langa added the comment: > These two classes obviously are not pickleable. Pickling or copying them is a > programming error. The recursion case was successfully deep copying under Python 2. When migrating the code, the sudden recursion error is pretty hard to debug. > I believe the

[issue31370] Remove support for threads-less builds

2017-09-12 Thread R. David Murray
R. David Murray added the comment: And actually, I wouldn't be surprised if eventlet depended on the *functionality* in _dummy_threading, so you probably need to restore that, too. -- ___ Python tracker

[issue31370] Remove support for threads-less builds

2017-09-12 Thread R. David Murray
R. David Murray added the comment: dummy_threading should definitely not have been removed, and like all the other APIs should not be removed until 2.7 is dead. Deprecating it is of course fine :) -- nosy: +r.david.murray ___ Python tracker

[issue31433] Impossible download python 3.6.2 and 2.7 documentation (html)

2017-09-12 Thread Berker Peksag
Berker Peksag added the comment: Thank you for the report. This is a duplicate of issue 31395. See https://bugs.python.org/issue31395#msg301978 and https://github.com/python/psf-salt/issues/118 for details. -- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status:

[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: > The two test cases added demonstrate what was impossible to pickle before and > is now. These two classes obviously are not pickleable. Pickling or copying them is a programming error. I believe the proper way of making them pickleable and copyable is

[issue31434] [3.6] Python/random.c:128:17: warning: implicit declaration of function 'getrandom'

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: Oh, the warning probably comes from the fact that I upgraded since Fedora 24 to Fedora 25. Re-running ./configure fixed the issue. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python

[issue16500] Allow registering at-fork handlers

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

[issue31234] Make support.threading_cleanup() stricter

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset a15d155aadfad232158f530278505cdc6f326f93 by Victor Stinner in branch 'master': bpo-31234: Enhance test_thread.test_forkinthread() (#3516) https://github.com/python/cpython/commit/a15d155aadfad232158f530278505cdc6f326f93 --

[issue31234] Make support.threading_cleanup() stricter

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

[issue16500] Allow registering at-fork handlers

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset a15d155aadfad232158f530278505cdc6f326f93 by Victor Stinner in branch 'master': bpo-31234: Enhance test_thread.test_forkinthread() (#3516) https://github.com/python/cpython/commit/a15d155aadfad232158f530278505cdc6f326f93 --

[issue31434] [3.6] Python/random.c:128:17: warning: implicit declaration of function 'getrandom'

2017-09-12 Thread STINNER Victor
New submission from STINNER Victor: haypo@selma$ touch Python/random.c haypo@selma$ LANG= make gcc -pthread -c -Wno-unused-result -Wsign-compare -g -Og -Wall -Wstrict-prototypes -O0 -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -I. -I./Include

[issue31275] Check fall-through in _codecs_iso2022.c

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

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

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

Re: [Tutor] beginning to code

2017-09-12 Thread Chris Angelico
On Wed, Sep 13, 2017 at 3:22 AM, 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

[issue31250] test_asyncio leaks dangling threads

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

Re: [Tutor] beginning to code

2017-09-12 Thread Chris Angelico
On Wed, Sep 13, 2017 at 3:22 AM, Rick Johnson wrote: > Oops! Yes, i did put a superfluous anonymous function in > there, my bad O:-) Although, to my defense, (and although i > never use this style in real code, but i'm trying to save > face here #_o, so bear with

[issue31417] Use the enumerate function where appropriate

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

Re: [Tutor] beginning to code

2017-09-12 Thread Rick Johnson
Chris Angelico wrote: > Rick Johnson wrote: > > Chris Angelico wrote: > > > Rick Johnson wrote: > > > > > > > > Ruby: > > > > farray = [1.5, 1.9, 2.0, 1.0] > > > > uniqueIntegers = farray.map{|f| f.to_i()}.uniq.length > > > > > > > > Python: > > > > flist = [1.5, 1.9, 2.0, 1.0] > > >

[issue31234] Make support.threading_cleanup() stricter

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

[issue16500] Allow registering at-fork handlers

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

[issue31370] Remove support for threads-less builds

2017-09-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Following lines needs updating: Lib/importlib/_bootstrap.py:1135 Lib/_pydecimal.py:436 Lib/test/ssl_servers.py:11 Lib/test/support/__init__.py:2053 Lib/test/test_httplib.py:1080 Lib/test/test_idle.py:4 Lib/test/test_multiprocessing_main_handling.py:3

[issue31433] Impossible download python 3.6.2 and 2.7 documentation (html)

2017-09-12 Thread Diego Satoba
New submission from Diego Satoba: Hi, Links to python 3.6.2 and 2.7 documentation in HTML are broken, web server returns 404 Not Found. The links are: https://docs.python.org/2/archives/python-2.7.14rc1-docs-html.zip https://docs.python.org/3/archives/python-3.6.2-docs-html.zip --

Re: Python dress

2017-09-12 Thread Jona Azizaj
It looks very nice, thanks for sharing :) On 09/12/2017 06:16 PM, Larry Martell wrote: > Not too many females here, but anyway: > >

[issue31395] Docs Downloads are 404s

2017-09-12 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. After looking into this a bit, the URLs you are using are those from the daily docs build, the latest doc changes checked into each branch. As best I can tell, the part of the daily build that makes the downloadable files has been broken,

[issue31069] test_multiprocessing_spawn and test_multiprocessing_forkserver leak dangling processes

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: On the FreeBSD 10 buildbot, I ran test_multiprocessing_forkserver during 10 minutes twice in two terminals, while running "./python -m test -j2 -r -F" twice in two other terminals to stress the machine. I failed to reproduce the "Warning -- Dangling threads:

[issue31432] Documention for CERT_OPTIONAL is misleading

2017-09-12 Thread Christian Heimes
Christian Heimes added the comment: PS: OpenSSL still validates the chain when SSL_VERIFY_NONE is set. In that mode OpenSSL just does not abort the handshake when an error occurs. OpenSSL keeps the last verification error around, see #31372. -- ___

[issue25115] SSL_set_verify_depth not exposed by the ssl module

2017-09-12 Thread Alex Gaynor
Alex Gaynor added the comment: For the use case of "I want to trust this CA, but I don't want to trust any of it's sub CAs" I think there's a simpler solution than expanding our API: Create your own cross-sign of the root you want, and add a pathLenConstraint: 0 to the basicConstraints

Re: Brainstorming on recursive class definitions

2017-09-12 Thread moogyd--- via Python-list
On Tuesday, September 12, 2017 at 5:37:31 PM UTC+2, Johannes Bauer wrote: > Hi group, > > so I'm having a problem that I'd like to solve *nicely*. I know plenty > of ways to solve it, but am curious if there's a solution that allows me > to write the solution in a way that is most comfortable for

[issue31427] Proposed addition to Windows FAQ

2017-09-12 Thread Steve Dower
Steve Dower added the comment: This is a problem with 3.5 and later running on Windows 8.1 or earlier without all Windows Updates being installed. It can happen for two reasons: * not using the official installer (most common) * random failure in the official installer (rare) Installing

[issue31370] Remove support for threads-less builds

2017-09-12 Thread Christian Heimes
Christian Heimes added the comment: +1 to restore dummy_threading and go through a proper deprecation phase in 3.7+. -0 to restore _dummy_thread. It's an internal, private module. -- nosy: +christian.heimes ___ Python tracker

[issue25115] SSL_set_verify_depth not exposed by the ssl module

2017-09-12 Thread Christian Heimes
Christian Heimes added the comment: Grant, I'm not sure I follow you. Do I understand correctly that you want to call SSL_CTX_set_verify_depth(ctx, 1), in order to enforce that a peer cert is directly signed by your CA? That doesn't sound like a good use of SSL_CTX_set_verify_depth(),

  1   2   >