[issue28115] Use argparse for the zipfile module

2017-03-31 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Opened issue29958 for the latter patch.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29958] Use add_mutually_exclusive_group(required=True) in zipfile and tarfile CLI

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1126

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29949] sizeof set after set_merge() is doubled from 3.5

2017-03-31 Thread INADA Naoki

Changes by INADA Naoki :


--
pull_requests: +1125

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29958] Use add_mutually_exclusive_group(required=True) in zipfile and tarfile CLI

2017-03-31 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

In the comment to the patch on issue28115 SilentGhost suggested to pass 
required=True to add_mutually_exclusive_group(). This makes the last "else" not 
needed.

Proposed patch implements this idea for zipfile and tarfile. It also improves 
error handling when pass empty tar archive name, and adds a hyphen in 
"command-line".

--
assignee: serhiy.storchaka
components: Demos and Tools
messages: 290966
nosy: SilentGhost, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Use add_mutually_exclusive_group(required=True) in zipfile and tarfile 
CLI
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29763] test_site failing on AppVeyor

2017-03-31 Thread Zachary Ware

Zachary Ware added the comment:


New changeset cd815edf012dc6dd20dfeef91951270e96607616 by Zachary Ware in 
branch 'master':
Revert "bpo-29763: Use unittest cleanup in test_site (GH-841)" (GH-942)
https://github.com/python/cpython/commit/cd815edf012dc6dd20dfeef91951270e96607616


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27867] various issues due to misuse of PySlice_GetIndicesEx

2017-03-31 Thread Martin Panter

Changes by Martin Panter :


--
nosy:  -martin.panter

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28556] typing.py upgrades

2017-03-31 Thread Martin Panter

Changes by Martin Panter :


--
nosy:  -martin.panter

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2017-03-31 Thread Martin Panter

Changes by Martin Panter :


--
nosy:  -martin.panter

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29931] ipaddress.ip_interface __lt__ check seems to be broken

2017-03-31 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 7bd8d3e794782582a4ad1c9749424fff86802c3e by Serhiy Storchaka 
(s-sanjay) in branch 'master':
bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (#879)
https://github.com/python/cpython/commit/7bd8d3e794782582a4ad1c9749424fff86802c3e


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29957] unnecessary LBYL for key contained in defaultdict, lib2to3/btm_matcher

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +benjamin.peterson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29571] test_re is failing when local is set for `en_IN`

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -1096

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28115] Use argparse for the zipfile module

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -1102

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23903] Generate PC/python3.def by scraping headers

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -1091

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -1060

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19569] Use __attribute__((deprecated)) to warn usage of deprecated functions and macros

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -1085

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28087] macOS 12 poll syscall returns prematurely

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -1036

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27867] various issues due to misuse of PySlice_GetIndicesEx

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -1038

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29572] Upgrade installers to OpenSSL 1.0.2k

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -1053

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29416] Path.mkdir can get into a recursive error loop

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -984

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27593] Deprecate sys._mercurial and create sys._git

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -971

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28556] typing.py upgrades

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -1037

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26906] Special method lookup fails on uninitialized types

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -967

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27172] Undeprecate inspect.getfullargspec()

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -923

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29335] subprocess module does not check WIFSTOPPED on SIGCHLD

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -916

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20211] setup.py: do not add system header locations when cross compiling

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -867

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27906] Socket accept exhaustion during high TCP traffic

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -933

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23262] webbrowser module broken with Firefox 36+

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests:  -903

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29763] test_site failing on AppVeyor

2017-03-31 Thread Zachary Ware

Changes by Zachary Ware :


--
pull_requests: +1124

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29947] In SocketServer, why not passing a factory instance for the RequestHandlerClass instead of the class itself?

2017-03-31 Thread Dominic Mayers

Dominic Mayers added the comment:

I am a bit ashamed that I missed that. Still, the intent in the current code, 
the name of the parameter, the examples, etc. is that we pass the handler 
class. This is more than its __init__ function and less than a generic factory  
method. An important difference, which could become important, is that with a 
factory the handler type could depend on the request.  As pointed out by Eric, 
passing the class was perhaps the intent in the early days. Now, perhaps many 
use it differently and pass a factory method, not a class, but it still appears 
as a hack that does not respect the intent. One could legitimately worry that 
this hack will not be supported in future versions, because it is not 
documented.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29763] test_site failing on AppVeyor

