[issue31234] Make support.threading_cleanup() stricter

2017-09-14 Thread STINNER Victor
STINNER Victor added the comment: 3 more warnings in test_threading on AMD64 FreeBSD 10.x Shared 3.x: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/886/steps/test/logs/stdio 0:03:45 load avg: 4.05 [246/405/1] test_thread failed (env changed) (...)

[issue31234] Make support.threading_cleanup() stricter

2017-09-14 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Non-Debug%203.x/builds/881/steps/test/logs/stdio 0:08:05 load avg: 1.58 [288/405/1] test_threading failed (env changed) -- running: test_multiprocessing_spawn (83 sec) (...)

[issue31170] Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer)

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

[issue31170] Update to expat 2.2.4 (expat: utf8_toUtf8 cannot properly handle exhausting buffer)

2017-09-14 Thread STINNER Victor
STINNER Victor added the comment: I wrote an non-regression test for the Python master branch using the test case attached to https://github.com/libexpat/libexpat/issues/115: PR 3570. -- ___ Python tracker

[issue31467] cElementTree behaves differently compared to ElementTree

2017-09-14 Thread Ravikumar
New submission from Ravikumar: I have started learning python and I see below snippet fails. I do not understand how to fix the issue and assume this might be a bug in multiprocessing library. I use Python 2.7.12 My python snippet import xml.etree.ElementTree as ET# WORKS import

[issue31467] cElementTree behaves differently compared to ElementTree

2017-09-14 Thread Ravikumar
Ravikumar added the comment: Thanks for the quick update. It helped us to understand the issue. We will check of how to proceed further in our implementation. / Ravi -- stage: -> resolved status: open -> closed ___ Python tracker

Re: the core values of the Python "platform"

2017-09-14 Thread Rhodri James
On 14/09/17 03:22, Stefan Ram wrote: Ben Finney writes (special characters edited): As I understand it, "flat is better than nested" is talking about *hierarchies* in a code base. It's not IIUC referring to anything about the difference between expressions like you

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

2017-09-14 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +3556 ___ Python tracker ___ ___

[issue31420] Reference leaks introduced by bpo-30860

2017-09-14 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +3557 ___ Python tracker ___ ___

[issue31374] expat: warning: "_POSIX_C_SOURCE" redefined

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

[issue31392] Upgrade installers to OpenSSL 1.1.0f

2017-09-14 Thread Christian Heimes
Christian Heimes added the comment: Ned, can you take care of macOS? Victor noted that master still builds with 1.0.2k. -- assignee: christian.heimes -> ned.deily ___ Python tracker

[issue31420] Reference leaks introduced by bpo-30860

