[issue27781] Change sys.getfilesystemencoding() on Windows to UTF-8

2016-09-05 Thread Nick Coghlan

Nick Coghlan added the comment:

I belatedly remembered I've had this new test case hanging around for a while, 
and never got around to getting it into shape for inclusion in the standard 
library.

With the prospect of reasonable cross-platform consistency in this area, it 
could be a good thing to add as part of this PEP.

--
nosy: +ncoghlan
Added file: http://bugs.python.org/file44369/test_cmd_line_unicode.py

___
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-09-05 Thread A. Skrobov

A. Skrobov added the comment:

Updated the comment for Init_ValidationGrammar()

--
Added file: http://bugs.python.org/file44370/patch

___
Python tracker 

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



[issue19500] Add client-side SSL session resumption

2016-09-05 Thread Xiang Zhang

Xiang Zhang added the comment:

Patch LGTM. But one thing is that every time it returns a new instance of 
SSL.Session. That means ssl_sock.session == ssl_sock.session will always return 
False right now. Is it useful to make it comparable?

--
nosy: +xiang.zhang

___
Python tracker 

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



[issue27953] math.tan has poor accuracy near pi/2 on OS X Tiger

2016-09-05 Thread Ned Deily

Ned Deily added the comment:

It would be nice to use the existing @requires_mac_ver() decorator to skip the 
tests (see Lib/test/support/__init__.py).

--

___
Python tracker 

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



[issue19500] Add client-side SSL session resumption

2016-09-05 Thread Christian Heimes

Christian Heimes added the comment:

Xiang, good point! I have added richcompare to SSLSession (based on session 
id). My branch on github implements a couple more fixes and improvements.

--

___
Python tracker 

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



[issue27923] PEP 467 -- Minor API improvements for binary sequences

2016-09-05 Thread Martin Panter

Martin Panter added the comment:

Elias, the patch URL is where I downloaded your patch from; see the list of 
patches at the top of this bug:

hg import --no-commit https://bugs.python.org/file44316/pep467.patch

Anyway in this email 
 it seems Ethan only 
wants to document that the old constructor call is deprecated, and not issue a 
DeprecationWarning.

--

___
Python tracker 

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



[issue27497] csv module: Add return value to DictWriter.writeheader

2016-09-05 Thread Berker Peksag

Berker Peksag added the comment:

Thanks! The patch lacks a test case (you can add it into Lib/test/test_csv.py) 
and a versionchanged notice in documentation (see 
http://cpython-devguide.readthedocs.io/en/latest/documenting.html#paragraph-level-markup
 for details.)

--
stage: needs patch -> patch review

___
Python tracker 

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



[issue27955] getrandom() syscall returning EPERM make the system unusable.

2016-09-05 Thread iwings

New submission from iwings:

On QNAP's Linux Station (lxc based virtual environment), getrandom() syscall 
returns EPERM not ENOSYS when it's not available.

(HOST) uname -a
Linux **-NAS 3.12.6 #1 SMP Thu Sep 1 00:57:44 CST 2016 x86_64 unknown

(HOST) /lib64/libc-2.19.so
GNU C Library (Ubuntu EGLIBC 2.19-0ubuntu6.6) stable release version 2.19, by 
Roland McGrath et al.

(LXC) uname -a
Linux ubuntu_1604 3.12.6 #1 SMP Thu Sep 1 00:57:44 CST 2016 x86_64 x86_64 
x86_64 GNU/Linux

(LXC) /lib/x86_64-linux-gnu/libc.so.6
GNU C Library (Ubuntu GLIBC 2.23-0ubuntu3) stable release version 2.23, by 
Roland McGrath et al.

(LXC)
long n = syscall(SYS_getrandom, buffer, sizeof(buffer), flags);
printf("SYS_getrandom: %ld (%d)\n", n, errno);
=> 
SYS_getrandom: -1 (1)

Proper fall back to /dev/urandom is not happening in this case, so most python 
app calling getrandom function fails. This includes apt, command-not-found etc.

--
files: random.diff
keywords: patch
messages: 274399
nosy: iwings
priority: normal
severity: normal
status: open
title: getrandom() syscall returning EPERM make the system unusable.
type: behavior
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file44371/random.diff

___
Python tracker 

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



[issue27497] csv module: Add return value to DictWriter.writeheader

2016-09-05 Thread Skip Montanaro

Skip Montanaro added the comment:

Also, a change in behavior has to be very carefully considered, even
though it passes all existing test cases (and presumably the one(s)
you'll add). The change may well only be acceptable for the next minor
release of 3.x.

On Mon, Sep 5, 2016 at 7:31 AM, Berker Peksag  wrote:
>
> Berker Peksag added the comment:
>
> Thanks! The patch lacks a test case (you can add it into 
> Lib/test/test_csv.py) and a versionchanged notice in documentation (see 
> http://cpython-devguide.readthedocs.io/en/latest/documenting.html#paragraph-level-markup
>  for details.)
>
> --
> stage: needs patch -> patch review
>
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue27955] getrandom() syscall returning EPERM make the system unusable.

2016-09-05 Thread Christian Heimes

Christian Heimes added the comment:

Did you open a bug with your vendor, too? QNAP is clearly violating Kernel 
APIs. getrandom() is not suppose to fail with EPERM. Valid errnos are EINVAL, 
EFAULT, EAGAIN and EINTR. http://man7.org/linux/man-pages/man2/getrandom.2.html

