[issue33330] Better error handling in PyImport_Cleanup()

2018-05-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

Re: "Data blocks" syntax specification draft

2018-05-22 Thread Christian Gollwitzer
Am 23.05.18 um 07:22 schrieb Chris Angelico: On Wed, May 23, 2018 at 9:51 AM, bartc wrote: Sorry, but I don't think you're right at all. unless the official references for the language specifically say that commas are primarily for constructing tuples, and all other uses are

Re: how to handle captcha through machanize module or any module

2018-05-22 Thread SACHIN CHAVAN
On Wednesday, December 18, 2013 at 6:26:17 PM UTC+5:30, Jai wrote: > please do replay how to handle captcha through machanize module I have the same issue, nothing find a solution yet! -- https://mail.python.org/mailman/listinfo/python-list

[issue31493] IDLE cond context: fix code update and font update timers

2018-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch fixed immediate problem #2 above. #1 is a separate enhancement and I listed it as #4 on the new master issue #33610. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

Re: "Data blocks" syntax specification draft

2018-05-22 Thread Chris Angelico
On Wed, May 23, 2018 at 9:51 AM, bartc wrote: > On 22/05/2018 16:57, Chris Angelico wrote: >> >> On Wed, May 23, 2018 at 1:43 AM, Ian Kelly wrote: > > >>> In other words, the rule is not really as simple as "commas make >>> tuples". I stand by what I

[issue32831] IDLE: Add docstrings and tests for codecontext

2018-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you are following up with a new patch that includes code changes, make a new issue. In the opening message, please briefly list the mini-issues fixed so I can refer changes to purposes. Perhaps something like * getspacesfirstword -

[issue33441] Expose the sigset_t converter via private API

2018-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since posix_spawn() has been removed in 3.7, there is no need to backport this feature. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-05-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- dependencies: +IDLE cond context: fix code update and font update timers, IDLE: Add docstrings and tests for codecontext, Idle Code Context: separate changing current and future editors stage: test needed -> title: IDLE: Improve

[issue33537] Help on importlib.resources outputs the builtin open description

2018-05-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33475] Fix converting AST expression to string and optimize parenthesis

2018-05-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33610] IDLE: Improve CodeContext (various issues)

2018-05-22 Thread Terry J. Reedy
New submission from Terry J. Reedy : There are a number of possible improvements to CodeContext. They be separate issues (and PRs) that are dependencies of this master index issue. Some should be fairly easy now that we have the new tests. 1. #32831 added docstrings and

[issue33454] Mismatched C function signature in _xxsubinterpreters.channel_close()

2018-05-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.7 ___ Python tracker

[issue27300] tempfile.TemporaryFile(): missing errors=... argument

2018-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Stephan for your contribution! -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.8 -Python 3.6 ___ Python tracker

[issue27300] tempfile.TemporaryFile(): missing errors=... argument

2018-05-22 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : New changeset 825aab95fde959541859383f8ea7e7854ebfd49f by Serhiy Storchaka (sth) in branch 'master': bpo-27300: Add the errors parameter to tempfile classes. (GH-6696)

[issue27485] urllib.splitport -- is it official or not?

2018-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change made test_urlparse failing when ran with -We. Or just producing a lot of warnings in the default mode. == ERROR: test_splitattr

[issue13886] readline-related test_builtin failure

2018-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This old issue still is not fixed. Martin, Xavier, could you open a PR please? -- ___ Python tracker

[issue31529] IDLE: Add docstrings and tests for editor.py reload functions

2018-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is a reference to this issue in #31494, msg302628 (CodeContext loops). -- ___ Python tracker

Re: "Data blocks" syntax specification draft