2017-03-31 Thread Zachary Ware

Changes by Zachary Ware :


--
pull_requests: +1123

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29957] unnecessary LBYL for key contained in defaultdict, lib2to3/btm_matcher

2017-03-31 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
stage:  -> patch review
versions: +Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29957] unnecessary LBYL for key contained in defaultdict, lib2to3/btm_matcher

2017-03-31 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

Thanks for the PR Michael :)

It may take one US business day for the CLA to be received.
Then a core dev has to manually update the label in GitHub.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29763] test_site failing on AppVeyor

2017-03-31 Thread Zachary Ware

Zachary Ware added the comment:


New changeset b94d7fd4efa877d649cea9c8125c8869ffe0c32d by Zachary Ware in 
branch 'master':
bpo-29763: Use unittest cleanup in test_site (GH-841)
https://github.com/python/cpython/commit/b94d7fd4efa877d649cea9c8125c8869ffe0c32d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29957] unnecessary LBYL for key contained in defaultdict, lib2to3/btm_matcher

2017-03-31 Thread Michael Selik

Michael Selik added the comment:

PR submitted. I also signed the contributor agreement, but the bot doesn't seem 
to have noticed.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29957] unnecessary LBYL for key contained in defaultdict, lib2to3/btm_matcher

2017-03-31 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +1121

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29955] logging decimal point should come from locale

2017-03-31 Thread Xiang Zhang

Xiang Zhang added the comment:

Although I prefer period but such a change could break backwards compatibility 
so I don't know it's worth or not. Codes like `datetime.strptime('1993-04-21 
08:03:00,123', '%Y-%m-%d %H:%M:%S,%f')` (usually for such a simple parse goal I 
like to use the builtin datetime library) would break with this change and 
IIUC, the datetime format could be customized for logging.

--
nosy: +xiang.zhang

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23033] Disallow support for a*.example.net, *a.example.net, and a*b.example.net in certificate wildcard handling.

2017-03-31 Thread Mandeep Singh

Changes by Mandeep Singh :


--
pull_requests: +1120

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29957] unnecessary LBYL for key contained in defaultdict, lib2to3/btm_matcher

2017-03-31 Thread Michael Selik

Michael Selik added the comment:

I'll submit a pull request momentarily.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29957] unnecessary LBYL for key contained in defaultdict, lib2to3/btm_matcher

2017-03-31 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Nice catch.  You've got sharp eyes.

Do you want to submit a pull request or have another dev work on it?

--
nosy: +Mariatta, rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29957] unnecessary LBYL for key contained in defaultdict, lib2to3/btm_matcher

2017-03-31 Thread Michael Selik

New submission from Michael Selik:

Minor, but it looks like someone decided to use a defaultdict but forgot to 
remove the checks for whether a key exists.

Creating a defaultdict(list):
https://github.com/python/cpython/blob/6f0eb93183519024cb360162bdd81b9faec97ba6/Lib/lib2to3/btm_matcher.py#L100

Checking for the key, then initializing an empty list:
https://github.com/python/cpython/blob/6f0eb93183519024cb360162bdd81b9faec97ba6/Lib/lib2to3/btm_matcher.py#L120

Again:
https://github.com/python/cpython/blob/6f0eb93183519024cb360162bdd81b9faec97ba6/Lib/lib2to3/btm_matcher.py#L137

Because the ``results`` is getting returned, perhaps it'd be better to use a 
regular dict and dict.setdefault instead of a defaultdict.

--
components: 2to3 (2.x to 3.x conversion tool)
messages: 290955
nosy: selik
priority: normal
severity: normal
status: open
title: unnecessary LBYL for key contained in defaultdict, lib2to3/btm_matcher

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29955] logging decimal point should come from locale

2017-03-31 Thread Raymond Hettinger

Raymond Hettinger added the comment:

+1 for changing this to a period.  Every time I see the comma, it seems odd to 
me.  It also is harder to parse back into a regular float.  In addition, it is 
hazard when people use commas and delimiters between the fields in a log file.

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28629] Emit ResourceWarning when implicitly terminating a suspended frame?

