[issue16764] Make zlib accept keyword-arguments

2016-08-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a4101218364e by Serhiy Storchaka in branch 'default':
Issue #16764: Support keyword arguments to zlib.decompress().  Patch by
https://hg.python.org/cpython/rev/a4101218364e

--
nosy: +python-dev

___
Python tracker 

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



[issue26823] Shrink recursive tracebacks

2016-08-15 Thread Nick Coghlan

Nick Coghlan added the comment:

As Emanuel noted, this is a new feature, and hence won't be backported to any 
earlier versions.

For What's New, it turns out that didn't quite render the way I expected, since 
the "StackSummary" class reference is missing in addition to the "traceback" 
module reference.

So I'll tweak that, and also try to make it clearer that all tracebacks are 
affected, not just those printed via the traceback module (PyTraceback_Print is 
mentioned further down, but what I'll probably do is add an example of an 
infinite recursion being truncated at the interactive prompt)

--

___
Python tracker 

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



[issue27765] Accept UTF-8 encoded bytes as input to json.loads()

2016-08-15 Thread Nick Coghlan

New submission from Nick Coghlan:

In two recent Python 3 porting projects, a key incompatibility I encountered 
was that "json.loads(data)" on UTF-8 encoded bytes required an explicit 
decoding step under Python 3, rather than implicitly decoding the data as UTF-8.

Unlike many other wire formats, assuming UTF-8 for binary JSON data is a pretty 
safe assumption, and there's no type ambiguity here since the output type is 
still a properly decoded JSON object.

(This RFE has been split out from the larger RFE at #19837, which also covers 
implicit *encoding* to UTF-8, which is a more questionable idea)

--
components: Library (Lib)
messages: 272725
nosy: ezio.melotti, ncoghlan, rhettinger
priority: normal
severity: normal
stage: needs patch
status: open
title: Accept UTF-8 encoded bytes as input to json.loads()
type: enhancement
versions: Python 3.6

___
Python tracker 

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



[issue19837] Wire protocol encoding for the JSON module

2016-08-15 Thread Nick Coghlan

Nick Coghlan added the comment:

After hitting this problem again in another nominally single-source compatible 
Python 2/3 project, I created #27765 to specifically cover accepting UTF-8 
encoded bytes in json.loads()

--

___
Python tracker 

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



[issue10910] pyport.h FreeBSD/Mac OS X "fix" causes errors in C++ compilation

2016-08-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2f857ac9c7af by Ned Deily in branch '3.5':
Issue #10910: Avoid C++ compilation errors on FreeBSD and OS X.
https://hg.python.org/cpython/rev/2f857ac9c7af

New changeset 27a99a722828 by Ned Deily in branch '3.5':
Issue #10910: Update FreedBSD version checks for the ctype UTF-8 workaround.
https://hg.python.org/cpython/rev/27a99a722828

New changeset 5ca8790f1161 by Ned Deily in branch 'default':
Issue #10910: merge from 3.5
https://hg.python.org/cpython/rev/5ca8790f1161

New changeset e0ec3471cb09 by Ned Deily in branch '2.7':
Issue #10910: Avoid C++ compilation errors on FreeBSD and OS X.
https://hg.python.org/cpython/rev/e0ec3471cb09

New changeset 12a70477db03 by Ned Deily in branch '2.7':
Issue #10910: Update FreedBSD version checks for the ctype UTF-8 workaround.
https://hg.python.org/cpython/rev/12a70477db03

--
nosy: +python-dev

___
Python tracker 

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



[issue27734] Memory leaks at Python35-32

2016-08-15 Thread Филипп Пономарев

New submission from Филипп Пономарев:

I've created Win32 app (MFC+ATL)
Added includes, added \python35_d.lib

runed main.cpp:
int main()
{
int nRetCode = 0;

HMODULE hModule = ::GetModuleHandle(nullptr);

if (hModule != nullptr)
{
// initialize MFC and print and error on failure
if (!AfxWinInit(hModule, nullptr, ::GetCommandLine(), 0))
{
// TODO: change error code to suit your needs
wprintf(L"Fatal Error: MFC initialization failed\n");
nRetCode = 1;
}
else
{
Py_Initialize();
Py_Finalize();
return 0;
}
}
else
{
// TODO: change error code to suit your needs
wprintf(L"Fatal Error: GetModuleHandle failed\n");
nRetCode = 1;
}

return nRetCode;
}