2018-05-22 Thread Mikhail V
On Wed, May 23, 2018 at 2:25 AM, Dan Strohl wrote: > >> >> Explanation: >> [here i'll use same symbol /// for the data entry point, but of course it >> can be >> changed if a better idea comes later. Also for now, just for simplicity - >> the rule >> is that the contents of a

Re: "Data blocks" syntax specification draft

2018-05-22 Thread Mikhail V
On Tue, May 22, 2018 at 1:25 PM, bartc wrote: > On 22/05/2018 03:49, Mikhail V wrote: >> >> On Mon, May 21, 2018 at 3:48 PM, bartc wrote: >> >> # t >> # t >>11 22 33 >> > > Is this example complete? Presumably it means ((11,22,33),). Yep. > >>

[issue33565] strange tracemalloc results

2018-05-22 Thread INADA Naoki
INADA Naoki added the comment: I can't reproduce it: File "test1.py", line 19, in do_get_obj response = s3_client.get_object(Bucket='archpi.dabase.com', Key='style.css') File "/Users/inada-n/tmp/boto-leak/venv/lib/python3.6/site-packages/botocore/client.py",

Re: "Data blocks" syntax specification draft

2018-05-22 Thread bartc
On 22/05/2018 16:57, Chris Angelico wrote: On Wed, May 23, 2018 at 1:43 AM, Ian Kelly wrote: In other words, the rule is not really as simple as "commas make tuples". I stand by what I wrote. Neither of us is wrong here. Sorry, but I don't think you're right at

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2018-05-22 Thread miss-islington
miss-islington added the comment: New changeset 2751dccca4098b799ea575bb35cec9959c74684a by Miss Islington (bot) in branch '3.7': bpo-33604: Remove Pending from hmac Deprecation warning. (GH-7062)

RE: "Data blocks" syntax specification draft

2018-05-22 Thread Dan Strohl via Python-list
> -Original Message- > > I think it would be appropriate to propose an alternative to TQS for this > specific purposes. Namely for making it easier to implement parsers and > embedded syntaxes. > > So what do I have now with triple quoted strings - a simple example: > > if 1: > s =

[issue33355] Windows 10 buildbot: 15 min timeout on test_mmap.test_large_filesize()

2018-05-22 Thread David Bolen
David Bolen added the comment: I have migrated the win8 and win10 builders to a different machine type on Azure, which seems to have restored more reasonable performance for the tests, at least in the first set of builds. Assuming that continues to hold true, it should

Getting Unicode decode error using lxml.iterparse

2018-05-22 Thread digitig
I'm trying to read my iTunes library in Python using iterparse. My current stub is: Snip import sys import datetime import xml.etree.ElementTree as ET import argparse import re class Library: unmarshallers = { # collections "array": lambda x: [v.text for v in

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2018-05-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +6695 ___ Python tracker ___

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2018-05-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 8bb0b5b03cffa2a2e74f248ef479a9e7fbe95cf4 by Gregory P. Smith (Matthias Bussonnier) in branch 'master': bpo-33604: Remove Pending from hmac Deprecation warning. (GH-7062)

Re: "Data blocks" syntax specification draft

2018-05-22 Thread Mikhail V
On Tue, May 22, 2018 at 9:01 AM, Christian Gollwitzer wrote: > Am 22.05.18 um 04:17 schrieb Mikhail V: >>> YAML comes to mind >> >> >> Actually plugging a data syntax in existing language is not a new idea. >> Though I don't know real success stories. >> > > Thing is, you can do

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-05-22 Thread Chris Angelico
On Wed, May 23, 2018 at 8:31 AM, Peter J. Holzer wrote: > On 2018-05-23 07:38:27 +1000, Chris Angelico wrote: >> On Wed, May 23, 2018 at 7:23 AM, Peter J. Holzer wrote: >> >> The best you can do is to go ask the canonical source of the >> >> file what

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-05-22 Thread Peter J. Holzer
On 2018-05-23 07:38:27 +1000, Chris Angelico wrote: > On Wed, May 23, 2018 at 7:23 AM, Peter J. Holzer wrote: > >> The best you can do is to go ask the canonical source of the > >> file what encoding the file is _supposed_ to be in. > > > > I disagree on both counts. > > > > 1)

Re: Spam levels.

2018-05-22 Thread Grant Edwards
On 2018-05-22, Peter J. Holzer wrote: > I didn't read on Gmane. I read on my usenet server. But the broken > messages were all coming from Gmane. It is possible that the breakage > only occurs when Gmane passes the message to other Usenet servers, > although I have no idea how

Re: Spam levels.

2018-05-22 Thread Peter J. Holzer
On 2018-05-22 20:42:43 +, Grant Edwards wrote: > On 2018-05-22, Peter J. Holzer wrote: > > On 2018-05-21 15:42:28 +, Grant Edwards wrote: > >> I switched from Usenet to Gmane mainly because references headers are > >> bit more consistent on Gmane, so threading works

Tkinter and root vs. Wayland

2018-05-22 Thread Grant Edwards
For a couple decades now, I've been distributing a couple smallish Tkinter applications that need to run as root for a variety of reasons (raw Ethernet access, starting/stopping daemons, loading and unloading kernel modules, reading and writing config files that are owned by root). As part of

[issue33570] OpenSSL 1.1.1 / TLS 1.3 cipher suite changes