2017-03-31 Thread Nathaniel Smith

Nathaniel Smith added the comment:

It does make sense to skip emitting a warning if there's no try or with block 
active.

Don't we already have the ability to check for this, though, without any 
extensions to the frame or code objects? That's what the public 
PyGen_NeedsFinalizing does, right? It's implemented as a for loop over the 
frame's block stack, which in most cases should be extremely small, so the 
performance cost of running this from generator.__del__ seems likely to be 
minimal.

(I think currently the implementation is not *quite* correct if there's a 
'yield from' active – in most cases it won't much matter because if A is 
yielding from B and A is collected, then B will probably be collected a moment 
later and have its own __del__ called. But this is not *quite* the same as what 
should happen, which is that collecting A should immediately call B.close(), 
which in principle might do something arbitrarily different than B.__del__. But 
adding a check for whether a 'yield from' is active would be pretty trivial.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29947] In SocketServer, why not passing a factory instance for the RequestHandlerClass instead of the class itself?

2017-03-31 Thread R. David Murray

R. David Murray added the comment:

I think I'm missing something here.  What prevents one from passing a factory 
function as the RequestHandlerClass argument?  In Python, a class name *is* a 
factory function for class instances.

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29954] multiprocessing.Pool.__exit__() calls terminate() instead of close()

2017-03-31 Thread Josh Rosenberg

Josh Rosenberg added the comment:

I suspect it's far too late to change this, given compatibility constraints. If 
you want it to close instead of terminate, contextlib.closing is always an 
option.

--
nosy: +josh.r

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29952] "keys and values" preferred to "keys and elements" for dict constituent

2017-03-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
title: "keys and values" is preferred to "keys and elements" for name of dict 
constituent -> "keys and values" preferred to "keys and elements" for dict 
constituent

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29944] Argumentless super() fails in classes constructed with type()

2017-03-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
title: Argumentless super() calls do not work in classes constructed with 
type() -> Argumentless super() fails in classes constructed with type()

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28596] on Android _bootlocale on startup relies on too many library modules

2017-03-31 Thread admin

Changes by admin :


--
pull_requests:  -1113

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28596] on Android _bootlocale on startup relies on too many library modules

2017-03-31 Thread Ezio Melotti

Changes by Ezio Melotti :


--
pull_requests: +1113

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28157] Document time module constants (timezone, tzname, etc.) as deprecated.

2017-03-31 Thread STINNER Victor

STINNER Victor added the comment:

IMHO it's worth it to have a dedicated section for CLOCK_xxx constants. It 
would allow to mention which functions use them.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28596] on Android _bootlocale on startup relies on too many library modules

2017-03-31 Thread Ezio Melotti

Changes by Ezio Melotti :


--
pull_requests:  -1113

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29595] Expose max_queue_size in ThreadPoolExecutor

2017-03-31 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Prayslayer, please don't shove.  Your PR request was responded to by Mariatta 
so it wasn't ignored.  

Making decisions about API expansions takes a while (making sure it fits the 
intended use, that it isn't a bug factory itself, that it is broadly useful, 
that it is the best solution to the problem, that is doesn't complicate the 
implementation or limit future opportunities, that there are unforeseen 
problems).   Among the core developers, there are only a couple part-time 
contributors who are qualified to make these assessments for the 
multi-processing module (those devs don't include me).

--
assignee:  -> davin
nosy: +davin, pitrou, rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29949] sizeof set after set_merge() is doubled from 3.5

2017-03-31 Thread Cameron Simpson

Changes by Cameron Simpson :


--
nosy: +cameron

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28596] on Android _bootlocale on startup relies on too many library modules

2017-03-31 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29956] math.exp documentation is misleading

2017-03-31 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I suggest changing the main docs to match the existing docstring, "Return e 
raised to the power of x."  

The exp() function is a thin wrapper around the C math library and where it is 
documented as "compute e (the base of natural logarithms) raised to the power 
x" or "e raised to the power X (where e is the base of the natural system of 
logarithms, approximately 2.71828)."  Our docs shouldn't make more or fewer 
promises than the upstream libraries are making.