get leaks:
The thread 0x105c has exited with code 0 (0x0).
Detected memory leaks!
Dumping objects ->
{4888} normal block at 0x003ADE28, 6176 bytes long.
 Data:  00 00 18 10 6D FB FB FB 01 00 00 00 00 02 00 00 
{4879} normal block at 0x003FFF28, 3104 bytes long.
 Data:  00 00 0C 10 6D FB FB FB 01 00 00 00 00 01 00 00 
{4747} normal block at 0x003F7CC0, 80 bytes long.
 Data: <   @m   x   > 00 00 00 40 6D FB FB FB 78 F7 91 00 00 00 00 00 
{4742} normal block at 0x003FC240, 80 bytes long.
 Data: <   @m   > 00 00 00 40 6D FB FB FB 01 00 00 00 04 00 00 00 
{4734} normal block at 0x003EE398, 128 bytes long.
 Data: <   pm   > 00 00 00 70 6D FB FB FB 01 00 00 00 08 00 00 00 
{4732} normal block at 0x003FC1C0, 80 bytes long.
 Data: <   @m   > 00 00 00 40 6D FB FB FB 01 00 00 00 04 00 00 00 
{4731} normal block at 0x003EE2E8, 128 bytes long.
 Data: <   pm   > 00 00 00 70 6D FB FB FB 01 00 00 00 08 00 00 00 
{4723} normal block at 0x003EE238, 128 bytes long.
 Data: <   pm   > 00 00 00 70 6D FB FB FB 01 00 00 00 08 00 00 00 
{4721} normal block at 0x003F86F8, 416 bytes long.
 Data:  00 00 01 90 6D FB FB FB 01 00 00 00 20 00 00 00 
{4720} normal block at 0x003FC140, 80 bytes long.
 Data: <   @m   > 00 00 00 40 6D FB FB FB 01 00 00 00 04 00 00 00 
{4713} normal block at 0x003EE188, 128 bytes long.
 Data: <   pm   > 00 00 00 70 6D FB FB FB 01 00 00 00 08 00 00 00 
{4711} normal block at 0x003FC0C0, 80 bytes long.
 Data: <   @m   > 00 00 00 40 6D FB FB FB 01 00 00 00 04 00 00 00 
{4710} normal block at 0x003F6A30, 224 bytes long.
 Data:  00 00 00 D0 6D FB FB FB 01 00 00 00 10 00 00 00 
{4703} normal block at 0x003EE0D8, 128 bytes long.
 Data: <   pm   > 00 00 00 70 6D FB FB FB 01 00 00 00 08 00 00 00 
{4701} normal block at 0x003FC040, 80 bytes long.
 Data: <   @m   > 00 00 00 40 6D FB FB FB 01 00 00 00 04 00 00 00 
{4694} normal block at 0x003EE028, 128 bytes long.
 Data: <   pm   > 00 00 00 70 6D FB FB FB 01 00 00 00 08 00 00 00 
{4642} normal block at 0x003FBFC0, 80 bytes long.
 Data: <   @m   > 00 00 00 40 6D FB FB FB 01 00 00 00 04 00 00 00 
{4635} normal block at 0x003EDEC8, 128 bytes long.
 Data: <   pm   > 00 00 00 70 6D FB FB FB 01 00 00 00 08 00 00 00 
{3981} normal block at 0x003F5680, 224 bytes long.
 Data:  00 00 00 D0 6D FB FB FB 01 00 00 00 10 00 00 00 
{3973} normal block at 0x003F5568, 224 bytes long.
 Data:  00 00 00 D0 6D FB FB FB 01 00 00 00 10 00 00 00 
{3971} normal block at 0x003F5450, 224 bytes long.
 Data:  00 00 00 D0 6D FB FB FB 01 00 00 00 10 00 00 00 
{3957} normal block at 0x003F5338, 224 bytes long.
 Data:  00 00 00 D0 6D FB FB FB 01 00 00 00 10 00 00 00 
{3949} normal block at 0x003F5220, 224 bytes long.
 Data:  00 00 00 D0 6D FB FB FB 01 00 00 00 10 00 00 00 
{3940} normal block at 0x003F5108, 224 bytes long.
 Data:  00 00 00 D0 6D FB FB FB 01 00 00 00 10 00 00 00 
{3938} normal block at 0x003F4FF0, 224 bytes long.
 Data:  00 00 00 D0 6D FB FB FB 01 00 00 00 10 00 00 00 
{3930} normal block at 0x003F4ED8, 224 bytes long.
 Data:  00 00 00 D0 6D FB FB FB 01 00 00 00 10 00 00 00 
{3922} normal block at 0x003F4DC0, 224 bytes long.
 Data:  00 00 00 D0 6D FB FB FB 01 00 00 00 10 00 00 00 
{3908} normal block at 0x003A2700, 224 bytes long.
 Data:  00 00 00 D0 6D FB FB FB 01 00 00 00 10 00 00 00 
{3900} normal block at 0x003A24D0, 224 bytes long.
 Data:  00 00 00 D0 6D FB FB FB 01 00 00 00 10 00 00 00 
{3383} normal block at 0x003ABBD8, 80 bytes long.
 Data: <   @mP1 > 00 00 00 40 6D FB FB FB B8 50 31 00 00 00 00 00 
{3379} normal block at 0x003C9338, 800 bytes long.
 Data:  00 00 03 10 6D FB FB FB 01 00 00 00 40 00 00 00 
{3368} normal block at 0x003D9BB0, 80 bytes long.
 Data: <   @m   > 00 00 00 40 6D FB FB FB 01 00 00 00 04 00 00 

[issue27765] Accept UTF-8 encoded bytes as input to json.loads()

2016-08-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This looks as a duplicate of issue10976.

See also issue17909 (which covers not just UTF-8, but UTF-16 and UTF-32, in 
conforming with RFC 4627).

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue10910] pyport.h FreeBSD/Mac OS X "fix" causes errors in C++ compilation

2016-08-15 Thread Ned Deily

Ned Deily added the comment:

I have no special insight into this one but, since there seems to be general 
agreement here that this makes things better for those using C++ on OS X and 
FreeBSD, I guess it's time to try it.  Pushed for release in 2.7.13, 3.5.3, and 
3.6.0.

Thanks for the version update, Dimitry.  BTW, it would be good if you signed 
the PSF Contributor Agreement 
(https://www.python.org/psf/contrib/contrib-form/).

--
priority: release blocker -> 
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions:  -Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

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



[issue25455] Some repr implementations don't check for self-referential structures

2016-08-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Antoine, are you fine with io_recursive_repr2.patch?

--

___
Python tracker 

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



[issue16764] Make zlib accept keyword-arguments

2016-08-15 Thread Xiang Zhang

Xiang Zhang added the comment:

Oops! I am on the way regenerating the CA output to catch up with hg tip, but 
after a meeting you have done it.

Thanks for your work, Serhiy. And excellent job as for issue27574.

--

___
Python tracker 

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



[issue23591] Add Flags and IntFlags

2016-08-15 Thread Vedran Čačić

Vedran Čačić added the comment:

It's true, but it seems that with Enums, we're trying to retrain people to use 
identity testing (see https://docs.python.org/3/library/enum.html#comparisons). 
It would be unfortunate if we had to reuntrain them. :-/

Ethan's proposal (of caching weakrefs) is fine, if he manages to do it 
correctly (I didn't). It's much more complicated than it seems at first, since 
it has to work during the class definition itself, too.

Ok, second problem I encountered: zeros. Imagine

class MyFlags(enum.Flags):
NONE = 0
FIRST = 1 << 0
SECOND = 1 << 1

What is MyFlags.FIRST & MyFlags.SECOND? 0 or MyFlags.NONE? Or even False? :-) I 
would almost be for the third option, if not for the fact that & is used not 
only for "membership" testing, but also (with ~) for clearing flags. Imitating 
Go, we might want to introduce another operator, &~, for clearing flags, but 
that would probably be a too great disruption.

MyFlags.NONE seems cool, but then we have an enum member that is false, another 
thing we have tried to avoid with current Enum design (that's why functional 
API starts values at 1, for example). And what about the case when MyFlags 
doesn't define NONE, only FIRST and SECOND?

If you opt for 0, you open another can of worms: first, return type depends on 
argument values, and Guido hates that. :-) Also, that 0 is still somehow tied 
to MyFlags: it would be a type error to write (MyFlags.FIRST & MyFlags.SECOND) 
| AnotherFlags.SOMETHING, right?

Maybe the correct solution is to _always_ have a special value in every Flags 
class for such cases, but then what is it's ~__NONE__? :-) Fortunately, once 
you add __NONE__ and __ALL__, you get a Boolean closure, and you can 
meaningfully define &, |, ^ and ~ in a type-safe way. But that's probably 
overkill.

And so on... there are a lot of problems, and I've been through them. I'd like 
you to succeed where I didn't, but I have a bad feeling.

--

___
Python tracker 

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



[issue27750] Idle editor crashes when input size more than 250 lines given

2016-08-15 Thread chinmay hegde

chinmay hegde added the comment:

Attaching the exact snippet of code that caused idle crash.issue.py file 
contains the code and input.txt contains input used.

Also tried with python interpreter. In python interpreter issue is not seen. 
It's displaying the output.

Pasting of input was done by copying the contents from the notepad file to 
idle. 

Output is 2 dimensional array in the script(variable 'a'). I think due to the 
size of the output idle is crashing. But issue is not seen in python 
interpreter. 

System Config:-
Operating system - Windows 10 64 Bit
Python Version - 3.5.2
IDLE version - 3.5.2
Tk version - 8.6.4

--
Added file: http://bugs.python.org/file44113/idle_crash.zip

___
Python tracker 

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



[issue26823] Shrink recursive tracebacks

2016-08-15 Thread Berker Peksag

Berker Peksag added the comment:

> So I'll tweak that [...]

Hi Nick, could you also tweak the usage of versionchanged directive? :)