2017-09-14 Thread Eric Snow
Eric Snow added the comment: New changeset dae0276bb6bc7281d59fb0b8f1aab31634ee80dc by Eric Snow in branch 'master': bpo-30860: Fix a refleak. (#3567) https://github.com/python/cpython/commit/dae0276bb6bc7281d59fb0b8f1aab31634ee80dc -- ___ Python

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

2017-09-14 Thread Eric Snow
Eric Snow added the comment: New changeset dae0276bb6bc7281d59fb0b8f1aab31634ee80dc by Eric Snow in branch 'master': bpo-30860: Fix a refleak. (#3567) https://github.com/python/cpython/commit/dae0276bb6bc7281d59fb0b8f1aab31634ee80dc -- ___ Python

Re: "tkinter"

2017-09-14 Thread Steven D'Aprano
On Thu, 14 Sep 2017 17:01:30 +1000, Ben Finney wrote: > Steven D'Aprano writes: > >> (1) Separate T K and INTER syllables. >> >> But the problem with that is that there's very little (but not none >> whatsoever) precedence for sounding out letters

[issue21537] functools.lru_cache does not cache exceptions

2017-09-14 Thread Sviatoslav Sydorenko
Sviatoslav Sydorenko added the comment: Hi, I've got similar need (caching exceptions). My use case is syscall, which is not going to result in something different regardless of the number of times it's called. But I'd like to be able to have exception already raised for me by lru_cache, so

[issue31392] Upgrade installers to OpenSSL 1.1.0f

2017-09-14 Thread STINNER Victor
STINNER Victor added the comment: FYI I wrote a script to get the version of all library copies embedded in CPython: https://github.com/haypo/misc/blob/master/cpython/external_versions.py This is how I noticed the OpenSSL version inconsistency. -- nosy: +haypo

[issue31466] No easy way to change float formatting when subclassing encoder.JSONEncoder

2017-09-14 Thread Quentin Peter
New submission from Quentin Peter: I want to output floats in ENG format. Working with distance in micrometers, it is a bit annoying to see: 2.5e-5 .0003 instead of 25e-6 300e-6 The solution I found was to redefine `iterencode` but that doesn't feel right. I would like to see something

[issue31464] Remove trailing spaces from Python-ast.h

2017-09-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed PR makes Parser/asdl_c.py not emitting trailing spaces for blank lines in Include/Python-ast.h. -- messages: 302149 nosy: benjamin.peterson, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Remove

[issue31447] proc communicate not exiting on python subprocess timeout using PIPES

2017-09-14 Thread Eryk Sun
Eryk Sun added the comment: > Now I can read from the "R" pipes with 0 problems (getting the error > and output streams) The pipe handles are inherited by waitfor.exe, just as before. You'll find that reading to EOF will block just as it does when using subprocess.PIPE with communicate().

[issue31466] No easy way to change float formatting when subclassing encoder.JSONEncoder

2017-09-14 Thread Quentin Peter
Changes by Quentin Peter : -- keywords: +patch pull_requests: +3561 stage: -> patch review ___ Python tracker ___

[issue31234] Make support.threading_cleanup() stricter

2017-09-14 Thread STINNER Victor
STINNER Victor added the comment: Oh, test_concurrent_futures.test_exception_with_success() failed on Travis CI :-( https://ci.appveyor.com/project/python/cpython/build/3.7.0a0.6457 test_exception_with_success (test.test_concurrent_futures.FutureTests) ... Warning -- threading_cleanup()

[issue31234] Make support.threading_cleanup() stricter

2017-09-14 Thread STINNER Victor
STINNER Victor added the comment: test_threading.test_foreign_thread() failed: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Debug%203.x/builds/879/steps/test/logs/stdio 0:08:53 load avg: 1.84 [286/405/1] test_threading failed (env changed) -- running:

[issue31465] Allow _PyType_Lookup() to raise exceptions

2017-09-14 Thread Stefan Behnel
New submission from Stefan Behnel: Follow-up to issue 31336: The fact that _PyType_Lookup() does not propagate exceptions leaves some space for ambiguity. If, in a chain of MRO lookups, one would fail and a later one would succeed, is it correct to keep trying? What if the first failure

[issue31464] Remove trailing spaces from Python-ast.h

2017-09-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch pull_requests: +3558 ___ Python tracker ___

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-14 Thread Stefan Behnel
Stefan Behnel added the comment: One more thing: the fact that the lookup does not propagate exceptions leaves some space for ambiguity. If, in a chain of MRO lookups, one would fail and a later one would succeed, is it correct to keep trying? What if the first failure actually failed to see

[issue31467] cElementTree behaves differently compared to ElementTree

2017-09-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This error is from cPickle. >>> import xml.etree.cElementTree as ET >>> root = ET.XML('') >>> import pickle >>> pickle.dumps(root) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/pickle.py", line 1380, in dumps

[issue31467] cElementTree behaves differently compared to ElementTree

2017-09-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Use ElementTree. In Python 3 ElementTree is accelerated and cElementTree is a deprecated alias of ElementTree. -- ___ Python tracker

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

2017-09-14 Thread Mark Lawrence via Python-list
On 14/09/2017 05:37, Terry Reedy wrote: On 9/13/2017 2:44 AM, Paul Rubin wrote: Are there actually Py3 codebases? Let's think a bit.  There is the Python half of the Python3 codebase, perhaps 400K.  But we can discount that. Then there are all the Py compatible modules on PyPI, which is

ANN: NumExpr 2.6.3 release

2017-09-14 Thread Robert McLeod
Hi everyone, This is primarily a maintenance release that fixes a number of newly discovered bugs. The NumPy requirement has increased from 1.6 to 1.7 due to changes with `numpy.nditer` flags. Thanks to Caleb P. Burns `ceil` and `floor` functions are now supported. Project documentation is now

[issue31467] cElementTree behaves differently compared to ElementTree

2017-09-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> wont fix ___ Python tracker ___

[issue31467] cElementTree behaves differently compared to ElementTree

2017-09-14 Thread Ravikumar
Changes by Ravikumar : -- status: open -> closed ___ Python tracker ___ ___

ANN: Bokeh 0.12.9 Released

2017-09-14 Thread Bryan Van de ven
On behalf of the Bokeh team, I am pleased to announce the release of version 0.12.9 of Bokeh! OF SPECIAL NOTE: *** JupyterLab and Fast Array Transport now supported *** Please see the announcement post at: https://bokeh.github.io/blog/2017/9/12/release-0-12-9/ which has more

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

2017-09-14 Thread Christopher Reimer
> On Sep 13, 2017, at 10:12 PM, Paul Rubin wrote: > > Ben Finney writes: >>> I've never seen one. >> who has told you... they are working on a Python 3 code base. > > Just because they've told me about it doesn't mean I saw it personally. >

[issue31471] assertion failure in subprocess.Popen() in case the env arg has a bad keys() method

2017-09-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo, serhiy.storchaka ___ Python tracker ___

[issue31462] Remove trailing whitespaces

2017-09-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I plan to backport the idlelib changes. Do you prefer than I try to include other files (by using cherry-pick) or only do idlelib (probably much easier)? -- nosy: +terry.reedy ___ Python tracker

[issue31234] Make support.threading_cleanup() stricter

2017-09-14 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3569 ___ Python tracker ___ ___

[issue31234] Make support.threading_cleanup() stricter

2017-09-14 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3562 ___ Python tracker ___ ___

[issue31469] Running inside docker container from non-root user

2017-09-14 Thread Dmitriy
New submission from Dmitriy: When i try to run youtube-dl inside docker container from non root user i recieve this error: failed to import the site module traceback (most recent call last): file "/usr/lib/python3.6/site.py", line 544, in main() file "/usr/lib/python3.6/site.py", line 530,

[issue31234] Make support.threading_cleanup() stricter

2017-09-14 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3564 ___ Python tracker ___ ___

[issue10496] Python startup should not require passwd entry

2017-09-14 Thread R. David Murray
R. David Murray added the comment: Unless I'm mistaken, this has come up again in issue 31469. -- nosy: +cinerar, r.david.murray ___ Python tracker ___

[issue31457] LoggerAdapter objects cannot be nested

2017-09-14 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1bbd482bcf6ea36bfe488f868810ffe110238ae1 by Łukasz Langa in branch 'master': bpo-31457: Allow for nested LoggerAdapter objects (#3551) https://github.com/python/cpython/commit/1bbd482bcf6ea36bfe488f868810ffe110238ae1 --

[issue31457] LoggerAdapter objects cannot be nested

2017-09-14 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3567 ___ Python tracker ___

[issue30809] IDLE parenmatch - highlighting options

2017-09-14 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- pull_requests: -2554 ___ Python tracker ___

[issue30809] IDLE parenmatch - highlighting options

2017-09-14 Thread Charles Wohlganger
Changes by Charles Wohlganger : -- keywords: +patch pull_requests: +3565 stage: needs patch -> patch review ___ Python tracker

[issue31469] Running inside docker container from non-root user

2017-09-14 Thread R. David Murray
R. David Murray added the comment: It sounds like docker is just broken (I would expect unix tools to work in a docker container). That however is beside the point. I believe this is a duplicate of issue 10496, but I don't know why it hasn't been fixed. -- nosy: +r.david.murray

[issue31469] Running inside docker container from non-root user

2017-09-14 Thread R. David Murray
Changes by R. David Murray : -- superseder: -> Python startup should not require passwd entry ___ Python tracker ___

[issue31234] Make support.threading_cleanup() stricter

2017-09-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 18e95b4176256f100429a806d0455406df98f984 by Victor Stinner in branch 'master': bpo-31234: Join threads in tests (#3572) https://github.com/python/cpython/commit/18e95b4176256f100429a806d0455406df98f984 --

[issue31234] Make support.threading_cleanup() stricter

2017-09-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8dcf22f442320e4c1a5408e67b4c9002ad105f17 by Victor Stinner in branch 'master': bpo-31234: Join threads in test_hashlib (#3573) https://github.com/python/cpython/commit/8dcf22f442320e4c1a5408e67b4c9002ad105f17 --

[issue31471] assertion failure in subprocess.Popen() in case the env arg has a bad keys() method

2017-09-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> needs patch ___ Python tracker ___

[issue28411] Eliminate PyInterpreterState.modules.

2017-09-14 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +3566 stage: needs patch -> patch review ___ Python tracker ___

[issue31470] Py_Initialize documentation wrong

2017-09-14 Thread Jim Jewett
New submission from Jim Jewett: Per https://docs.python.org/3/c-api/init.html#initializing-and-finalizing-the-interpreter Py_Initialize() "should be called before using any other Python/C API functions; with the exception of Py_SetProgramName(), Py_SetPythonHome() and Py_SetPath()." (1) I

[issue31462] Remove trailing whitespaces

2017-09-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Usually we don't backport such kind of changes. And I afraid that cherry-picking would be with many conflicts, because many changes are in new code. The idlelib changes are more harmless, since they are in text files. --

[issue31234] Make support.threading_cleanup() stricter

2017-09-14 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3568 ___ Python tracker ___ ___

[issue31471] assertion failure in subprocess.Popen() in case the env arg has a bad keys() method

2017-09-14 Thread Oren Milman
New submission from Oren Milman: The following code causes an assertion failure on Windows: class BadEnv(dict): keys = None import subprocess import sys subprocess.Popen([sys.executable, "-c", "pass"], env=BadEnv()) this is because getenvironment() (in Modules/_winapi.c) calls

Re: ttk.Notebook Tabs Question

2017-09-14 Thread Abdur-Rahmaan Janhangeer
try widget["width"] it returns string then mult by no. of tabs Abdur-Rahmaan Janhangeer, Mauritius abdurrahmaanjanhangeer.wordpress.com On 12 Sep 2017 06:45, "Wildman via Python-list" wrote: > I am working on a program that has a ttk.Notebook with > 12 tabs. Is there

[issue31464] Remove trailing spaces from Python-ast.h

2017-09-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 5d84cb368c0c3e475c25171c302068c4dfc3e396 by Benjamin Peterson (Serhiy Storchaka) in branch 'master': bpo-31464: asdl_c.py no longer emits trailing spaces in Python-ast.h. (#3568)

[issue31471] assertion failure in subprocess.Popen() in case the env arg has a bad keys() method

2017-09-14 Thread Oren Milman
Oren Milman added the comment: in 2.7 getenvironment() is in PC/_subprocess.c, and it also calls PyMapping_Values() immediately after calling PyMapping_Keys(). however, _PyObject_FastCallDict() doesn't exist here. in case of an error in both PyMapping_Keys() and PyMapping_Values(), the error in

[issue31462] Remove trailing whitespaces

2017-09-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 93d5f91fff5740b463980797a04f3d5f1d5f1a51 by Terry Jan Reedy in branch '3.6': [3.6] bpo-31462: IDLE - remove trailing whitespaces (GH-3564) (#3594) https://github.com/python/cpython/commit/93d5f91fff5740b463980797a04f3d5f1d5f1a51 --

[issue31464] Remove trailing spaces from Python-ast.h

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

[issue31478] assertion failure in random.seed() in case the seed argument has a bad __abs__() method

2017-09-14 Thread Oren Milman
Oren Milman added the comment: sure. but what about the TypeError message? should it complain about the return value of abs(seed)? (the docs of random.seed don't mention abs().) -- ___ Python tracker

Re: version of Python to install Windows 7 professional 64 bit, intel core i5

2017-09-14 Thread Abdur-Rahmaan Janhangeer
i'd recommend 3.4 or 3.6 python version is chosen more for python functionality rather than hardware type. Abdur-Rahmaan Janhangeer, Mauritius abdurrahmaanjanhangeer.wordpress.com On 12 Sep 2017 07:38, "Zubair Shaikh" wrote: > What version of Python to install Windows 7

[issue30096] Update examples in abc documentation to use abc.ABC

2017-09-14 Thread Vedran Čačić
Vedran Čačić added the comment: Well, actually, Raymond was proposing an alternative to Py2's special __metaclass__ attribute assignment syntax, which honestly _is_ an abomination (and the big part of reason why that was changed in Py3 to a keyword argument in a class definition). And Guido

[issue31338] Use abort() for code we never expect to hit

2017-09-14 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue31338] Use abort() for code we never expect to hit

2017-09-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset b2e5794870eb4728ddfaafc0f79a40299576434f by Barry Warsaw in branch 'master': bpo-31338 (#3374) https://github.com/python/cpython/commit/b2e5794870eb4728ddfaafc0f79a40299576434f -- ___ Python tracker

[issue31462] Remove trailing whitespaces

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

[issue31478] assertion failure in random.seed() in case the seed argument has a bad __abs__() method

2017-09-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: It would make sense to verify that an actual int was returned and to raise a TypeError if it wasn't. Do you want to submit a PR (with a test case)? -- nosy: +rhettinger, serhiy.storchaka ___ Python tracker

[issue31467] cElementTree behaves differently compared to ElementTree

2017-09-14 Thread Ravikumar
Ravikumar added the comment: Just now I have figured out that , in the documentation it was mentioned that cElementTree module is deprecated in Python 3.3 version. "The xml.etree.ElementTree module implements a simple and efficient API for parsing and creating XML data. Changed in version

[issue31455] ElementTree.XMLParser() mishandles exceptions

2017-09-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree. While these issues are not totally independent (they changes the same code), my issue needs uncommon use of __new__ and __init__, while your issue can be exposed in normal cases. -- ___ Python tracker

[issue31468] os.path.samefile fails on windows network drive

2017-09-14 Thread Daniel Sauer
New submission from Daniel Sauer: On my Windows network drive os.path.samefile() seems to return True regardless of input paths. In my case this results in an error trying to save checkpoints of jupyter notebooks on this drive. I am using Windows 7, my working directory is located on a network

[issue30780] IDLE: configdialog - add tests for ConfigDialog GUI.

2017-09-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: Sorry I don't have any tests yet. I've added a few, but it's taking me forever to figure out the bindings for testing the `Double-Button-1` and `B1-Motion`. I actually have a test for `Double-Button-1` now, but still working on `B1-Motion`. --

[issue11874] argparse assertion failure with brackets in metavars

2017-09-14 Thread wim glenn
Changes by wim glenn : -- versions: +Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue31478] assertion failure in random.seed() in case the seed argument has a bad __abs__() method

2017-09-14 Thread Oren Milman
New submission from Oren Milman: The following code causes an assertion failure: class BadInt(int): def __abs__(self): return None import random random.seed(BadInt()) this is because random_seed() (in Modules/_randommodule.c) assumes that PyNumber_Absolute() returned an int, and

[issue31234] Make support.threading_cleanup() stricter

2017-09-14 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +3577 ___ Python tracker ___ ___

[issue28556] typing.py upgrades

2017-09-14 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1658ec07577ef9696cea76fcf7fac2da18403ec5 by Łukasz Langa (Miss Islington (bot)) in branch '3.6': [3.6] bpo-28556: typing.get_type_hints: better globalns for classes and modules (GH-3582) (#3583)

Re: Change project licence?

2017-09-14 Thread Michael Torrie
On 09/14/2017 11:22 AM, Kryptxy via Python-list wrote: > Hi, > I have an opensource (python) project under GPL3 licence. I wish > switch to MIT licence so as to make it more permissive. I know how to > change the licence, but I want to know is it fine and wise to change > the licence at this

[issue31234] Make support.threading_cleanup() stricter

2017-09-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset ff40ecda73178dfcad24e26240d684356ef20793 by Victor Stinner in branch 'master': bpo-31234: Add test.support.wait_threads_exit() (#3578) https://github.com/python/cpython/commit/ff40ecda73178dfcad24e26240d684356ef20793 --

[issue31234] Make support.threading_cleanup() stricter

2017-09-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset b8c7be2c523b012e57915182543d06657161057f by Victor Stinner in branch 'master': bpo-31234: Join threads in test_threading (#3579) https://github.com/python/cpython/commit/b8c7be2c523b012e57915182543d06657161057f --

Re: Change project licence?

2017-09-14 Thread Chris Angelico
On Fri, Sep 15, 2017 at 6:04 AM, Michael Torrie wrote: > Finally, even if you are the sole copyright holder, while you can change > the license on your code at any time to any terms, you cannot change the > license on code that has already been forked under your original GPLv3

[issue31234] Make support.threading_cleanup() stricter

2017-09-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 167cbde50a88ec2a7d26b2cb9891d5e32bdfbfb5 by Victor Stinner in branch 'master': bpo-31234: Join threads in test_queue (#3586) https://github.com/python/cpython/commit/167cbde50a88ec2a7d26b2cb9891d5e32bdfbfb5 --

[issue31454] Include "import as" in documentation

2017-09-14 Thread Steve Johnson
Steve Johnson added the comment: In the 2.7 Tutorial, section 6, modules, where it describes the various syntax for using import. > On Sep 13, 2017, at 10:42 AM, R. David Murray wrote: > > > R. David Murray added the comment: > > Where do you find that it is not

[issue31452] asyncio.gather does not cancel tasks if one fails

2017-09-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: Yuri, it looks like a serious bug. I expected `success_coro(5)` cancelling but see print out. -- components: +Library (Lib) stage: -> needs patch versions: +Python 3.7 ___ Python tracker

[issue31474] [2.7] Fix -Wnonnull and -Wint-in-bool-context warnings

2017-09-14 Thread Christian Heimes
Changes by Christian Heimes : -- versions: +Python 2.7 -Python 3.3 ___ Python tracker ___

[issue31452] asyncio.gather does not cancel tasks if one fails

2017-09-14 Thread Yury Selivanov
Yury Selivanov added the comment: Andrew, looks like it. You can take a look if you want (I don't have time to work on this right now). -- ___ Python tracker

[issue31472] "Emulating callable objects" documentation misleading

2017-09-14 Thread Nathan Marrow
New submission from Nathan Marrow: The documentation for emulating callable objects with __call__ seems to imply only positional arguments are supported. For instance, it says __call__ is "object.__call__(self[, args…])" and describes: Called when the instance is “called” as a function; if

[issue31475] Bug in argparse - not supporting utf8

2017-09-14 Thread R. David Murray
R. David Murray added the comment: As I requested in the PR, please provide a way to reproduce the bug you are reporting. -- nosy: +r.david.murray ___ Python tracker

[issue31475] Bug in argparse - not supporting utf8

2017-09-14 Thread R. David Murray
R. David Murray added the comment: Note that as far as I know without a reproducer, it is confusing to me to talk about argparse supporting or not supporting utf8. It deals only with text strings, which are unicode. Or is this a 2.7 only bug report? (Although even there it would be a

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

2017-09-14 Thread ALPER PAKSOY
ALPER PAKSOY added the comment: Problem has been solved after installation of ActiveTcl 8.5.18.0 from ActiveState's web site as per Terry’s recommendations and, then, reinstallation of Python 3.6.2 package from python.org. However, there were many (mis)steps per my ignorance and laziness in

[issue30096] Update examples in abc documentation to use abc.ABC

2017-09-14 Thread Éric Araujo
Éric Araujo added the comment: > "Best practices" according to whom? Well at least two senior core developers :) See the rationale in #16049 when abc.ABC was first added (with Guido approving that inheritance is nicer for most people). -- ___

[issue31471] assertion failure in subprocess.Popen() in case the env arg has a bad keys() method

2017-09-14 Thread Oren Milman
Changes by Oren Milman : -- keywords: +patch pull_requests: +3570 stage: needs patch -> patch review ___ Python tracker ___

Re: Change project licence?

2017-09-14 Thread Chris Angelico
On Fri, Sep 15, 2017 at 3:22 AM, Kryptxy via Python-list wrote: > Hi, > I have an opensource (python) project under GPL3 licence. I wish switch to > MIT licence so as to make it more permissive. > I know how to change the licence, but I want to know is it fine and wise to

[issue28556] typing.py upgrades

2017-09-14 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3574 ___ Python tracker ___

[issue28556] typing.py upgrades

2017-09-14 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset f350a268a7071ce7d7a5bb86a9b1229782d4963b by Łukasz Langa in branch 'master': bpo-28556: typing.get_type_hints: better globalns for classes and modules (#3582) https://github.com/python/cpython/commit/f350a268a7071ce7d7a5bb86a9b1229782d4963b

[issue31454] Include "import as" in tutorial

2017-09-14 Thread Steve Johnson
Steve Johnson added the comment: I don't know what a PR is, so I'll let you guys handle it if it is OK with you. > On Sep 14, 2017, at 11:47 AM, R. David Murray wrote: > > > R. David Murray added the comment: > > I agree that it would seem reasonable to add this to

[issue31457] LoggerAdapter objects cannot be nested

2017-09-14 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 20fa05d0223101b8e0005525b94a2eac892348de by Łukasz Langa (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31457: Allow for nested LoggerAdapter objects (GH-3551) (#3576)

[issue31454] Include "import as" in tutorial

2017-09-14 Thread R. David Murray
R. David Murray added the comment: I agree that it would seem reasonable to add this to section 6.1 of the tutorial, since it mentions both import statement variants and the modules "global symbol table", which are the two concepts involved in import as. Would you like to propose a PR?

[issue31454] Include "import as" in tutorial

2017-09-14 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.6, Python 3.7 ___ Python tracker ___

Change project licence?

2017-09-14 Thread Kryptxy via Python-list
Hi, I have an opensource (python) project under GPL3 licence. I wish switch to MIT licence so as to make it more permissive. I know how to change the licence, but I want to know is it fine and wise to change the licence at this point? (The project already has 19 clones, 250+ GitHub stars. Here:

[issue28556] typing.py upgrades

2017-09-14 Thread Łukasz Langa
Changes by Łukasz Langa : -- pull_requests: +3573 ___ Python tracker ___ ___

[issue28411] Eliminate PyInterpreterState.modules.

2017-09-14 Thread Eric Snow
Eric Snow added the comment: New changeset d393c1b227f22fb9af66040b2b367c99a4d1fa9a by Eric Snow in branch 'master': bpo-28411: Isolate PyInterpreterState.modules (#3575) https://github.com/python/cpython/commit/d393c1b227f22fb9af66040b2b367c99a4d1fa9a --

[issue31454] Include "import as" in documentation

2017-09-14 Thread Steve Johnson
Steve Johnson added the comment: My suggestion was to include this in the 2.7 tutorial, section 6 (modules) where the various syntax is described for import. Most of us don't dig into the reference until we are trying to find something specific. The tutorial is an excellent place to introduce

  1   2   >