Perhaps there can be a general note about reading too much into the math module 
implementation details.  We expect some relationships to only be approximate: 
log(x)+1≈log1p(x), log2(x)≈log(x,2.0), exp(lgamma(x))≈gamma(x), sqrt(x)≈x**0.5, 
etc.  These are floating point math library "facts of life".

* 
http://www.slac.stanford.edu/comp/unix/package/rtems/doc/html/libm/libm.info.exp.html

* 
https://www.gnu.org/software/libc/manual/html_node/Exponents-and-Logarithms.html

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28157] Document time module constants (timezone, tzname, etc.) as deprecated.

2017-03-31 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

A question for Victor: Should we split the "Constants" section into "Clock ID 
constants" and "Timezone constants"? (See PR 928.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28157] Document time module constants (timezone, tzname, etc.) as deprecated.

2017-03-31 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

The time and math modules are probably the oldest Python modules, but math have 
seen more development recently, so it should serve as a good model for how 
things should be organized.  Yes, I believe re-listing module functions and 
constants in the module docstring is redundant and error-prone.

--
nosy: +haypo, mark.dickinson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25464] Tix HList header_exists should be "exist"

2017-03-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests:  -833

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28157] Document time module constants (timezone, tzname, etc.) as deprecated.

2017-03-31 Thread Cheryl Sabella

Cheryl Sabella added the comment:

We were discussing changing the docstring on the pull request and I had 
additional questions, so I am moving them here for discussion:

I've been looking at pydoc math and pydoc time (and the the module.c source).

Before I go down the wrong path, I'm not sure I fully understand your comment - 
"(Also, markup can be improved in the time module docstring. Compare pydoc time 
and pydoc math.)" The time one is more vebose in the description and it lists 
the Variables and Functions in the text and then defines them with markup 
further down. Are you saying the variables and functions should be removed from 
being written in text within the description?

Thanks.

--
nosy: +csabella

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29595] Expose max_queue_size in ThreadPoolExecutor

2017-03-31 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29955] logging decimal point should come from locale

2017-03-31 Thread Skip Montanaro

Skip Montanaro added the comment:

One example demonstrating that the datetime module at least prefers a decimal 
point:

>>> import dateutil.parser
>>> t = '1993-04-21 08:03:00,123'
>>> dateutil.parser.parse(t)
datetime.datetime(1993, 4, 21, 8, 3, 0, 123000)
>>> dateutil.parser.parse(t).isoformat()
'1993-04-21T08:03:00.123000'

Looking at datetime.py, it appears the dot is hard-coded there. Maybe there 
would be value in the right hand (logging) and the left hand (datetime) doing 
things the same way?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29725] sqlite3.Cursor doesn't properly document "arraysize"

2017-03-31 Thread Berker Peksag

Berker Peksag added the comment:

> There is another attribute called row_factory in the cursor structure
> that isn't in the docs.  There is a row_factory defined in the docs,
> but that one is for the connection structure.  Should it be added under
> cursor as well?

Thank you for working on this issue, Cheryl. Cursor.row_factory is there for 
backwards compatibility reasons so we can't remove it until we retire Python 2.

For example, pysqlite has already been removed it in version 2.8.0 [1] but they 
don't have a strict backwards compatibility policy since their user base is 
much smaller than us and it only supports Python 2.

[1] 
https://github.com/ghaering/pysqlite/commit/10dbbe4cca7487a3c65776186b3fb4ceeab5e8fa

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29955] logging decimal point should come from locale

2017-03-31 Thread Skip Montanaro

Skip Montanaro added the comment:

It's Vinay's code, so what he wants should carry the most weight. I did this as 
much as an exercise in figuring out the whole pull request/bug report process 
as anything.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29941] Confusion between asserts and Py_DEBUG

2017-03-31 Thread Thomas Wouters

Changes by Thomas Wouters :


--
pull_requests: +1119

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29941] Confusion between asserts and Py_DEBUG

2017-03-31 Thread Thomas Wouters

Changes by Thomas Wouters :


--
pull_requests: +1118

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29956] math.exp documentation is misleading

2017-03-31 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

*e*:sup:`x` ? I like this idea.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29956] math.exp documentation is misleading

2017-03-31 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

> This is because math.e is not the same as e.

Right.  That's why I think it would be nice to distinguish math.e and the base 
of the natural logarithm typographically in the docs.  Can we use sphinx math 
mode?  If not, I would use italic for the mathematical e.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29956] math.exp documentation is misleading