+.. versionchanged:: 3.6
+
+Long sequences of repeated frames are now abbreviated.

Description line needs to be indented:

.. versionchanged:: 3.6
   Long sequences of repeated frames are now abbreviated.

--
nosy: +berker.peksag

___
Python tracker 

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



[issue26600] MagickMock __str__ sometimes returns MagickMock instead of str

2016-08-15 Thread Yoichi Nakayama

Yoichi Nakayama added the comment:

It is not a bug of MagicMock. It is a problem of the sample program.
Calling str to mock object cause not only read access,
it also write to related objects. So there is a race condition.

--
nosy: +Yoichi Nakayama

___
Python tracker 

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



[issue27734] Memory leaks at Python35-32

2016-08-15 Thread Филипп Пономарев

Филипп Пономарев added the comment:

I've exported it in source.def - tstf @1 *
thank you*

Sorry for my english =)

--

___
Python tracker 

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



[issue23591] Add Flags and IntFlags

2016-08-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

You still can use identity testing for named instances of IntFlags. But since 
the purpose of IntFlags is replacing int flags, tested values can be int (e.g. 
when read from files as ints). For unknown values you should use either 
equality testing or wrap them in IntFlags.

In your example MyFlags.FIRST & MyFlags.SECOND is MyFlags.NONE. If MyFlags.NONE 
not exists, the result is MyFlags(0). You can apply the patch and experiment 
with it.

--
Added file: http://bugs.python.org/file44114/intflags_3.patch

___
Python tracker 

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



[issue26200] SETREF adds unnecessary work in some cases

2016-08-15 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


Added file: http://bugs.python.org/file44115/py_setref_extra.patch

___
Python tracker 

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



[issue27734] Memory leaks at Python35-32

2016-08-15 Thread Stefan Krah

Stefan Krah added the comment:

It is a known problem that PEP 3121 and later similar PEPs address.
Most C extensions leak a (usually very small) amount of memory with
each call to Initialize()/Finalize().

IMO this issue can be closed.

--
nosy: +skrah

___
Python tracker 

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



[issue16764] Make zlib accept keyword-arguments

2016-08-15 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee: serhiy.storchaka -> 

___
Python tracker 

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



[issue27704] bytes(x) is slow when x is bytearray

2016-08-15 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: commit 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



[issue27704] bytes(x) is slow when x is bytearray

2016-08-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your contribution Naoki.

--

___
Python tracker 

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