2018-05-22 Thread miss-islington
miss-islington added the comment: New changeset cd57b48ef9a70b7ef693ba52aaf38d7c945ab5d3 by Miss Islington (bot) in branch '3.7': bpo-33570: TLS 1.3 ciphers for OpenSSL 1.1.1 (GH-6976)

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-05-22 Thread Chris Angelico
On Wed, May 23, 2018 at 7:23 AM, Peter J. Holzer wrote: >> The best you can do is to go ask the canonical source of the >> file what encoding the file is _supposed_ to be in. > > I disagree on both counts. > > 1) For any given file it is almost always possible to find the

Re: Target WSGI script cannot be loaded as Python module.

2018-05-22 Thread Νίκος
Τη Τρίτη, 22 Μαΐου 2018 - 10:55:54 μ.μ. UTC+3, ο χρήστης Alexandre Brault > > Any ideas as to why iam getting the above error although i have python36 > > isntalled along with all modules? why can it find it? > How did you install geoip2? Was it by any chance in a virtual > environment? If it

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-05-22 Thread Peter J. Holzer
On 2018-05-20 15:43:54 +0200, Karsten Hilbert wrote: > On Sun, May 20, 2018 at 04:59:12AM -0700, bellcanada...@gmail.com wrote: > > > On Saturday, 19 May 2018 19:48:20 UTC-4, Skip Montanaro wrote: > > > As Chris indicated, you'll have to figure out the correct encoding. You > > > might want to

[issue33609] Document that dicts preserve insertion order

2018-05-22 Thread Yury Selivanov
New submission from Yury Selivanov : I don't see it documented that dicts preserve insertion order. 3.7 what's new points to [1], but that section doesn't have a "version changed" tag. IMO, [1] should have two version changed tags: one for 3.6, and one for 3.7. Also, it

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2018-05-22 Thread STINNER Victor
Change by STINNER Victor : -- title: Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed. -> [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

[issue33607] [subinterpreters] Explicitly track object ownership (and allocator).

2018-05-22 Thread STINNER Victor
Change by STINNER Victor : -- title: Explicitly track object ownership (and allocator). -> [subinterpreters] Explicitly track object ownership (and allocator). ___ Python tracker

Re: what does := means simply?

2018-05-22 Thread Peter J. Holzer
On 2018-05-20 16:36:12 -0400, Richard Damon wrote: > 2) Try to maximize portability by not only looking at the specs, but > also common implementations, and choosing the options that maximize the > acceptability of your output to tools that don't fully meet the specs. > Also, if a common

[issue33570] OpenSSL 1.1.1 / TLS 1.3 cipher suite changes

2018-05-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +6694 ___ Python tracker ___

[issue33570] OpenSSL 1.1.1 / TLS 1.3 cipher suite changes

2018-05-22 Thread Christian Heimes
Christian Heimes added the comment: New changeset e8eb6cb7920ded66abc5d284319a8539bdc2bae3 by Christian Heimes in branch 'master': bpo-33570: TLS 1.3 ciphers for OpenSSL 1.1.1 (GH-6976) https://github.com/python/cpython/commit/e8eb6cb7920ded66abc5d284319a8539bdc2bae3

Re: Spam levels.

2018-05-22 Thread Grant Edwards
On 2018-05-22, Peter J. Holzer wrote: > On 2018-05-21 15:42:28 +, Grant Edwards wrote: >> I switched from Usenet to Gmane mainly because references headers are >> bit more consistent on Gmane, so threading works somewhat better. > > This is interesting, because Gmane was

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2018-05-22 Thread pmpp
Change by pmpp : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2018-05-22 Thread STINNER Victor
STINNER Victor added the comment: "That is relatively straight-forward except in one case: indicating that the other interpreter doesn't need the object to exist any more (similar to PyBuffer_Release() but more general)" Why an interpreter would access an object from a

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2018-05-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +christian.heimes, gregory.p.smith ___ Python tracker ___

[issue33569] dataclasses InitVar does not maintain any type info

2018-05-22 Thread Eric V. Smith
Eric V. Smith added the comment: This seems like a reasonable request. -- nosy: +eric.smith ___ Python tracker ___

[issue33562] Check that the global settings for asyncio are not changed by tests

2018-05-22 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2018-05-22 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: I've sent two PRs, one that updates the deprecation from PendingDeprecationWarning to DeprecationWarning that likely should get applied to 3.6, and 3.7 ? And a PR to actually remove the default in 3.8. --