2017-03-31 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This is because math.e is not the same as e.

--
nosy: +mark.dickinson, rhettinger, serhiy.storchaka, stutzbach, tim.peters

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29953] Memory leak in the replace() method of datetime and time objects

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29953] Memory leak in the replace() method of datetime and time objects

2017-03-31 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 7d5d13d8d003ae5b62bb8c9ef1d1f310eaabc506 by Serhiy Storchaka in 
branch '3.6':
bpo-29953: Fix memory leaks in the replace() method of datetime and t… (#933)
https://github.com/python/cpython/commit/7d5d13d8d003ae5b62bb8c9ef1d1f310eaabc506


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29956] math.exp documentation is misleading

2017-03-31 Thread Alexander Belopolsky

New submission from Alexander Belopolsky:

The math.exp(x) function is documented to "Return e**x" 
.  This is misleading 
because even in the simplest case, math.exp(x) is not the same as math.e ** x:

>>> import math
>>> math.exp(2) - math.e ** 2
8.881784197001252e-16

I suggest using ex instead of e**x to distinguish between Python syntax 
and mathematical operation and change "Return e**x" to "Return ex, the 
base-e exponential of x."

--
assignee: docs@python
components: Documentation
messages: 290937
nosy: belopolsky, docs@python
priority: normal
severity: normal
status: open
title: math.exp documentation is misleading
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29922] error message when __aexit__ is not async

2017-03-31 Thread Ivan Levkivskyi

Changes by Ivan Levkivskyi :


--
nosy: +levkivskyi

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29953] Memory leak in the replace() method of datetime and time objects

2017-03-31 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1117

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29953] Memory leak in the replace() method of datetime and time objects

2017-03-31 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:


New changeset 314d6fca36a4eaa0541218431d14804fadec6488 by Serhiy Storchaka in 
branch 'master':
bpo-29953: Fix memory leaks in the replace() method of datetime and time (#927)
https://github.com/python/cpython/commit/314d6fca36a4eaa0541218431d14804fadec6488


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8232] webbrowser.open incomplete on Windows

2017-03-31 Thread Boštjan Mejak

Boštjan Mejak added the comment:

I have Windows 10, 64-bit, and Python 3.6.1, 64-bit, and the code still does 
not work!

>>> import webbrowser
>>> webbrowser.get("chrome")
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Program Files\Python 3.6\lib\webbrowser.py", line 51, in get
raise Error("could not locate runnable browser")
webbrowser.Error: could not locate runnable browser

Note: Yes, my Google Chrome browser was running when this command was executed.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29949] sizeof set after set_merge() is doubled from 3.5

2017-03-31 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Do you want to prepare a PR for me?  I not yet set-up with the ways of Github.  
Please limit the PR to just unwinding the refactoring in the simplest possible 
way..

If in the future you want to chat about speed/space trade-offs, we can do that 
offline.  I've spent years thinking about this, interacting with users, 
discussing with other devs, speaking on the topic, and working through use 
cases for sets.  The original reasons for the choices made largely are still 
true today.  I would be happy to walk you through the history (the tracker 
isn't a good place to do this, IRC would serve us better).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29955] logging decimal point should come from locale

2017-03-31 Thread Vinay Sajip

Vinay Sajip added the comment:

It's not exactly a decimal point, more a "decimal mark" as per ISO 8601. From 
the Wikipedia article for the standard at  
"https://en.wikipedia.org/wiki/ISO_8601#Times -

"However, a fraction may only be added to the lowest order time element in the 
representation. A decimal mark, either a comma or a dot (without any preference 
as stated in resolution 10 of the 22nd General Conference CGPM in 2003, but 
with a preference for a comma according to ISO 8601:2004) is used as a 
separator between the time element and its fraction."

and the citation is

"ISO 8601:2004(E), ISO, 2004-12-01, 4.2.2.4 ... the decimal fraction shall be 
divided from the integer part by the decimal sign specified in ISO 31-0, i.e. 
the comma [,] or full stop [.]. Of these, the comma is the preferred sign."

Nothing about picking a decimal point based on the current locale.

--
nosy: +vinay.sajip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29941] Confusion between asserts and Py_DEBUG