--
nosy: +christian.heimes, haypo
versions: +Python 2.7

___
Python tracker 

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



[issue27497] csv module: Add return value to DictWriter.writeheader

2016-09-05 Thread Ashish Nitin Patil

Ashish Nitin Patil added the comment:

Thank you Berker & Skip for your review & additional inputs.
I have added a (probably not so good) unittest for testing the newly added 
*return*.
I have also added the corresponding *versionchanged* info to the documentation 
as suggested by Berker.

Will keep these in mind while making a patch next time :)
Kindly let me know if there are any further changes required.

--
Added file: 
http://bugs.python.org/file44372/issue_27497_add_return_to_DictWriter_writeheader_v2.patch

___
Python tracker 

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



[issue23591] enum: Add Flags and IntFlags

2016-09-05 Thread Ethan Furman

Ethan Furman added the comment:

> I am quite aware about what's the intended use, but you can't just
> assume people will know about it.

Fair enough.

> In my view, you must do one of two things:
> 
> 1) (at least in documentation, and preferably in the code by raising 
> Exceptions at class definition time) forbid the use of Flags whose values are 
> not either a) powers of two, or b) bitwise or of some already declared values

The closest I would get to forbidding something would be to forbid non-integers 
as values -- and I'm not going to do that.  In general, Python doesn't take 
such steps (one notable exception being sum refusing to work with strings 
because it was such a common trap).

> -or-
> 
> 2) Specify and implement a robust algorithm for finding the "cover of
> bits" for a given numeric value. If the intended algorithm is really
> "pick the largest member value smaller than given value, subtract and
> repeat until 0 remains", then it should be said so in the
> documentation, and preferably some reasons given for the usage of that
> exact algorithm. ("it was easiest to implement" does not rank very high
> on my list.)

How about "it works for me"?  Seriously, if every bit is named then the exact 
repr used is irrelevant.  If you don't like the standard method then write your 
own __repr__ method, because that's what we're talking about -- not the actual 
value (which isn't going to be affected by the algorithm for finding the "cover 
of bits", but the display of the names).

> In other words, MyFlags(7) should either be illegal, or I should be
> able to interpret what it will be by reading the documentation. Leaving
> it unspecified is not acceptable IMO.

Thankfully, docs can still change during beta.

> (In case it isn't clear: I'm for option 1. I _don't_ intend to write
> MyFlags ever in Python. But if I happen to write it unintentionally
> (e.g. if I forget to declare 2), I would like Python to tell me I'm
> doing something wrong.)

We could certainly add a decorator that double-checks that, just like we have 
the `unique` decorator to ensure no duplicates in an Enum.  Any idea what to 
call it?  complete?  named?  allbits?

> (But if you really want option 2 for some reason, that's ok too. I'm
> just saying I would like it specified, with a rationale if it's not
> too much of a problem.)

(1) isn't going to happen, except possibly as a decorator.  If you would like 
to contribute code and/or docs for (2) and/or a decorator for (1) I'd be happy 
to review.

--

___
Python tracker 

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



[issue27955] getrandom() syscall returning EPERM make the system unusable.

2016-09-05 Thread iwings

iwings added the comment:

I did not report this to QNAP yet. but there's already a thread on their forum.
https://forum.qnap.com/viewtopic.php?t=124650 (registration required)

- ENOSYS is not listed in that man page, but it occurs.
- EPERM is not listed in that man page, but it can be returned if seccomp 
filters getrandom() syscall for example.

So preparing for these return values are meaningful not only for QNAP users.

--

___
Python tracker 

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



[issue27955] getrandom() syscall returning EPERM make the system unusable.

2016-09-05 Thread STINNER Victor

STINNER Victor added the comment:

I'm ok to fallback on read /dev/urandom device when getrandom() is
blocked by a stupid security policy :-)

--

___
Python tracker 

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



[issue27953] math.tan has poor accuracy near pi/2 on OS X Tiger

2016-09-05 Thread Mark Dickinson

Mark Dickinson added the comment:

Ned: that's for skipping an entire test method, right? Here a single test 
method tests a few hundred different special cases; we want to exclude only one 
of those cases.

--

___
Python tracker 

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



[issue27811] _PyGen_Finalize() should not fail with an exception