[issue32400] inspect.isdatadescriptor false negative

2018-05-22 Thread Aaron Hall
Change by Aaron Hall : -- nosy: +Aaron Hall ___ Python tracker ___ ___

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2018-05-22 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +6693 ___ Python tracker ___

[issue33565] strange tracemalloc results

2018-05-22 Thread Alexander Mohr
Alexander Mohr added the comment: yes, memory does go up. If you click the botocore bug link you'll see a graph of memory usage over time. -- ___ Python tracker

[issue33605] Detect accessing event loop from a different thread outside of _debug

2018-05-22 Thread Yury Selivanov
Yury Selivanov added the comment: > I suggest that asyncio should be stricter about this error and that methods > and functions that operate on the event loop, such as call_soon, call_later, > create_task, ensure_future, and close, should all call _check_thread() even >

[issue33607] Explicitly track object ownership (and allocator).

2018-05-22 Thread STINNER Victor
STINNER Victor added the comment: "Either we'd add 2 pointer-size fields to PyObject or we would keep a separate hash table (or two) pointing from each object to the info (...)" The expect a huge impact on the memory footprint. I dislike the idea. Currently, the smallest

Re: what does := means simply?

2018-05-22 Thread Peter J. Holzer
On 2018-05-20 11:37:14 -0400, Dennis Lee Bieber wrote: > On Sun, 20 May 2018 12:38:59 +0100, bartc declaimed the > following: > >Then the /same software/ probably wouldn't work anywhere else. I mean > >taking source which doesn't know or care about what system its on, and >

[issue33565] strange tracemalloc results

2018-05-22 Thread STINNER Victor
STINNER Victor added the comment: > this means 21 blocks were not released, and in this case leaked because > nothing should be held onto after the first iteration (creating the initial > connector in the connection pool. In the head object case that's going to be > a

Re: Spam levels.

2018-05-22 Thread Peter J. Holzer
On 2018-05-21 15:42:28 +, Grant Edwards wrote: > I switched from Usenet to Gmane mainly because references headers are > bit more consistent on Gmane, so threading works somewhat better. This is interesting, because Gmane was the reason I switched from reading on usenet to reading the

[issue33516] unittest.mock: Add __round__ to supported magicmock methods

2018-05-22 Thread STINNER Victor
STINNER Victor added the comment: Thank you Martijn Pieters for the feature request/bug report, and thanks John Reese for the implementation! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue33516] unittest.mock: Add __round__ to supported magicmock methods

2018-05-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6c4fab0f4b95410a1a964a75dcdd953697eff089 by Victor Stinner (John Reese) in branch 'master': bpo-33516: Add support for __round__ in MagicMock (GH-6880)

Re: Target WSGI script cannot be loaded as Python module.