2017-03-31 Thread Zachary Ware

Zachary Ware added the comment:

Buildbots are happy, thanks!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29955] logging decimal point should come from locale

2017-03-31 Thread Roundup Robot

Changes by Roundup Robot :


--
pull_requests: +1116

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29951] PyArg_ParseTupleAndKeywords exception messages containing "function"

2017-03-31 Thread R. David Murray

R. David Murray added the comment:

If you want to be completely unambiguous, you could say "keyword argument 
names".  "keyword argument" appears to mean different things in different 
contexts; sometimes it means the name and the value together, sometimes one or 
the other.  Usually which one it is is clear from context, but it seems in this 
case it is not clear.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8232] webbrowser.open incomplete on Windows

2017-03-31 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

Steve, would you like to create a PR based on your patch here?

Also, what versions should this be targeted to now?
 
Thanks.

--
nosy: +Mariatta

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29941] Confusion between asserts and Py_DEBUG

2017-03-31 Thread Thomas Wouters

Thomas Wouters added the comment:

FYI, buildbot issues should be fixed by PR #930.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29941] Confusion between asserts and Py_DEBUG

2017-03-31 Thread Thomas Wouters

Changes by Thomas Wouters :


--
pull_requests: +1115

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29949] sizeof set after set_merge() is doubled from 3.5

2017-03-31 Thread INADA Naoki

INADA Naoki added the comment:

I agree.  Before thinking about rebalance between size and speed,
resolving regression is important.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24452] Make webbrowser support Chrome on Mac OS X

2017-03-31 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

Hi Boštjan Mejak, this ticket addresses the change for MacOS.
The windows support is in http://bugs.python.org/issue8232. Please raise the 
issue there. Thanks.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29955] logging decimal point should come from locale

2017-03-31 Thread Skip Montanaro

New submission from Skip Montanaro:

The logging module hard codes the decimal point for timestamps to be ",". It 
should use locale.localeconv()["decimal_point"] instead.

--
components: Library (Lib)
messages: 290927
nosy: skip.montanaro
priority: normal
severity: normal
status: open
title: logging decimal point should come from locale
type: behavior
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29534] _decimal difference with _pydecimal

2017-03-31 Thread Stefan Krah

Stefan Krah added the comment:

Does anyone know how to disable the spurious pull requests that keep coming in?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24452] Make webbrowser support Chrome on Mac OS X

2017-03-31 Thread Guido van Rossum

Changes by Guido van Rossum :


--
nosy:  -gvanrossum

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24452] Make webbrowser support Chrome on Mac OS X

2017-03-31 Thread Boštjan Mejak

Boštjan Mejak added the comment:

I have Windows 10, 64-bit, and Python 3.6.1, 64-bit, and the code still does 
not work!

>>> import webbrowser
>>> webbrowser.get("chrome")
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Program Files\Python 3.6\lib\webbrowser.py", line 51, in get
raise Error("could not locate runnable browser")
webbrowser.Error: could not locate runnable browser

Note: Yes, my Google Chrome browser was running when this command was executed.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28157] Document time module constants (timezone, tzname, etc.) as deprecated.

2017-03-31 Thread Mariatta Wijaya

Changes by Mariatta Wijaya :


--
stage: needs patch -> patch review
versions: +Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29954] multiprocessing.Pool.__exit__() calls terminate() instead of close()

2017-03-31 Thread Xiang Zhang

Changes by Xiang Zhang :


--
nosy: +davin

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28596] on Android _bootlocale on startup relies on too many library modules

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +1113

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28203] complex() gives wrong error when the second argument has an invalid type

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +1112

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28321] Plistlib: Half of the double width characters are missing when writing binary plist

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +1109

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29100] datetime.fromtimestamp() doesn't check min/max year anymore: regression of Python 3.6

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +1108

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28200] Windows: path_converter() leaks memory for Unicode filenames

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28402] Add signed catalog files for stdlib on Windows

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +1107

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23903] Generate PC/python3.def by scraping headers

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +1091

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28214] Improve exception reporting for problematic __set_name__ attributes

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +1093

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28192] Don't import readline in isolated mode

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +1101

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29576] Improve some deprecations in the importlib

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +1100

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   4   5   >