[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Christian Heimes

New submission from Christian Heimes:

The ssl module has two cipher suite configurations, one for server-side and the 
other for client-side. Issue #26470 will add OpenSSL 1.1.0 support, which will 
introduce new cipher suites with ChaCha 20 stream cipher and Poly1305 
authenticator.

CHAHA20 should be used when GCM is not available (AES GCM > CHACHA20 > AES CBC).

$ bin/openssl ciphers 
'ECDH+AESGCM:ECDH+CHACHA20:DH+AESGCM:DH+CHACHA20:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+HIGH:DH+HIGH:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+HIGH:RSA+3DES:!aNULL:!eNULL:!MD5'
ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-DSS-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:DHE-DSS-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-CCM8:ECDHE-ECDSA-AES256-CCM:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-CCM8:DHE-RSA-AES256-CCM:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA256:DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:ECDHE-ECDSA-AES128-CCM8:ECDHE-ECDSA-AES128-CCM:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-CCM8:DHE-RSA-AES128-CCM:DHE-RSA-AES128-SHA256:DHE-DSS-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA:ECDHE-ECDSA-CAMELLIA256-SHA384:ECDHE-RSA-CAMELLIA256-SHA384:ECDHE-ECDSA-CAMELLIA128-SHA256:ECDHE-RSA-CAMELLIA128-SHA256:DHE-RSA-CAMELLIA256-SHA256:DHE-DSS-CAMELLIA256-SHA
 
256:DHE-RSA-CAMELLIA128-SHA256:DHE-DSS-CAMELLIA128-SHA256:DHE-RSA-CAMELLIA256-SHA:DHE-DSS-CAMELLIA256-SHA:DHE-RSA-CAMELLIA128-SHA:DHE-DSS-CAMELLIA128-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:DHE-RSA-DES-CBC3-SHA:DHE-DSS-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-CCM8:AES256-CCM:AES128-CCM8:AES128-CCM:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:CAMELLIA256-SHA256:CAMELLIA128-SHA256:CAMELLIA256-SHA:CAMELLIA128-SHA:DES-CBC3-SHA

Bonus points:
Prefer CHACHA20 over AESGCM on hardware without AES-NI and CLMUL CPU 
instructions.

--
components: Library (Lib)
messages: 272740
nosy: alex, christian.heimes, dstufft, giampaolo.rodola, janssen
priority: normal
severity: normal
status: open
title: Add ChaCha20 Poly1305 to SSL ciphers
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Christian Heimes

Changes by Christian Heimes :


--
type: behavior -> security

___
Python tracker 

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



[issue23591] Add Flags and IntFlags

2016-08-15 Thread Vedran Čačić

Vedran Čačić added the comment:

Yes, IntFlags sidesteps a lot of these issues (though not all: inconsistency 
with a lot of principles of IntEnum is still jarring). But I thought we were 
talking about Flags too (it is not in the patch, as far as I see).

But now I see that Flags was kinda abandoned, and we're going forward only with 
IntFlags, right? Maybe the title should be changed?

--

___
Python tracker 

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



[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Christian Heimes

Christian Heimes added the comment:

On X86 and X86_64 AES-NI and PCLMULQDQ can be detected with 
OPENSSL_ia32cap_loc(). 
https://www.openssl.org/docs/man1.0.2/crypto/OPENSSL_ia32cap_loc.html

--

___
Python tracker 

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



[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Cory Benfield

Changes by Cory Benfield :


--
nosy: +Lukasa

___
Python tracker 

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



[issue27749] python 3.5.2 maybe crash

2016-08-15 Thread wevsty

wevsty added the comment:

I try to change the multiprocessing lib codes,upload the file is debugger 
display.I try to used while loop make sure connection hanle value is not 
none,but connection hanle value will still becomes none.
I think there may be other threads to modify the handle,But it not my code.

--
Added file: http://bugs.python.org/file44116/debug_AA1F93C2.JPG

___
Python tracker 

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



[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Christian Heimes

Changes by Christian Heimes :


--
keywords: +patch
Added file: 
http://bugs.python.org/file44117/Add-ChaCha20-Poly1305-to-SSL-ciphers.patch

___
Python tracker 

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



[issue26200] SETREF adds unnecessary work in some cases

2016-08-15 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I don't think most of these should be done.  In most of these cases, the code 
is very old, stable, readable, and shouldn't be churned unnecessarily.

Also, putting a function call inside a macro is a worrisome practice in C.  
Ordinarily, we have long preferred a style of putting the components on 
separate lines to make the code less magical.

   Py_SETREF(result, PyNumber_Add(result, item));
   Py_SETREF(buffer, PyUnicode_AsEncodedString(buffer, "utf-8", 
"surrogatepass"));
   Py_SETREF(text, _PyObject_CallMethodId(text, &PyId_replace, "ss", "\n", 
self->writenl));

Ask Guido whether he thinks any of the above are a good idea?  While it is a 
bit shorter, it also interferes with my ability to decrypt and reason about the 
code (especially when I'm trying to count references or trying to ascertain 
whether an error condition has been checked).

--

___
Python tracker 

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



[issue26200] SETREF adds unnecessary work in some cases

2016-08-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Guido, what is your thought?

I sometimes use Py_SETREF() in new code for simplicity (and not only me). I 
agree that in case of long complex expression putting it inside a macro looks 
ugly.

--
nosy: +gvanrossum

___
Python tracker 

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



[issue27744] Add AF_ALG (Linux Kernel crypto) to socket module

2016-08-15 Thread Christian Heimes

Christian Heimes added the comment:

Working patch with tests and documentation.

socket.algset() isn't strictly necessary but makes the feature much more 
pleasant to use. I accept ideas for a better name, though.

--
keywords: +patch
Added file: 
http://bugs.python.org/file44118/AF_ALG-kernel-crypto-support-for-socket-module.patch

___
Python tracker 

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



[issue25571] Improve the lltrace feature with the Py_Debug mode

2016-08-15 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


--
assignee:  -> haypo

___
Python tracker 

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



[issue1602] windows console doesn't print or input Unicode

2016-08-15 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue1602] windows console doesn't print or input Unicode

2016-08-15 Thread Christian Heimes

Changes by Christian Heimes :


--
nosy:  -christian.heimes

___
Python tracker 

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



[issue27492] Enhance bytearray_repr with bytes_repr's logic

2016-08-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The two function's advantage is in the ability to reuse this code for other 
purposes. For example in _codecs.escape_encode(). But since this is the only 
place where the same algorithm is used and this functions is not documented and 
I presume it is not much used, this advantage is pretty small.

The simplest implementation of bytearray.__repr__ is

def __repr__(self):
return 'bytearray(%r)' % bytes(self)

It is less efficient than the current implementation or proposed patch, but is 
much simpler. This approach is used in reprs of set, frozenset, deque, array, 
BaseException, itemgetter, attrgetter, etc.

It can be more efficient is make bytes.__repr__ accepting not only bytes, but 
objects supporting the buffer protocol.

--

___
Python tracker 

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



[issue27763] Add complex case to test_builtin abs()

2016-08-15 Thread Mark Dickinson

Mark Dickinson added the comment:

> in looking through test_cmath, it appears that only the two numeric
> argument form of complex(i, j) is tested for any of the functions, not the
> complex('i+nj') string form.

We're testing the cmath functions on complex number inputs; I don't think it 
matters much how those complex numbers are created. The string form of the 
constructor can't create any complex numbers that the two-argument `complex(x, 
y)` form can't, so we're not losing test coverage by only using the `complex(x, 
y)` form.

The complex number creation from both strings and pairs of floats should be 
tested independently, of course.

--
nosy: +mark.dickinson

___
Python tracker 

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



[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Alex Gaynor

Alex Gaynor added the comment:

So, for servers really what we care about is if the _client_ has 
PCLMULQDQ/AESNI, not whether the server itself does. Unfortunately, there's no 
sane way to do this.

Haven't reviewed this patch in terribly much detail, but conceptually fine. 
Cory, we should make sure this type of change propogates its way through 
requests, urllib3, hynek's blog post, and whatever else has a copy-pasted 
ciphersuite string.

--
nosy: +hynek

___
Python tracker 

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



[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Cory Benfield

Cory Benfield added the comment:

Yup. So for Requests at least, the fix is easy: because OpenSSL kindly just 
quietly ignores cipher suites it doesn't know about we can unconditionally add 
it to the requests/urllib3 cipher string. In the first instance we'll just do 
it statically, and then we can consider down the road whether 
Python/cryptography could give us a way to ask whether we should prefer 
ChaCha20 over AES-GCM.

In the short term, my expectation is that we'd still want to prioritise AES-GCM 
over ChaCha20 in Requests: is there any reason to think that I'm wrong there?

--

___
Python tracker 

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



[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Alex Gaynor

Alex Gaynor added the comment:

Simply doing AES-GCM before ChaCha20 is probably the simplest thing to start 
with, can always get fancier later.

--

___
Python tracker 

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



[issue27767] Receive "A required privilege is not held by the Client" error message when Installing python on Windows 10 64 bit

2016-08-15 Thread Ron Carr

New submission from Ron Carr:

Hi,

I am unable to install Python 3.6.0, 3.5.2 and 2.7.12, on my Windows 10 64 bit 
system, receive error message "A required privilege is not held by the client". 
I have turned UAC, and changed registry setting to zero. Also have ensured my 
Administrator has full access rights, but still get the same error. I have also 
turned off my virus checker.

Any help would be greatly appeciated.

Regards,

Ballterrier

--
components: Installation
messages: 272752
nosy: ballterrier
priority: normal
severity: normal
status: open
title: Receive "A required privilege is not held by the Client" error message 
when Installing python on Windows 10 64 bit
type: security
versions: Python 3.6

___
Python tracker 

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



[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Christian Heimes

Christian Heimes added the comment:

On 2016-08-15 13:09, Alex Gaynor wrote:
> 
> Alex Gaynor added the comment:
> 
> So, for servers really what we care about is if the _client_ has 
> PCLMULQDQ/AESNI, not whether the server itself does. Unfortunately, there's 
> no sane way to do this.

For servers we want to prefer CHACHA20 over AESGCM iff both sides have
AES-NI and CLMUL. A server on a device such as a RPi benefits from
CHACHA20, too. For that reason I also changed the server side cipher string.

As you already said, there is no way to express this with OpenSSL cipher
suite string.

--

___
Python tracker 

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



[issue26526] In parsermodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA

2016-08-15 Thread A. Skrobov

A. Skrobov added the comment:

Thanks Xavier! Yes, this is the same DFA that's used by the main Python parser. 
For some reason, parsermodule didn't previously reuse it, but instead did its 
own thing.

Any volunteers to review the other patch for Python parser, at 
http://bugs.python.org/issue26415 ?

--

___
Python tracker 

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



[issue27767] Receive "A required privilege is not held by the Client" error message when Installing python on Windows 10 64 bit

2016-08-15 Thread Decorater

Decorater added the comment:

Why are you trying to install 3.6? when you can make it the embeded version as 
it is still in alpha and then use it. Not only that but you can use 
\Tools\msi\make_zip.py to learn more.

--
nosy: +Decorater

___
Python tracker 

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



[issue27450] bz2: BZ2File should expose compression level as an attribute

2016-08-15 Thread Xiang Zhang

Xiang Zhang added the comment:

If you don't want to manually parse it, the lib has to. Currently, bz2 
delegates all the raw data parsing (compression/decompression) to the 
underlying C library. Unfortunately the bzip2 library doesn't expose the header 
info which means to get compression level, we have to do some raw data parsing 
in the lib.

Actually I wonder if it's worth though this seems not hard to implement.

--
nosy: +martin.panter, xiang.zhang

___
Python tracker 

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



[issue27755] Retire DynOptionMenu with a ttk Combobox

2016-08-15 Thread Justin Foo

Justin Foo added the comment:

I wasn't sure if the ongoing work in #24781 essentially rendered my patch 
obsolete, so I keenly await Mark's response.

Upon reflection, I think my patch is a cheap win even if it's later overhauled 
by other improvements.

--
status: closed -> open

___
Python tracker 

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



[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2016-08-15 Thread Pas

Changes by Pas :


--
nosy: +pas

___
Python tracker 

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



[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Cory Benfield

Cory Benfield added the comment:

Update for Requests+urllib3 is here: https://github.com/shazow/urllib3/pull/947

Update for Twisted is here: https://twistedmatrix.com/trac/ticket/8760

--

___
Python tracker 

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



[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Decorater

Decorater added the comment:

tbh I personally perfer aiohttp over requests.

--
nosy: +Decorater

___
Python tracker 

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



[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Christian Heimes

Christian Heimes added the comment:

Cory, Alex:

Do you like to have a public API for CPU feature discovery? I don't mind to 
make OPENSSL_ia32cap_loc() a public API or even expose the bit set as structure 
with nice field names.

Decorater:

This ticket is not a vote on favorite packages. Please keep it on topic.

--

___
Python tracker 

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



[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Cory Benfield

Cory Benfield added the comment:

Christian: Certainly I'd like to be able to use that API from within urllib3 
and Twisted. Having something public would be really convenient. Of course, 
it'd be good if OpenSSL exposed something useful here, but in the absence of 
that Python would be convenient.

--

___
Python tracker 

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



[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Alex Gaynor

Alex Gaynor added the comment:

Exposing it in some way would be good, but we can make that a seperate issue.

--

___
Python tracker 

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



[issue27768] ssl: add public API for IA-32 processor capabilities vector

2016-08-15 Thread Christian Heimes

New submission from Christian Heimes:

OpenSSL has a function called OPENSSL_ia32cap_loc() to get the processor's 
capability vector in X86 and X86_64 systems. The information is useful to 
decide which cipher suite to prefer. For example on machines without AES-NI and 
CLMUL CPU instructions, ChaCha20 should be prefered over AES-GCM. 

https://www.openssl.org/docs/man1.0.2/crypto/OPENSSL_ia32cap_loc.html

#27766 just exposes the plain OPENSSL_ia32cap_loc(). A richer API should parse 
the bit field and expose the bits as structure.

--
components: Extension Modules
messages: 272763
nosy: alex, christian.heimes, dstufft, giampaolo.rodola, janssen
priority: normal
severity: normal
status: open
title: ssl: add public API for IA-32 processor capabilities vector
type: enhancement
versions: Python 3.6

___
Python tracker 

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



[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Christian Heimes

Changes by Christian Heimes :


--
dependencies: +Make OpenSSL module compatible with OpenSSL 1.1.0, ssl: add 
public API for IA-32 processor capabilities vector

___
Python tracker 

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



[issue27734] Memory leaks at Python35-32

2016-08-15 Thread R. David Murray

R. David Murray added the comment:

Филипп: As Stefan said, we know there are problems with initialize/finalize, 
but the problems are deep and the project to correct them is ongoing.  So, this 
is an example of an already identified leak that we are working on, and 
consequently I'll close this issue.  (If you disagree with Stefan's diagnosis, 
please let us know with supporting info about why.)

--
resolution:  -> duplicate
stage:  -> 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



[issue25628] Make namedtuple "verbose" and "rename" parameters into keyword only arguments

2016-08-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Ping again.

--

___
Python tracker 

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



[issue17394] Add slicing support to collections.deque

2016-08-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Raymond, do you still have an interest in this issue? If no, you can just close 
it.

--

___
Python tracker 

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



[issue18844] allow weights in random.choice

2016-08-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Raymond, any chance to get weighted random choices generator in 3.6? Less than 
month is left to feature code freeze.

--

___
Python tracker 

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



[issue27769] "Replace All" with up direction and no wrapping replaces only the bottommost of all matching upward entries

2016-08-15 Thread Qwert225

New submission from Qwert225:

IDLE's "Replace All" option with up direction and disabled "Wrap around" 
replaces only the bottommost of all matching upward entries instead of 
replacing all matching upward entries.

--
assignee: terry.reedy
components: IDLE
messages: 272768
nosy: Qwert225, terry.reedy
priority: normal
severity: normal
status: open
title: "Replace All" with up direction and no wrapping replaces only the 
bottommost of all matching upward entries
type: behavior
versions: Python 3.5

___
Python tracker 

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



[issue27769] IDLE's "Replace All" with up direction and no wrapping replaces one upward and all downward entries instead of replacing all upward entries.

2016-08-15 Thread Qwert225

Qwert225 added the comment:

EDIT: IDLE's "Replace All" with up direction and no wrapping replaces one 
upward matching entry and all downward matching entries even though it is set 
to replace all upward entries.

--
title: "Replace All" with up direction and no wrapping replaces only the 
bottommost of all matching upward entries -> IDLE's "Replace All" with up 
direction and no wrapping replaces one upward and all downward entries instead 
of replacing all upward entries.

___
Python tracker 

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



[issue12345] Add math.tau

2016-08-15 Thread Guido van Rossum

Guido van Rossum added the comment:

Lisa, this LGTM. I'll commit it so we can put this behind us!

--

___
Python tracker 

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



[issue27506] make bytes/bytearray delete a keyword argument

2016-08-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Technically the patch looks correct to me. Added just few minor comments on 
Rietveld. I don't think there is a large need in adding the support of keyword 
argument. But since the overhead is small and somebody needs this, adding this 
doesn't do a harm. Left it on you Martin.

--
assignee: serhiy.storchaka -> martin.panter

___
Python tracker 

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



[issue26415] Excessive peak memory consumption by the Python parser

2016-08-15 Thread Xavier Combelle

Xavier Combelle added the comment:

Looks that there is two bug as partial solution of the main bug which is reduce 
memory consumption of the parser:
- The compression thing
- the reducing of heap fragmentation
Could each sub bug have it's own bug tracker and mark them blocking for the 
main bug ?

A. Skrobov Can you describe the big picture of your patch, without I don't 
understand the logic of your modifications.

--
nosy: +xcombelle

___
Python tracker 

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



[issue24379] Add operator.subscript as a convenience for creating slices

2016-08-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Raymond, adding a stub element to __slots__ fixes a leak. Is this enough to 
push the patch again?

We should open a separate issue for leaks in objects with empty __slots__.

--

___
Python tracker 

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



[issue24379] Add operator.subscript as a convenience for creating slices

2016-08-15 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

It looks like namedtuple suffers the same issue with empty __slots__:

test_collections leaked [0, 0, 2, 0] references, sum=2

--

___
Python tracker 

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



[issue12345] Add math.tau

2016-08-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 68f2d6098be1 by Guido van Rossum in branch 'default':
Issue #12345: Add mathemathcal constant tau to math and cmath.
https://hg.python.org/cpython/rev/68f2d6098be1

--

___
Python tracker 

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



[issue12345] Add math.tau

2016-08-15 Thread Guido van Rossum

Changes by Guido van Rossum :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue27736] repeated Py_Initialize/PyRun_SimpleString/Py_Finalize segfaults

2016-08-15 Thread Brett Cannon

Brett Cannon added the comment:

Patch LGTM.

--
assignee: brett.cannon -> ned.deily
stage: patch review -> commit review

___
Python tracker 

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



[issue12345] Add math.tau

2016-08-15 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

There is a typo in the NEWS entry:

"Issue #12345: Add *mathemathcal* constant tau to math ..."

--

___
Python tracker 

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



[issue27492] Enhance bytearray_repr with bytes_repr's logic

2016-08-15 Thread Xiang Zhang

Xiang Zhang added the comment:

> It can be more efficient is make bytes.__repr__ accepting not only bytes, but 
> objects supporting the buffer protocol.

I like this idea. v2 implements this.

--
Added file: http://bugs.python.org/file44119/bytearray_repr_v2.patch

___
Python tracker 

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



[issue27767] Receive "A required privilege is not held by the Client" error message when Installing python on Windows 10 64 bit

2016-08-15 Thread Brett Cannon

Brett Cannon added the comment:

1. Is this pre- or post-Anniversary update?

2. Is the PC administered by anyone other than yourself (e.g. is it a work 
machine)?

3. Are you trying to do a system-wide install or a personal install?

4. For at least Python 3.5 the installer does work as I have done it myself 
multiple times.

--
nosy: +brett.cannon

___
Python tracker 

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



[issue27767] Receive "A required privilege is not held by the Client" error message when Installing python on Windows 10 64 bit

2016-08-15 Thread Brett Cannon

Changes by Brett Cannon :


--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
versions: +Python 2.7, Python 3.5

___
Python tracker 

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



[issue26823] Shrink recursive tracebacks

2016-08-15 Thread Emanuel Barry

Emanuel Barry added the comment:

Doc patch.

--
stage: resolved -> patch review
status: closed -> open
Added file: http://bugs.python.org/file44120/short_tracebacks_doc_1.patch

___
Python tracker 

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



[issue27723] Document typing.Text and typing.AnyStr

2016-08-15 Thread Michael Lee

Michael Lee added the comment:

Second revision attached below.

--
Added file: http://bugs.python.org/file44121/document-text-and-anystr-2.patch

___
Python tracker 

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



[issue27761] Private _nth_root function loses accuracy

2016-08-15 Thread Mark Dickinson

Mark Dickinson added the comment:

Just for fun, here's a recipe for a correctly-rounded nth root operation for 
positive finite floats. I'm not suggesting using this in the business logic: 
it's likely way too slow (especially for large n), but it may have a use in the 
tests. The logic for the Newton iteration in floor_nroot follows that outlined 
in this Stack Overflow answer: http://stackoverflow.com/a/35276426

from math import frexp, ldexp

def floor_nroot(x, n):
""" For positive integers x, n, return the floor of the nth root of x. """

# Initial guess: here we use the smallest power of 2 that exceeds the nth
# root. But any value greater than or equal to the target result will do.
a = 1 << -(-x.bit_length() // n)
while True:
d = x // a**(n-1)
if a <= d:
return a
a = ((n-1) * a + d) // n

def nroot(x, n):
"""
Correctly-rounded nth root (n >= 2) of x, for a finite positive float x.
"""
if not (x > 0 and n >= 2):
raise ValueError("x should be positive; n should be at least 2")

m, e = frexp(x)
rootm = floor_nroot(int(m * 2**53) << (53*n + (e-1)%n - 52), n)
return ldexp(rootm + rootm % 2, (e-1)//n - 53)

--

___
Python tracker 

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



[issue27723] Document typing.Text and typing.AnyStr

2016-08-15 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

Looks good to me.
15 Сер 2016 18:57 "Michael Lee"  пише:

>
> Michael Lee added the comment:
>
> Second revision attached below.
>
> --
> Added file: http://bugs.python.org/file44121/document-text-and-
> anystr-2.patch
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue27761] Private _nth_root function loses accuracy

2016-08-15 Thread Mark Dickinson

Mark Dickinson added the comment:

> for positive finite floats

... assuming IEEE 754 binary64 format, of course.

--

___
Python tracker 

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



[issue18844] allow weights in random.choice

2016-08-15 Thread Raymond Hettinger

Raymond Hettinger added the comment:

FWIW, I have four full days set aside for the upcoming pre-feature release 
sprint which is dedicated to taking time to thoughtfully evaluate pending 
feature requests.  In the meantime, I'm contacting Alan Downey for a 
consultation for the best API for this.  As mentioned previously, the generator 
version isn't compatible with the design of the rest of the module that allows 
streams to have their state saved and restored at arbitrary points in the 
sequence.  One API would be to create a list all at once (like random.sample 
does).  Another would be to have two steps (like str.maketrans and 
str.translate).  Ideally, the API should integrate neatly with 
collections.Counter as a possible input for the weighting.  Hopefully, Alan can 
also comment on the relative frequency of small integer weightings versus the 
general case (the former benefits from a design using random.choice() applied 
to Counter.elements() and the latter benefits from a design with accumulate() 
and bisect()).  Note, this
  is a low priority feature (no real demonstrated need, there is already a 
recipe for it in the docs, and once the best API have been determined, the code 
is so simple that any of us could implement it in only a few minutes).

--

___
Python tracker 

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



[issue26415] Excessive peak memory consumption by the Python parser

2016-08-15 Thread A. Skrobov

A. Skrobov added the comment:

Xavier, the big picture description of my patch is in 
http://bugs.python.org/file43665/devguide_patch

The heap fragmentation was observed by Victor, not by myself.

Victor, could you please create a new ticket for your python_memleak.py 
reproducer?

--

___
Python tracker 

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



[issue1442493] IDLE shell window gets very slow when displaying long lines

2016-08-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

manual_wrap.patch patches OutputWindow (2.7) to arbitrarily and blindly wrap at 
80 chars.  OutputWindow is used directly for grep output, as well as the base 
for PyShell.  The grep output format is currently "'{}: {}: 
{}'.format(filepath, linenum, codeline)".  Output lines are typically (for me) 
> 80 chars and I would not want a fixed-column wrap.  With a right click, one 
can go to the file and line and this should not be disabled.  Ditto for 
tracebacks, where code lines are pre-wrapped (with an added indent) onto a 
second physical line. Wrap at 80 would wrap lines that were originally 80 
before having the traceback indent added.  Autowrap should only be applied to 
user stdout sent to Shell.

Perhaps wrapping should have a window (80-100?) within which we look for a 
space.  I have about concluded that we should add horizontal scrollbars anyway, 
since Python and IDLE output lines longer than 80 chars.

To evaluate the patch further, I want to look at how the socket stream is being 
read.

As long as we are modifying user output before inserting into the text widget, 
astral chars should be expanded into their unicode escapes. (There are multiple 
issue for astral chars.  Tk 8.7 reportedly will handle them.) The replacement 
text should be tagged and colored as such.  Wrapping should not break 
replacements.  The same could be done for control chars to make them visible.  
(Astral char handling is needed for paths also!).

--

___
Python tracker 

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



[issue23591] Add Flags and IntFlags

2016-08-15 Thread Ethan Furman

Ethan Furman added the comment:

Serhiy's patch is only for IntFlags, and my patch hasn't yet fully incorporated 
his (many thanks for decompose!)

For IntFlags I do not expect to have very many instances alive at once, 
especially since not-bitwise operators will lose the IntFlag class and become 
plain ints.

Flags are closed.  If the zero value is not specified the repr and str are:

>>> Hah(0)

>>> str(Hah(0))
'Hah.0'

(An RGB class might be:  )

A question I have about IntFlags:

If a third-party lib specifies that certain bits are reserved and should always 
be zero (or at least not changed), do we want to add some easy support for that?

--

___
Python tracker 

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



[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-08-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ddc4bdae5e41 by Ned Deily in branch 'default':
Issue #23968: Make OS X installer build script aware of renamed platform
https://hg.python.org/cpython/rev/ddc4bdae5e41

--

___
Python tracker 

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



[issue27038] Make os.DirEntry exist

2016-08-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a95d98086621 by Ned Deily in branch 'default':
Issue #27736: Prevent segfault after interpreter re-initialization due
https://hg.python.org/cpython/rev/a95d98086621

--

___
Python tracker 

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



[issue27736] repeated Py_Initialize/PyRun_SimpleString/Py_Finalize segfaults

2016-08-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a95d98086621 by Ned Deily in branch 'default':
Issue #27736: Prevent segfault after interpreter re-initialization due
https://hg.python.org/cpython/rev/a95d98086621

--
nosy: +python-dev

___
Python tracker 

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



[issue27769] IDLE: Replace All up, no wrap replaces one up, all down

2016-08-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Edited title to fit in the box.  Minimal reproducer, which can become a test.  
File as follows, where '|' represent the cursor, not the character.

a
a|
a

Cntl-H, enter search for 'a', replace with 'b', check 'up', uncheck 'wrap', 
click Replace All.  Result matches what you said.

a
b
b

Thanks for the report. This is definitely a bug.  In the future, try to post a 
minimal example, such as the above, as well as a description.   Whether I 
backport a fix depends on how easy it would be.

--
stage:  -> needs patch
title: IDLE's "Replace All" with up direction and no wrapping replaces one 
upward and all downward entries instead of replacing all upward entries. -> 
IDLE: Replace All up, no wrap replaces one up, all down
versions: +Python 3.6 -Python 3.5

___
Python tracker 

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



[issue23591] Add Flags and IntFlags

2016-08-15 Thread Vedran Čačić

Vedran Čačić added the comment:

So, in fact, your Flags are simply an overlayed namespace over int (the way to 
give some ints sticky names), and any int is accessible from any Flags, no 
matter whether it has a name or not? I must say that to me it seems radically 
different than (Int)Enum philosophy.

class MyIntEnum(IntEnum):
A = 1

>>> MyIntEnum(0)
ValueError: 0 is not a valid MyIntEnum

So, flags are not enums, nor they share the same principles (identity, 
exclusiveness). Why are they in the enum module at all?

--

___
Python tracker 

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



[issue27736] repeated Py_Initialize/PyRun_SimpleString/Py_Finalize segfaults

2016-08-15 Thread Ned Deily

Ned Deily added the comment:

I've applied the patch for 3.6.0a4 so the immediate issue is fixed.  I wonder 
if it would be worthwhile adapting Simon's test case to add to the embedding 
test cases in Lib/test/test_capi.py.  I'm going to leave the issue open for a 
while in case someone is interested in doing that.

--
assignee: ned.deily -> 
priority: release blocker -> 
stage: commit review -> test needed

___
Python tracker 

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



[issue23591] Add Flags and IntFlags

2016-08-15 Thread Ethan Furman

Ethan Furman added the comment:

The zero value is special in that it represents a flag with nothing set.  
Excluding it has its own problems, but if you have an argument for that 
behavior I'm listening.

Any other non-Flag value is not allowed, and will raise an error (IntFlags 
won't share this behavior).

--

___
Python tracker 

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



[issue23591] Add Flags and IntFlags

2016-08-15 Thread Vedran Čačić

Vedran Čačić added the comment:

I think I have written about all the options in detail in 
http://bugs.python.org/msg272732. If I see it right, your ".0" corresponds to 
what I called ".__NONE__". It is a "right way" to do it, but for it to be 
complete, you also have to add ".__ALL__", representing -1, as its complement. 
If you do both of these, I'm fine with it, and we can discuss further 
problems... :-)

... like inverting representation. If you have non-powers of 2 named, how do 
you know which exact flags a value consists of?

class Weird(Flags):
AB = 3
C = 4
BC = 6
A = 1

what is Weird(7)? Weird.(AB|C) or Weird.(A|BC)? What if you don't have C (or A) 
as a name? Are you going to employ a minimal exact cover algorithm? :-O

--

___
Python tracker 

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



[issue23591] Add Flags and IntFlags

2016-08-15 Thread Ethan Furman

Ethan Furman added the comment:

'.0' does not have a name unless the user defines it; similarly, '.-1' does not 
have a name unless the user defines it.

For Flags, negative numbers are supported in order to specify which flags are 
desired, but the final representation will be zero or positive:

>>> class Hah(enum.Flags):
...   this, that, these, those, thuse
... 
>>> Hah(0)

>>> Hah(-1)


The algorithm is simple: start with the biggest Flag and mask off matching bits 
until all bits are are matched.  If any unmatched bits remain an error is 
raised.

If a user does horrible things like your Weird class then any breakage is on 
them.

As it stands, Weird(7) would be , and if A was not defined an 
error would be raised.

--

___
Python tracker 

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



[issue23591] Add Flags and IntFlags

2016-08-15 Thread Vedran Čačić

Vedran Čačić added the comment:

I suppose you'll also forbid adding new members to Flags, just like Enum does, 
right? 
(https://docs.python.org/3/library/enum.html#restricted-subclassing-of-enumerations)
 Otherwise cropping -1 at a fixed number of bits might be very counterintuitive.

But still, your "simple algorithm" seems too simple. You might easily produce 
values you won't be able to interpret.

class ThirdBitMustBeSet(Flags):
FIRST = 5
SECOND = 6

>>> ThirdBitMustBeSet.FIRST | ThirdBitMustBeSet.SECOND

produces error when printing, but otherwise works completely fine. A debugging 
nightmare. :-/ I'd at least ensure each bit has a separate name if you're going 
to use that scheme.

--

___
Python tracker 

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



[issue23591] Add Flags and IntFlags

2016-08-15 Thread Ethan Furman

Ethan Furman added the comment:

The values used in Flags are an implementation detail.  The expected, and 
supported, use is naming the flags:

class Color(Flags):
Red, Green, Blue

even custom names can be set using this method:

>>> class Color(enum.Flags):
...   red, green, blue
...   black = red & green & blue
... 
>>> list(Color)
[, , , ]

>>> class Color(enum.Flags):
...   red, green, blue
...   purple = red | blue
... 
>>> list(Color)
[, , , ]
>>> Color(5)

>>> Color(3)


I'll have to think about ensuring each bit is named -- it's only a (potential) 
problem if the values are specified manually.

--

___
Python tracker 

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



[issue25958] Implicit ABCs have no means of "anti-registration"

2016-08-15 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

I have manually "rebased" the patch taking into account that part of the work 
has been done in http://bugs.python.org/issue25987

Serhiy, Martin could you please review the latest patch and check that 
everything is OK?

Andrew did a really good job and I would like this to land in 3.6

--
Added file: http://bugs.python.org/file44122/abarnert_rebased.diff

___
Python tracker 

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



[issue25958] Implicit ABCs have no means of "anti-registration"

2016-08-15 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

Oops, sorry, forgot one import, all tests pass with the corrected patch.

--
Added file: http://bugs.python.org/file44123/abarnert_rebased2.diff

___
Python tracker 

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



[issue12345] Add math.tau

2016-08-15 Thread Guido van Rossum

Guido van Rossum added the comment:

Thanks, fixed.

--

___
Python tracker 

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



[issue27723] Document typing.Text and typing.AnyStr

2016-08-15 Thread Guido van Rossum

Guido van Rossum added the comment:

Committed and merged to 3.6.

changeset:   102670:d5872d0863c8
branch:  3.5
parent:  102663:27a99a722828
user:Guido van Rossum 
date:Mon Aug 15 15:06:38 2016 -0700
summary: Add docs for typing.AnyStr and typing.Text. By Michael Lee.

changeset:   102672:705416c5909e
tag: tip
parent:  102671:247ecbae325c
parent:  102670:d5872d0863c8
user:Guido van Rossum 
date:Mon Aug 15 15:08:11 2016 -0700
summary: Add docs for typing.AnyStr and typing.Text. By Michael Lee. (Merge 
3.5->3.6)

--
resolution:  -> fixed
stage:  -> 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



[issue27038] Make os.DirEntry exist

2016-08-15 Thread Brendan Moloney

Brendan Moloney added the comment:

The pathlib Path class is different enough from the DirEntry class that it 
doesn't really help my goal of allowing a function to work with either a 
DirEntry or a plain (str) path.

These functions are going to be working with DirEntry objects generated by 
scandir 99% of the time so that we can leverage the improved performance, but I 
want to allow users to pass in plain paths as well. If the stdlib doesn't allow 
me to create my own DirEntry object from a plain path I will probably end up 
creating some sort of FakeDirEntry class that mimics a DirEntry, and that seems 
a bit silly and not a great use of time and effort.

If the constructor currently "requires low-level data coming from
readdir() or FindFirstFile()" then why not a class method that just takes a 
path and calls stat on it? You could document the fact that it calls stat and 
that it doesn't have any of the performance benefits of using scandir. 
Consenting adults and all that...

--

___
Python tracker 

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



[issue27714] some test_idle tests are not re-runnable, producing false failures with regrtest -w option

2016-08-15 Thread Ned Deily

Ned Deily added the comment:

I just noticed another similar test dependency, this time between test_idle and 
test_tix.  If run with -j set, the problem is not seen.  This is still present 
in 3.6.0a4:

$ python3.6 -m test -uall -w test_idle test_tix
Run tests sequentially
0:00:00 [1/2] test_idle
can't invoke "event" command:  application has been destroyed
while executing
"event generate $w <>"
(procedure "ttk::ThemeChanged" line 6)
invoked from within
"ttk::ThemeChanged"
0:00:02 [2/2] test_tix
test test_tix crashed -- Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/test/libregrtest/runtest.py",
 line 167, in runtest_inner
the_module = importlib.import_module(abstest)
  File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/__init__.py",
 line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 996, in _gcd_import
  File "", line 979, in _find_and_load
  File "", line 968, in _find_and_load_unlocked
  File "", line 673, in _load_unlocked
  File "", line 667, in exec_module
  File "", line 222, in _call_with_frames_removed
  File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/test/test_tix.py",
 line 11, in 
from tkinter import tix, TclError
  File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/tix.py",
 line 30, in 
from tkinter import _cnfmerge, _default_root
ImportError: cannot import name '_default_root'

test_tix failed
1 test OK.
1 test failed:
test_tix
Re-running failed tests in verbose mode
Re-running test 'test_tix' in verbose mode
test test_tix crashed -- Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/test/libregrtest/runtest.py",
 line 167, in runtest_inner
the_module = importlib.import_module(abstest)
  File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/__init__.py",
 line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 996, in _gcd_import
  File "", line 979, in _find_and_load
  File "", line 968, in _find_and_load_unlocked
  File "", line 673, in _load_unlocked
  File "", line 667, in exec_module
  File "", line 222, in _call_with_frames_removed
  File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/test/test_tix.py",
 line 11, in 
from tkinter import tix, TclError
  File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/tix.py",
 line 30, in 
from tkinter import _cnfmerge, _default_root
ImportError: cannot import name '_default_root'

1 test failed again:
test_tix
Total duration: 0:00:03

--

___
Python tracker 

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



[issue27761] Private _nth_root function loses accuracy

2016-08-15 Thread Ned Deily

Ned Deily added the comment:

Since test_NTh_Root is failing on so many different buildbot platforms and in 
different ways, I'm marking this as a "release blocker".  It would be very 
helpful to get this resolved prior to 3.6.0b1 next month.  Suggest checking the 
test results outputs of the various 3x build slaves to ensure all the cases 
have been addressed.

https://www.python.org/dev/buildbot/

--
nosy: +ned.deily
priority: normal -> release blocker
stage:  -> needs patch

___
Python tracker 

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



[issue27181] Add geometric mean to `statistics` module

2016-08-15 Thread Ned Deily

Ned Deily added the comment:

FTR, multiple platforms are failing in various ways, not just PPC64, so 
Issue27761 was expanded to cover them and has been marked as a "release 
blocker".

--
nosy: +ned.deily

___
Python tracker 

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



[issue27038] Make os.DirEntry exist

2016-08-15 Thread Brett Cannon

Brett Cannon added the comment:

If all you want is to extract the path representation from an os.DirEntry 
instance and continue to work with strings/bytes then you can use os.fspath() 
which is new in Python 3.6 to get the representation: 
https://docs.python.org/3.6/library/os.html#os.fspath .

--

___
Python tracker 

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



  1   2   >