2016-09-05 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Thank you, Armin.

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue27811] _PyGen_Finalize() should not fail with an exception

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4d531711cbc7 by Benjamin Peterson in branch '3.5':
do not allow _PyGen_Finalize to fail (closes #27811)
https://hg.python.org/cpython/rev/4d531711cbc7

New changeset 1b14dbe9e98b by Benjamin Peterson in branch 'default':
merge 3.5 (closes #27811)
https://hg.python.org/cpython/rev/1b14dbe9e98b

--
nosy: +python-dev
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



[issue27812] PyFrameObject.f_gen can be left pointing to a dangling generator

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3e4452424f9b by Benjamin Peterson in branch '3.5':
clear out f_gen during generator finalization (closes #27812)
https://hg.python.org/cpython/rev/3e4452424f9b

New changeset 1d7a938b1e47 by Benjamin Peterson in branch 'default':
merge 3.5 (#27812)
https://hg.python.org/cpython/rev/1d7a938b1e47

--
nosy: +python-dev
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



[issue27953] math.tan has poor accuracy near pi/2 on OS X Tiger

2016-09-05 Thread Ned Deily

Ned Deily added the comment:

Mark, ah, yes, that's true.  So the tests would have to be separated out into a 
separate test case method.  So, not worth the effort.

--

___
Python tracker 

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



[issue27106] configparser.__all__ is incomplete

2016-09-05 Thread Jacek Kołodziej

Jacek Kołodziej added the comment:

Łukasz, Martin - I'm not sure how to proceed here, of course both ways out are 
reasonable. I'd be happy to provide (however small) patch for either one 
(adding Error to __all__ or just adding test for __all__). :)

My inner librarian would of course either push the Error to fully become part 
of public API or change its name to non-public _Error or something, but I'd 
much rather rely on you in this regard.

--

___
Python tracker 

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



[issue27779] Sync-up docstrings in C version of the the decimal module

2016-09-05 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee: skrah -> lisroach

___
Python tracker 

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



[issue27779] Sync-up docstrings in C version of the the decimal module

2016-09-05 Thread Stefan Krah

Stefan Krah added the comment:

Sorry, Raymond, this is my code area.  I said I'll review a patch.

--
assignee: lisroach -> skrah

___
Python tracker 

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



[issue27953] math.tan has poor accuracy near pi/2 on OS X Tiger

2016-09-05 Thread Mark Dickinson

Mark Dickinson added the comment:

Given enough time, it would make a lot of sense to adapt these tests to use the 
subtests machinery (though it's not immediately clear to me how to make 
@requires_mac_ver work with the subtests machinery). I'm afraid this issue was 
a bit of a quick fix to get the buildbots back to working state.

--

___
Python tracker 

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



[issue27407] prepare_ssl.py missing in PCBuild folder

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8955049a79aa by Zachary Ware in branch '2.7':
Issue #27407: Add prepare_ssl.py to 2.7
https://hg.python.org/cpython/rev/8955049a79aa

New changeset 32552131d8cb by Zachary Ware in branch '2.7':
Issue #27407: Make PCbuild/prepare_ssl.py Python 2 compatible
https://hg.python.org/cpython/rev/32552131d8cb

New changeset e0873191ad7d by Zachary Ware in branch '3.5':
Issue #27407: Make PCbuild/prepare_ssl.py Python 2 compatible
https://hg.python.org/cpython/rev/e0873191ad7d

New changeset 87f186cc6b80 by Zachary Ware in branch 'default':
Closes #27407: Merge with 3.5
https://hg.python.org/cpython/rev/87f186cc6b80

--
nosy: +python-dev
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



[issue27922] Make IDLE tests less flashy

2016-09-05 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Thanks for the good detective work.  The flash is always there, somewhere, 
though sometimes minimal.  SearchBase.open begins with

if not self.top:
self.create_widgets()
else:
self.top.deiconify()
self.top.tkraise()

The first and second open()s call the first and second branch.  I am puzzled 
that the first does not flash, as top is created 'normal' rather than 
'withdrawn'.  It also turn out that commenting out either of the two lines 
stops the flash.

The flash could be prevented by changing 'else' to 'else if not _utest' and 
adding '_utest' as a parameter and passing True, as I have elsewhere.  However, 
the purpose of the second open() is to take that branch for near 100% coverage, 
and I have previously only used _utest to avoid blocking .wait_window calls.

I think I am going to leave this alone for now, but please feel free to comment 
on other IDLE issues.

--

___
Python tracker 

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



[issue27921] f-strings: do not allow backslashes

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset df5b6d1c7ea8 by Benjamin Peterson in branch 'default':
fix skipping #27921 for windows
https://hg.python.org/cpython/rev/df5b6d1c7ea8

--

___
Python tracker 

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



[issue19500] Add client-side SSL session resumption

2016-09-05 Thread Christian Heimes

Christian Heimes added the comment:

Note to future me:
Don't forget to take care of X.509 client authentication. A server is allowed 
to bypass client cert validation when a SSL session is resumed. 
SSLContext.load_cert_chain() should invalidate session caches. (CVE-2016-5419 
https://curl.haxx.se/docs/adv_20160803A.html)

--

___
Python tracker 

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



[issue27112] tokenize.__all__ list is incomplete

2016-09-05 Thread Jacek Kołodziej

Changes by Jacek Kołodziej :


Added file: http://bugs.python.org/file44373/tokenize_all.v2.patch

___
Python tracker 

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



[issue27112] tokenize.__all__ list is incomplete

2016-09-05 Thread Jacek Kołodziej

Jacek Kołodziej added the comment:

> I would lean toward ensuring the test fails if someone adds a new 
> implementation detail without an underscore prefix. It is also good to be 
> explicit that the ISTERMINAL() etc functions are special cases.

Original patch meets these requirements. I've updated it with moving the 
test__all__ method to TestMisc class as suggested (tokenize_all.v2.patch).

I'm also attaching the alternative version (tokenize_all.v2.1.patch) that uses 
self.assertCountEqual instead of support.check__all__ and whitelisting as 
Serhiy suggested; this version of test doesn't meet the requirements above.

Yes, neither one challenge the tok_name (#25324) problem, I'm not really sure 
whether is should, though. I'll try to solve it with separate patch if I find 
some time.

--
Added file: http://bugs.python.org/file44374/tokenize_all.v2.1.patch

___
Python tracker 

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



[issue27830] Add _PyObject_FastCallKeywords(): avoid the creation of a temporary dictionary for keyword arguments

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 119af59911a0 by Victor Stinner in branch 'default':
Issue #27830: Remove unused _PyStack_AsDict()
https://hg.python.org/cpython/rev/119af59911a0

--

___
Python tracker 

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



[issue27956] optimize dict_traverse a bit

2016-09-05 Thread Benjamin Peterson

New submission from Benjamin Peterson:

dict_traverse shows up a lot on statistical profiles of Python programs. This 
is not surprising since Python programs have lots of dicts. There isn't a huge 
amount of room for optimization here, but we can avoid some memory indirection. 
This patch saves a few percent of time through this function in my measurements.

--
components: Interpreter Core
files: traverse.patch
keywords: patch
messages: 274420
nosy: benjamin.peterson
priority: normal
severity: normal
status: open
title: optimize dict_traverse a bit
type: performance
versions: Python 3.6
Added file: http://bugs.python.org/file44375/traverse.patch

___
Python tracker 

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



[issue27956] optimize dict_traverse a bit

2016-09-05 Thread INADA Naoki

INADA Naoki added the comment:

lgtm.
But http://bugs.python.org/issue27350 conflicts this.

--
nosy: +methane

___
Python tracker 

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



[issue27956] optimize dict_traverse a bit

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 027e421594b7 by Benjamin Peterson in branch 'default':
remove memory indirections in dict_traverse (closes #27956)
https://hg.python.org/cpython/rev/027e421594b7

--
nosy: +python-dev
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



[issue27883] Update sqlite version for Windows build

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 792e7a8dddb8 by Zachary Ware in branch 'default':
Issue #27883: Update sqlite to 3.14.1 on Windows
https://hg.python.org/cpython/rev/792e7a8dddb8

--
nosy: +python-dev

___
Python tracker 

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



[issue27883] Update sqlite version for Windows build

2016-09-05 Thread Zachary Ware

Zachary Ware added the comment:

Updated.  I don't know what extensions are or are not included, please open 
additional issue(s) if something should be added or removed.

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



[issue27944] two hotshot module issues

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset aefdfa167f4b by Benjamin Peterson in branch '2.7':
rewrite unpack_add_info, so it has less memory corruption bugs (closes #27944)
https://hg.python.org/cpython/rev/aefdfa167f4b

--
nosy: +python-dev
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



[issue27883] Update sqlite version for Windows build

2016-09-05 Thread Big Stone

Big Stone added the comment:

thanks! I suppose I have to wait official python3.6b1 for windows to tell you 
what you included.

--

___
Python tracker 

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



[issue19500] Add client-side SSL session resumption

2016-09-05 Thread Christian Heimes

Changes by Christian Heimes :


Added file: http://bugs.python.org/file44376/SSLSession-support-2.patch

___
Python tracker 

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



[issue27811] _PyGen_Finalize() should not fail with an exception

2016-09-05 Thread Armin Rigo

Armin Rigo added the comment:

You're welcome.  Unrelated, but I'm collecting similar issues in a file at 
http://bitbucket.org/pypy/extradoc/raw/extradoc/planning/py3.5/cpython-crashers.rst
 .  After reporting the first two, I stopped, and will report them all in bulk 
some time later, but you may be interested in fixing a couple more for the 
upcoming 3.6 release.

--

___
Python tracker 

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



[issue27957] minor typo in importlib docs

2016-09-05 Thread George London

New submission from George London:

An extra apostrophe made the grammar of a method description ambiguous. The 
attached patch removes the apostrophe.

--
assignee: docs@python
components: Documentation
files: mywork.patch
keywords: patch
messages: 274429
nosy: docs@python, gjlondon
priority: normal
severity: normal
status: open
title: minor typo in importlib docs
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file44377/mywork.patch

___
Python tracker 

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



[issue27957] minor typo in importlib docs

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 33702360acef by Benjamin Peterson in branch '3.5':
remove ungrammarical apostrophe (closes #27957)
https://hg.python.org/cpython/rev/33702360acef

New changeset f8d9569900a9 by Benjamin Peterson in branch 'default':
merge 3.5 (#27957)
https://hg.python.org/cpython/rev/f8d9569900a9

--
nosy: +python-dev
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



[issue27756] Add pyd icon for 3.6

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 29815771f2ac by Steve Dower in branch 'default':
Issue #27756: Adds new icons for Python files and processes on Windows. Designs 
by Cherry Wang.
https://hg.python.org/cpython/rev/29815771f2ac

--
nosy: +python-dev

___
Python tracker 

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



[issue27756] Add pyd icon for 3.6

2016-09-05 Thread Steve Dower

Steve Dower added the comment:

The new beautiful icons have been checked in!

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



[issue27748] Simplify test_winsound

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4c91651912d1 by Zachary Ware in branch '2.7':
Issue #27748: Simplify test_winsound.
https://hg.python.org/cpython/rev/4c91651912d1

New changeset 82467d0dbaea by Zachary Ware in branch '3.5':
Issue #27748: Simplify test_winsound.
https://hg.python.org/cpython/rev/82467d0dbaea

New changeset 27cbdd8cf67f by Zachary Ware in branch 'default':
Closes #27748: Merge with 3.5
https://hg.python.org/cpython/rev/27cbdd8cf67f

--
nosy: +python-dev
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



[issue27355] Strip out the last lingering vestiges of Windows CE support

2016-09-05 Thread Larry Hastings

Larry Hastings added the comment:

Refreshed the patch.  With a Misc/NEWS entry I think it's ready for checkin.  
WFM on Linux 64-bit with gcc; can I get people to try other platforms?

* os x (clang)
* win32
* win64

--
Added file: http://bugs.python.org/file44378/larry.dont.wince.2.patch.txt

___
Python tracker 

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



[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8fa615a2a896 by Zachary Ware in branch 'default':
Closes #11620: Fix support for SND_MEMORY in winsound.PlaySound.
https://hg.python.org/cpython/rev/8fa615a2a896

--
nosy: +python-dev
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



[issue27355] Strip out the last lingering vestiges of Windows CE support

2016-09-05 Thread Steve Dower

Steve Dower added the comment:

I'm building on Windows now.

--

___
Python tracker 

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



[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2016-09-05 Thread Zachary Ware

Zachary Ware added the comment:

Thanks for the original patch, Tim!

After discussion with Steve, we figured it's best to keep this to 3.6.

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



[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5c75b315152b by Christian Heimes in branch '3.5':
Issue #26470: Port ssl and hashlib module to OpenSSL 1.1.0.
https://hg.python.org/cpython/rev/5c75b315152b

New changeset bc5ba11973f5 by Christian Heimes in branch 'default':
Issue #26470: Port ssl and hashlib module to OpenSSL 1.1.0.
https://hg.python.org/cpython/rev/bc5ba11973f5

New changeset 14b611ddaabe by Christian Heimes in branch '2.7':
Issue #26470: Port ssl and hashlib module to OpenSSL 1.1.0.
https://hg.python.org/cpython/rev/14b611ddaabe

--
nosy: +python-dev

___
Python tracker 

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



[issue20366] SQLite FTS (full text search)

2016-09-05 Thread Zachary Ware

Zachary Ware added the comment:

The Mac installer includes FTS in its SQLite build, so we should match it on 
Windows.  I just updated the SQLite version for Windows, so now's a good time 
to do this.

--
resolution: wont fix -> 
stage: resolved -> needs patch
status: closed -> open
versions: +Python 3.6 -Python 3.4, Python 3.5

___
Python tracker 

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



[issue20366] SQLite FTS (full text search)

2016-09-05 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



[issue27756] Add pyd icon for 3.6

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 386aa9738c6b by Steve Dower in branch 'default':
Issue #27756: Updates installer icons to be the console and launcher icon 
instead of the setup icon
https://hg.python.org/cpython/rev/386aa9738c6b

--

___
Python tracker 

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



[issue24254] Make class definition namespace ordered by default

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 635fd3912d4d by Eric Snow in branch 'default':
Issue #24254: Preserve class attribute definition order.
https://hg.python.org/cpython/rev/635fd3912d4d

--
nosy: +python-dev

___
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-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 74ce062a0397 by Christian Heimes in branch 'default':
Issue #27744: Add AF_ALG (Linux Kernel crypto) to socket module.
https://hg.python.org/cpython/rev/74ce062a0397

--
nosy: +python-dev

___
Python tracker 

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



[issue27866] ssl: get list of enabled ciphers

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ca8d7cb55a8e by Christian Heimes in branch 'default':
Issue #27866: Add SSLContext.get_ciphers() method to get a list of all enabled 
ciphers.
https://hg.python.org/cpython/rev/ca8d7cb55a8e

--
nosy: +python-dev

___
Python tracker 

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



[issue27355] Strip out the last lingering vestiges of Windows CE support

2016-09-05 Thread Zachary Ware

Zachary Ware added the comment:

LGTM on Win32, Win64, and OSX.

--

___
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-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 52404f9596b5 by Christian Heimes in branch 'default':
Issue #27744: correct comment and markup
https://hg.python.org/cpython/rev/52404f9596b5

--

___
Python tracker 

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



[issue27928] Add hashlib.scrypt

2016-09-05 Thread Christian Heimes

Changes by Christian Heimes :


Removed file: http://bugs.python.org/file44344/Add-hashlib.scrypt-2.patch

___
Python tracker 

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



[issue27928] Add hashlib.scrypt

2016-09-05 Thread Christian Heimes

Changes by Christian Heimes :


Removed file: http://bugs.python.org/file44326/Add-hashlib.scrypt.patch

___
Python tracker 

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



[issue27928] Add hashlib.scrypt

2016-09-05 Thread Christian Heimes

Changes by Christian Heimes :


Removed file: http://bugs.python.org/file44351/Add-hashlib.scrypt-3.patch

___
Python tracker 

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



[issue27355] Strip out the last lingering vestiges of Windows CE support

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7a2eccee823b by Larry Hastings in branch 'default':
Issue #27355: Removed support for Windows CE.  It was never finished,
https://hg.python.org/cpython/rev/7a2eccee823b

--
nosy: +python-dev

___
Python tracker 

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



[issue27355] Strip out the last lingering vestiges of Windows CE support

2016-09-05 Thread Larry Hastings

Larry Hastings added the comment:

Committed.  Bye bye Windows CE!

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



[issue27958] 'zlib compression' not found in set(['RLE', 'ZLIB', None])

2016-09-05 Thread Christian Heimes

New submission from Christian Heimes:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%202.7/builds/1397/steps/test/logs/stdio
 fails:

==
FAIL: test_compression (test.test_ssl.ThreadedTests)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/2.7.koobs-freebsd9/build/Lib/test/test_ssl.py", line 
2875, in test_compression
self.assertIn(stats['compression'], { None, 'ZLIB', 'RLE' })
AssertionError: 'zlib compression' not found in set(['RLE', 'ZLIB', None])

It's probably fine to add 'zlib compression' to the list of accepted 
compression names.

--
assignee: christian.heimes
components: Tests
messages: 274448
nosy: christian.heimes
priority: normal
severity: normal
stage: needs patch
status: open
title: 'zlib compression' not found in set(['RLE', 'ZLIB', None])
type: behavior
versions: 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



[issue27928] Add hashlib.scrypt

2016-09-05 Thread Christian Heimes

Changes by Christian Heimes :


Added file: http://bugs.python.org/file44380/hashlib.scrypt.patch

___
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-09-05 Thread Steve Dower

Steve Dower added the comment:

Updated patch. This implements everything we've been discussing on python-dev

--
Added file: http://bugs.python.org/file44379/1602_3.patch

___
Python tracker 

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



[issue24254] Make class definition namespace ordered by default

2016-09-05 Thread Eric Snow

Changes by Eric Snow :


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



[issue27748] Simplify test_winsound

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6137d0ed0a15 by Zachary Ware in branch '2.7':
Issue #27748: strengthen test_alias_nofallback
https://hg.python.org/cpython/rev/6137d0ed0a15

New changeset f845e24d794e by Zachary Ware in branch '3.5':
Issue #27748: strengthen test_alias_nofallback
https://hg.python.org/cpython/rev/f845e24d794e

New changeset 5e8b865ffedd by Zachary Ware in branch 'default':
Issue #27748: Merge with 3.5
https://hg.python.org/cpython/rev/5e8b865ffedd

--

___
Python tracker 

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



[issue25387] sound_msgbeep doesn't check the return value of MessageBeep

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4e5b3dc049cc by Zachary Ware in branch 'default':
Issue #25387: Check return value of winsound.MessageBeep
https://hg.python.org/cpython/rev/4e5b3dc049cc

--
nosy: +python-dev

___
Python tracker 

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



[issue25387] sound_msgbeep doesn't check the return value of MessageBeep

2016-09-05 Thread Zachary Ware

Zachary Ware added the comment:

I decided not to backport.  If anyone else would like to, I won't stand in 
their way.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



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

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ee32af890e27 by Christian Heimes in branch 'default':
Issue 27744: Check for AF_ALG support in Kernel
https://hg.python.org/cpython/rev/ee32af890e27

--

___
Python tracker 

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



[issue27106] configparser.__all__ is incomplete

2016-09-05 Thread Łukasz Langa

Łukasz Langa added the comment:

I'm still not convinced this change is *useful*. The list of incompatibilities 
in Python 3.6 in whatsnew is going to be used retrospectively by people already 
affected by a production issue, googling for an explanation as to what went 
wrong.

I like the idea of adding a unit test that clarifies the omission is deliberate 
at this point.

--

___
Python tracker 

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



[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 99818330b4c0 by Victor Stinner in branch 'default':
Issue #27938: Add a fast-path for us-ascii encoding
https://hg.python.org/cpython/rev/99818330b4c0

--
nosy: +python-dev

___
Python tracker 

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



[issue27915] Use 'ascii' instead of 'us-ascii' to bypass lookup machinery

2016-09-05 Thread STINNER Victor

STINNER Victor added the comment:

Since "us-ascii" got a fast-path thanks to the issue #27938, this patch is not 
needed anymore.

--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2016-09-05 Thread STINNER Victor

STINNER Victor added the comment:

> See also get_standard_encoding() in Python/codecs.c. I suppose it is faster.

I understand that PyCodec_SurrogatePassErrors() is already called with a 
normalized encoding name.

With my enhanced _Py_normalize_encoding(), strange syntaxes like " utf 8 " also 
take the fast path.


> UTF-32 is rarely used as external encoding, but ...

Ok, I used the same design than get_standard_encoding() to match the "utf" 
prefix, so having a fast-path for UTF-16 and UTF-32 doesn't add new strcmp() 
for "latin9".

I pushed my change, so I close the issue.

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



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

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4ebe3ade6922 by Christian Heimes in branch 'default':
Issue 27744: AES-CBC and DRBG need Kernel 3.19+
https://hg.python.org/cpython/rev/4ebe3ade6922

--

___
Python tracker 

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



[issue27748] Simplify test_winsound

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fb74947843eb by Zachary Ware in branch '2.7':
Issue #27748: Backed out changeset 6137d0ed0a15
https://hg.python.org/cpython/rev/fb74947843eb

New changeset e85ce70b73b3 by Zachary Ware in branch '3.5':
Issue #27748: Backed out changeset f845e24d794e
https://hg.python.org/cpython/rev/e85ce70b73b3

New changeset 29300ed6dffe by Zachary Ware in branch 'default':
Issue #27748: Merge with 3.5
https://hg.python.org/cpython/rev/29300ed6dffe

--

___
Python tracker 

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



[issue27958] 'zlib compression' not found in set(['RLE', 'ZLIB', None])

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5566732c8ac5 by Christian Heimes in branch '3.5':
Issue #26470: Use short name rather than name for compression name to fix 
#27958.
https://hg.python.org/cpython/rev/5566732c8ac5

New changeset 2593ed9a6a62 by Christian Heimes in branch '2.7':
Issue #26470: Use short name rather than name for compression name to fix 
#27958.
https://hg.python.org/cpython/rev/2593ed9a6a62

--
nosy: +python-dev

___
Python tracker 

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



[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5566732c8ac5 by Christian Heimes in branch '3.5':
Issue #26470: Use short name rather than name for compression name to fix 
#27958.
https://hg.python.org/cpython/rev/5566732c8ac5

New changeset 2593ed9a6a62 by Christian Heimes in branch '2.7':
Issue #26470: Use short name rather than name for compression name to fix 
#27958.
https://hg.python.org/cpython/rev/2593ed9a6a62

--

___
Python tracker 

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



[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d92f26a53b70 by Christian Heimes in branch 'default':
Issue #26470: Use short name rather than name for compression name to fix 
#27958.
https://hg.python.org/cpython/rev/d92f26a53b70

--

___
Python tracker 

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



[issue20842] pkgutil docs should reference glossary terms not PEP 302

2016-09-05 Thread Senthil Kumaran

Senthil Kumaran added the comment:

I agree with the comment made by Oren. Not all instances of finder should be 
referenced as generic finder. Some classes and functions are are still PEP 302 
specific finder.

In the commit, 3987667bf98f Nick Coghlan modified the following functions to to 
use importlib module, thus serving the PEP 302 bind. So these can refer to 
glossary entry for finder. The documentation has been updated with version 
changed information.

* get_importer (by the underlying change of using only sys.path_importer_cache 
and removing the use of ImpImporter)
* iter_importers (by using importlib.import_module)

The glossary entry for both finder and loader has been updated to include both 
PEP 302 finder, and with PEP 420 and PEP 451.

With these changes already in place, I updated the patch to reflect the current 
state. 

I am proceed with the commit as this is a non-controversial change. If there 
are comments, please share and I will address them.

--
nosy: +orsenthil
Added file: http://bugs.python.org/file44381/issue20842-v3.patch

___
Python tracker 

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



[issue27958] 'zlib compression' not found in set(['RLE', 'ZLIB', None])

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d92f26a53b70 by Christian Heimes in branch 'default':
Issue #26470: Use short name rather than name for compression name to fix 
#27958.
https://hg.python.org/cpython/rev/d92f26a53b70

--

___
Python tracker 

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



[issue20366] SQLite FTS (full text search)

2016-09-05 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d52f10a0f10d by Zachary Ware in branch 'default':
Closes #20366: Build full text search support into SQLite on Windows
https://hg.python.org/cpython/rev/d52f10a0f10d

--
nosy: +python-dev
resolution:  -> fixed
stage: needs patch -> 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



[issue27179] subprocess uses wrong encoding on Windows

2016-09-05 Thread Steve Dower

Steve Dower added the comment:

Chatting about this with Victor we've decided to close this as a duplicate of 
issue6135 and continue the discussion there, and also focus mainly on exposing 
the parameter rather than trying to guess the correct encoding. I'll post more 
details on issue6135.

--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> subprocess seems to use local encoding and give no choice

___
Python tracker 

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



[issue6135] subprocess seems to use local encoding and give no choice

2016-09-05 Thread Steve Dower

Steve Dower added the comment:

I'll prepare a patch for the following:
* add encoding and errors parameters to subprocess functions
* add 'oem' encoding to make it easy to choose (but don't try and guess when it 
is used)

EITHER
* allow string or 2-tuple (stdin, stdout/err) or 3-tuple (stdin, stdout, 
stderr) for both encoding and errors
OR
* only allow single specified encoding/errors
* add stdin_opener/stdout_opener/stderr_opener parameters to produce the 
text-based reader

Any thoughts?

--
assignee:  -> steve.dower
nosy: +steve.dower

___
Python tracker 

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



[issue6135] subprocess seems to use local encoding and give no choice

2016-09-05 Thread STINNER Victor

STINNER Victor added the comment:

> * add 'oem' encoding to make it easy to choose (but don't try and guess when 
> it is used)

I suggest to open a separated issue for that. By the way, you might also add 
"ansi"? See also the aliasmbcs() function of the site module.

Note: I never liked that aliasmbcs() is implemented in Python and is "optional" 
(not done with using python3 -S).

--

___
Python tracker 

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



[issue6135] subprocess seems to use local encoding and give no choice

2016-09-05 Thread Steve Dower

Steve Dower added the comment:

'mbcs' is exactly equivalent to what 'ansi' would be, so that's just a matter 
of knowing the name. I'm okay with adding an alias for it though.

--

___
Python tracker 

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



[issue27959] Add 'oem' encoding

2016-09-05 Thread Steve Dower

New submission from Steve Dower:

Currently the ANSI encoding is available on Windows as 'mbcs', however the OEM 
encoding (sometimes used by console-based applications) is not easily available.

The implementation is identical to PyUnicode_DecodeMBCS[Stateful], simply 
passing CP_OEM instead of CP_ACP.

--
assignee: steve.dower
components: Windows
messages: 274470
nosy: haypo, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Add 'oem' encoding
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



[issue27959] Add 'oem' encoding

2016-09-05 Thread Steve Dower

Steve Dower added the comment:

While I'm here, should also move `aliasmbcs` from site.py into initialization - 
no reason for this behaviour to depend on importing site.

--

___
Python tracker 

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



[issue27960] Distutils tests are broken in 3.4

2016-09-05 Thread Larry Hastings

New submission from Larry Hastings:

3.4.5 shipped with a working test suite.  Since the release of 3.4.5 somebody 
broke test_distutils in the 3.4 branch.  It needs to be fixed.

jason.coombs: AFAICT you were the last person to touch it.  Are you the one who 
broke it?


 % ./python -m test test_distutils
[1/1] test_distutils
test test_distutils crashed -- Traceback (most recent call last):
  File "/home/larry/src/python/broke34/Lib/test/regrtest.py", line 1279, in 
runtest_inner
test_runner()
  File "/home/larry/src/python/broke34/Lib/test/test_distutils.py", line 13, in 
test_main
test.support.run_unittest(distutils.tests.test_suite())
  File "/home/larry/src/python/broke34/Lib/distutils/tests/__init__.py", line 
31, in test_suite
suite.addTest(module.test_suite())
AttributeError: 'module' object has no attribute 'test_suite'

1 test failed:
test_distutils

--
assignee: jason.coombs
components: Tests
keywords: 3.4regression
messages: 274472
nosy: jason.coombs, larry, zach.ware
priority: release blocker
severity: normal
stage: needs patch
status: open
title: Distutils tests are broken in 3.4
type: crash
versions: Python 3.4

___
Python tracker 

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



[issue27961] remove support for platforms without "long long"

2016-09-05 Thread Benjamin Peterson

New submission from Benjamin Peterson:

Neither Python 2.7 nor 3.3+ compile without HAVE_LONG_LONG, so effectively this 
is already completely unsupported. Let's completely dump it in 3.6.

--
components: Interpreter Core
messages: 274473
nosy: benjamin.peterson
priority: normal
severity: normal
status: open
title: remove support for platforms without "long long"
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



[issue20842] pkgutil docs should reference glossary terms not PEP 302

2016-09-05 Thread Senthil Kumaran

Senthil Kumaran added the comment:

For 3.5 version of patch, we have bring in some additional changes from 
issue26896 which properly clarified finder from importer. These changes are not 
required in the default branch.

--

___
Python tracker 

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



[issue27364] Deprecate invalid escape sequences in str/bytes

2016-09-05 Thread Emanuel Barry

Emanuel Barry added the comment:

Updated and rebased patch. There's a few file tweaks here and there to stay up 
to date, otherwise it's mostly the same.

Martin, it may look like I've ignored your comments, but I'm trying to keep the 
patches as simple as possible, and so I don't want to go further than to make 
strings into raw strings (also the alignment issue you pointed out). I'd rather 
have the other issues addressed in another issue, as I want to get this merged 
in time for the feature freeze. The other issues (some which were already 
present) can be taken care of during the beta phase.

--
title: Deprecate invalid unicode escape sequences -> Deprecate invalid escape 
sequences in str/bytes
Added file: http://bugs.python.org/file44382/invalid_stdlib_escapes_3.patch

___
Python tracker 

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



[issue27137] Python implementation of `functools.partial` is not a class

2016-09-05 Thread Emanuel Barry

Emanuel Barry added the comment:

We're one week from the feature freeze, seems like a good time to merge this :)

--

___
Python tracker 

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



[issue20842] pkgutil docs should reference glossary terms not PEP 302

2016-09-05 Thread Senthil Kumaran

Senthil Kumaran added the comment:

This is 3.3 version of patch attached.

--
Added file: http://bugs.python.org/file44383/issue20842-3.3-v5.patch

___
Python tracker 

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



[issue20842] pkgutil docs should reference glossary terms not PEP 302

2016-09-05 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Change committed.

- 3.5 * 103098:ecbad01262c8
- default * 103099:ee58ece83391

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

___
Python tracker 

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



[issue26896] mix-up with the terms 'importer', 'finder', 'loader' in the import system and related code

2016-09-05 Thread Senthil Kumaran

Senthil Kumaran added the comment:

The documentation changes made as part of this issue were applicable to 3.5 
branch too. 

I had to touch the docs in this area as part of issue20842, and ended up with 
two patches one for 3.5 and another 3.6.

I think, it is a good idea to backport the change to 3.5 branch.

--
nosy: +orsenthil

___
Python tracker 

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



[issue27961] remove support for platforms without "long long"

2016-09-05 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
keywords: +patch
stage:  -> patch review
Added file: http://bugs.python.org/file44384/longlong.patch

___
Python tracker 

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



[issue27940] xml.etree: Avoid XML declaration for the "ascii" encoding

2016-09-05 Thread STINNER Victor

STINNER Victor added the comment:

New patch:

* Avoid codecs.lookup() for method != "xml"
* More unit tests

--
Added file: http://bugs.python.org/file44385/etree_xml_declaration-2.patch

___
Python tracker 

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



[issue6135] subprocess seems to use local encoding and give no choice

2016-09-05 Thread Steve Dower

Steve Dower added the comment:

Initial patch attached - tests to follow.

--
Added file: http://bugs.python.org/file44386/6135_1.patch

___
Python tracker 

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



[issue27959] Add 'oem' encoding

2016-09-05 Thread Steve Dower

Steve Dower added the comment:

Initial patch attached - tests to follow.

--
keywords: +patch
Added file: http://bugs.python.org/file44387/27959_1.patch

___
Python tracker 

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



  1   2   >