2018-05-22 Thread Alexandre Brault
On 2018-05-22 02:29 PM, Νίκος wrote: > Hello all, > > Iam tryign to run a bootle script iw rote as wsgi app and iam gettign the > follwing eroor. > > === > [Tue May 22 06:49:45.763808 2018] [:error] [pid 24298] [client >

[issue23188] Provide a C helper function to chain raised (but not yet caught) exceptions

2018-05-22 Thread Eric Snow
Eric Snow added the comment: good point :) -- ___ Python tracker ___ ___

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2018-05-22 Thread Eric Snow
Eric Snow added the comment: As a lesser (IMHO) alternative, we could also modify Py_DECREF to respect a new "shared" marker of some sort (perhaps relative to #33607), but that would probably still require one of the refcount-based solutions (and add a branch to

Target WSGI script cannot be loaded as Python module.

2018-05-22 Thread Νίκος
Hello all, Iam tryign to run a bootle script iw rote as wsgi app and iam gettign the follwing eroor. === [Tue May 22 06:49:45.763808 2018] [:error] [pid 24298] [client 46.103.59.37:14500] mod_wsgi (pid=24298): Target WSGI script

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2018-05-22 Thread Eric Snow
New submission from Eric Snow : In order to keep subinterpreters properly isolated, objects from one interpreter should not be used in C-API calls in another interpreter. That is relatively straight-forward except in one case: indicating that the other interpreter

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please ignore the last paragraph. It was my mistake, all add_subparsers() parameters are keyword-only, and _SubParsersAction is a privale class. -- ___ Python tracker

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-05-22 Thread Anthony Sottile
Anthony Sottile added the comment: The bug is orthogonal, you can trigger it without the `required=` keyword argument via the (currently suggested) monkeypatch workaround which restores the pre-3.3 behaviour: import argparse parser = argparse.ArgumentParser() subp =

[issue33607] Explicitly track object ownership (and allocator).

2018-05-22 Thread Eric Snow
New submission from Eric Snow : When an object is created it happens relative to the current thread (ergo interpreter) and the current allocator (part of global state). We do not track either of these details for the object. It may make sense to start doing so

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wouldn't be better to first fix this bug, and only after that add the 'required' parameter? Adding it introduced yet one bug: when pass arguments as positional, the 'help' argument will be swallowed. You can add new parameters

[issue33606] Improve logging performance when logger disabled

2018-05-22 Thread Vinay Sajip
New submission from Vinay Sajip : If a logger is disabled (by setting it's disabled attribute to True), the check for this is done late in the dispatch of the logging event - during the handle() call - rather than isEnabledFor(), which would short-circuit some

[issue33603] Subprocess Thread handles grow with each call and aren't released [Windows]

2018-05-22 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: Subprocess Thread handles grow with each call and aren't released until script ends -> Subprocess Thread handles grow with each call and aren't released [Windows] ___ Python tracker

[issue33593] Support heapq on typed arrays?

2018-05-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: As noted by Serhiy, the interaction with the Array type would incur significant overhead. Your fastest approach will be to follow his suggest to first convert to a list and then perform heap manipulations. Marking this as

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-05-22 Thread Anthony Sottile
Anthony Sottile added the comment: That's a separate issue (also a bug introduced by the bad 3.3 patch): https://bugs.python.org/issue29298 I have an open PR to fix it as well but it has not seen review action: https://github.com/python/cpython/pull/3680 --

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I tried to use add_subparsers() with required=True and have found it not usable. import argparse parser = argparse.ArgumentParser(prog='PROG') subparsers = parser.add_subparsers(required=True) parser_a =

[issue33605] Detect accessing event loop from a different thread outside of _debug

2018-05-22 Thread Hrvoje Nikšić
New submission from Hrvoje Nikšić : Looking at StackOverflow's python-asyncio tag[1], it appears that it's a very common mistake for users to invoke asyncio functions or methods from a thread other than the event loop thread. In some cases this happens because the user is

[issue33603] Subprocess Thread handles grow with each call and aren't released until script ends

2018-05-22 Thread Eryk Sun
Eryk Sun added the comment: The 2nd example with subprocess.run() creates two threads in the Python process, since you're redirecting both stdout and stderr to pipes and run() calls communicate(). The first example with subprocess.Popen() shouldn't create any threads. In

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2018-05-22 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +6692 stage: -> patch review ___ Python tracker ___

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2018-05-22 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : HMAC docs says digestmod=md5 default will be removed in 3.6, but was not. We should likely bumpt that to 3.8 in the documentation, and actually remove it in 3.8 -- messages: 317322 nosy: mbussonn priority: normal

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-05-22 Thread Anthony Sottile
Anthony Sottile added the comment: Is there then no pathway for actually fixing the bug? aka how can I get `required=True` to be the default. -- ___ Python tracker

[issue33531] test_asyncio: test_subprocess test_stdin_broken_pipe() failure on Travis CI

2018-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch seems to have worked. The last AppVeyor failure was a day ago, when testing the 3.7 backport of the fix. https://ci.appveyor.com/project/python/cpython/history -- ___ Python tracker

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-05-22 Thread Ned Deily
Ned Deily added the comment: > Considering the huge popularity of these SO questions, I don't think this > should be reverted [...] As I understand it (and, again, I make no claim to be an argparse expert), there does not seem to be one absolutely correct answer here; there

[issue30940] Documentation for round() is incorrect.

2018-05-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33603] Subprocess Thread handles grow with each call and aren't released until script ends

2018-05-22 Thread GranPrego
GranPrego added the comment: Process explorer is showing the handles as belonging to the python executable. I can see the cmd process start,then the executable which terminates cleanly. I can see thread handles appearing under the python process, with some

[issue33593] Support heapq on typed arrays?

2018-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Workaround: alist = list(a) heapq.heapify(alist) a[:] = alist And it should be not much slower than using heapq.heapify() directly if it could support general sequences. Using it with array.array would add significant overhead

Re: "Data blocks" syntax specification draft

2018-05-22 Thread Chris Angelico
On Wed, May 23, 2018 at 3:51 AM, bartc wrote: > On 22/05/2018 15:25, Chris Angelico wrote: >> >> On Tue, May 22, 2018 at 8:25 PM, bartc wrote: >>> >>> Note that Python tuples don't always need a start symbol: >>> >>> a = 10,20,30 >>> >>> assigns a tuple to

[issue33603] Subprocess Thread handles grow with each call and aren't released until script ends

2018-05-22 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +giampaolo.rodola, gregory.p.smith ___ Python tracker ___

Re: "Data blocks" syntax specification draft

2018-05-22 Thread bartc
On 22/05/2018 15:25, Chris Angelico wrote: On Tue, May 22, 2018 at 8:25 PM, bartc wrote: Note that Python tuples don't always need a start symbol: a = 10,20,30 assigns a tuple to a. The tuple has nothing to do with the parentheses, except for the special case of the

[issue33592] Document contextvars C API

2018-05-22 Thread miss-islington
miss-islington added the comment: New changeset afec2d583a06849c5080c6cd40266743c8e04b3e by Miss Islington (bot) in branch '3.7': bpo-33592: Document the C API in PEP 567 (contextvars) (GH-7033)

[issue33593] Support heapq on typed arrays?

2018-05-22 Thread Diego Argueta
Diego Argueta added the comment: However I do see your point about the speed. -- ___ Python tracker ___

[issue23188] Provide a C helper function to chain raised (but not yet caught) exceptions

2018-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is usually more complex code between PyErr_Fetch() and _PyErr_ChainExceptions(): PyObject *exc, *val, *tb, *close_result; PyErr_Fetch(, , ); close_result = _PyObject_CallMethodId(result, _close,

[issue33597] Compact PyGC_Head

2018-05-22 Thread Yury Selivanov
Yury Selivanov added the comment: This is such a great idea. +1 from me. -- nosy: +yselivanov ___ Python tracker ___

[issue33603] Subprocess Thread handles grow with each call and aren't released until script ends

2018-05-22 Thread Eryk Sun
Eryk Sun added the comment: The thread handle that CreateProcess returns gets immediately closed in Popen._execute_child, so I can't see how this is due to subprocess. Please check to make sure these thread handles aren't for threads in your own process. Set the lower pane

[issue33593] Support heapq on typed arrays?

2018-05-22 Thread Diego Argueta
Diego Argueta added the comment: I was referring to the C arrays in the Python standard library: https://docs.python.org/3/library/array.html -- ___ Python tracker

[issue33592] Document contextvars C API

2018-05-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +6691 ___ Python tracker ___

[issue33592] Document contextvars C API

2018-05-22 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset b2f5f59ae15564b991f3ca4850e6ad28d9faacbc by Yury Selivanov (Elvis Pranskevichus) in branch 'master': bpo-33592: Document the C API in PEP 567 (contextvars) (GH-7033)

[issue33565] strange tracemalloc results

2018-05-22 Thread Alexander Mohr
Alexander Mohr added the comment: that's not going to affect http://pytracemalloc.readthedocs.io/api.html#get_traced_memory. There is no filter for that :) as to your sum that's exactly what my original callstack lists: 21 memory blocks: 4.7 KiB this means 21 blocks

[issue33565] strange tracemalloc results

2018-05-22 Thread STINNER Victor
STINNER Victor added the comment: Oh. Usually, I strip traces allocated by tracemalloc using filters: http://pytracemalloc.readthedocs.io/examples.html#pretty-top snapshot = snapshot.filter_traces(( tracemalloc.Filter(False, ""),

[issue23188] Provide a C helper function to chain raised (but not yet caught) exceptions

2018-05-22 Thread Eric Snow
Eric Snow added the comment: FTR, see PEP 490 ("Chain exceptions at C level") which proposed implicitly chaining exceptions in the PyErr_* API. While that PEP was rejected (not all exceptions should be chained), it does make a good point about the clunkiness of

[issue33597] Compact PyGC_Head

2018-05-22 Thread INADA Naoki
INADA Naoki added the comment: In Doc folder: make clean make PYTHON=../python venv /usr/bin/time make html master: 113.15user 0.41system 1:55.46elapsed 98%CPU (0avgtext+0avgdata 205472maxresident)k 18800inputs+223544outputs (1major+66066minor)pagefaults

[issue33565] strange tracemalloc results

2018-05-22 Thread Alexander Mohr
Alexander Mohr added the comment: I believe your method is flawed, when enabling tracemalloc it's going to be using memory as well to store the traces. I still believe you need to use the method I mentioned and further even if we don't take into account the total memory

  1   2   >