[issue26032] Use scandir() to speed up pathlib globbing

2016-01-31 Thread Ben Hoyt
Ben Hoyt added the comment: Guido, I've made some tweaks and improvements to the DirEntry docs here: http://bugs.python.org/issue26248 -- the idea is to fix the issues you mentioned to clarify when system calls are required with symlinks, mentioning that the results are cached separately for

[issue26248] Improve scandir DirEntry docs, especially re symlinks and caching

2016-01-31 Thread STINNER Victor
STINNER Victor added the comment: The change looks good to me. I pushed it to 3.5 & 3.6. It will be online in a few hours at: https://docs.python.org/dev/library/os.html#os.DirEntry I keep the issue open a few days to see if some others have other suggestions. --

[issue26249] Change PyMem_Malloc to use PyObject_Malloc allocator?

2016-01-31 Thread STINNER Victor
New submission from STINNER Victor: The issue #23601 showed speedup for the dict type by replacing PyMem_Malloc() with PyObject_Malloc() in dictobject.c. When I worked on the PEP 445, it was discussed to use the Python fast memory allocator for small memory allocations (<= 512 bytes), but I

[issue26252] Add an example to importlib docs on setting up an importer

2016-01-31 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___

[issue26252] Add an example to importlib docs on setting up an importer

2016-01-31 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___

[issue26173] test_ssl.bad_cert_test() exception handling

2016-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d068205b580 by Martin Panter in branch '3.5': Issue #26173: Separate bad cert file tests and client rejection test https://hg.python.org/cpython/rev/6d068205b580 New changeset 3b211ee66b82 by Martin Panter in branch 'default': Issue #26173: Merge

[issue23601] use small object allocator for dict key storage

2016-01-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch and for your patience. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue26249] Change PyMem_Malloc to use PyObject_Malloc allocator?

2016-01-31 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +jtaylor ___ Python tracker ___ ___

[issue23601] use small object allocator for dict key storage

2016-01-31 Thread STINNER Victor
STINNER Victor added the comment: Nice change. I opened the issue #26249 to continue the investigation. -- nosy: +haypo ___ Python tracker ___

[issue26252] Add an example to importlib docs on setting up an importer

2016-01-31 Thread Donald Stufft
Changes by Donald Stufft : -- nosy: +dstufft ___ Python tracker ___ ___ Python-bugs-list

[issue23601] use small object allocator for dict key storage

2016-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 425fec4a79c7 by Raymond Hettinger in branch 'default': Issue #23601: Use small object allocator for dict key objects https://hg.python.org/cpython/rev/425fec4a79c7 -- nosy: +python-dev ___ Python

[issue26221] asynco run_in_executor swallows StopIteration

2016-01-31 Thread Ian Kelly
Ian Kelly added the comment: The place I'd expect to find it is in https://docs.python.org/3/library/asyncio-task.html#coroutines, in the list of "things a coroutine can do". The first two bullets in the list say that any exceptions raised will be propagated. Maybe there should be a note

[issue26244] zlib.compressobj level default value documentation

2016-01-31 Thread Aviv Palivoda
Aviv Palivoda added the comment: I think that we can leave the level=-1 as the default in the documentation. What should be added is what Z_DEFAULT_COMPRESSION means. I tried to be as close as possible to the zlib module documentation. -- Added file:

[issue26045] Improve error message for http.client when posting unicode string

2016-01-31 Thread Martin Panter
Martin Panter added the comment: Here is my cut down version of Guido’s patch. Now it only adds the message when someone passes a text string as the HTTPConnection.request(body=...) parameter: >>> c.request("POST", "", body="Celebrate \U0001F389") Traceback (most recent call last): File "",

[issue26250] no document for sqlite3.Cursor.connection

2016-01-31 Thread hao Qing
New submission from hao Qing: it does have the Cursor.connection member in the pydoc result. $ pydoc sqlite3.Cursor.connection Help on member descriptor sqlite3.Cursor.connection in sqlite3.Cursor: sqlite3.Cursor.connection lines 1-3/3 (END) but there is no document about

[issue26252] Add an example to importlib docs on setting up an importer

2016-01-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue26249] Change PyMem_Malloc to use PyObject_Malloc allocator?

2016-01-31 Thread STINNER Victor
STINNER Victor added the comment: Ok, to avoid confusion, I opened an issue specific to Windows for its "Low-fragmentation Heap": issue #26251. Other issues related to memory allocators. Merged: - issue #21233: Add *Calloc functions to CPython memory allocation API (extension of the PEP

[issue26251] Use "Low-fragmentation Heap" memory allocator on Windows

2016-01-31 Thread STINNER Victor
STINNER Victor added the comment: The issue #19246 "high fragmentation of the memory heap on Windows" was rejected but discussed the Windows Low Fragmented Heap. -- ___ Python tracker

[issue26186] LazyLoader rejecting use of SourceFileLoader

2016-01-31 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___

[issue26244] zlib.compressobj level default value documentation

2016-01-31 Thread Martin Panter
Martin Panter added the comment: This version looks great to me. -- versions: +Python 2.7 ___ Python tracker ___

[issue26248] Improve scandir DirEntry docs, especially re symlinks and caching

2016-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset f2c68cb17e31 by Victor Stinner in branch '3.5': Enhance os.scandir() doc https://hg.python.org/cpython/rev/f2c68cb17e31 -- nosy: +python-dev ___ Python tracker

[issue22121] IDLE should start with HOME as the initial working directory

2016-01-31 Thread Jeff Allen
Jeff Allen added the comment: I'm also interested in a smooth experience for beginners. I have a factual observation with respect to Terry's comment: '''Windows icons have a Shortcut tab with a Start-in field. We should like to put %USERPROFILE% there, but this does not work -- msg253393.'''

[issue26251] Use "Low-fragmentation Heap" memory allocator on Windows

2016-01-31 Thread STINNER Victor
STINNER Victor added the comment: "Low-fragmentation Heap": https://msdn.microsoft.com/en-us/library/windows/desktop/aa366750%28v=vs.85%29.aspx -- ___ Python tracker

[issue26119] Windows Installer can sometimes silently fail pip stage

2016-01-31 Thread Paul Hammant
Paul Hammant added the comment: Chronalog for today, below. Status - can reproduce at will, can't produce %TEMP% files was for - there aren't any. 0. I deleted all Python prefixed files from %TEMP% 1. I uninstalled Python 3.4 via it's windows installer. It progressed to completion. I noted

[issue26252] Add an example to importlib docs on setting up an importer

2016-01-31 Thread Brett Cannon
New submission from Brett Cannon: This past week a lot of people have asked me about how to set up an importer. It's enough to warrant adding an example in the new Examples section of the importlib docs to explain how to do this using the pre-existing classes in importlib.machinery for

[issue26251] Use "Low-fragmentation Heap" memory allocator on Windows

2016-01-31 Thread STINNER Victor
New submission from STINNER Victor: Python has a memory allocator optimized for allocations <= 512 bytes: PyObject_Malloc(). It was discussed to replace it by the native "Low-fragmentation Heap" memory allocator on Windows. I'm not aware of anyone who tried that. I would nice to try,

[issue17446] doctest test finder doesnt find line numbers of properties

2016-01-31 Thread Michael Cuthbert
Michael Cuthbert added the comment: this is my first contribution to Python core so I really have no idea how to do this, but I have found a solution (works in Py3.4, 2.7): in doctest.py after line 1087 ("lineno = getattr(obj, 'co_firstlineno', None)-1") add these lines: if lineno

[issue26119] Windows Installer can sometimes silently fail pip stage

2016-01-31 Thread Steve Dower
Steve Dower added the comment: It's not clear which version of Python you are having trouble with, but it apparently isn't 3.5. The PYTHONHOME variable is never set or modified by our installers, but some earlier versions may be affected by it. We recommend never setting environment

[issue24266] raw_input + readline: Ctrl+C during search breaks readline

2016-01-31 Thread Thomas Caswell
Thomas Caswell added the comment: For reference https://github.com/ludwigschwardt/python-gnureadline/pull/47 is what a back-port of the functionality looks like. -- ___ Python tracker

[issue26254] ssl server doesn't work with ECC certificates

2016-01-31 Thread Benjamin Peterson
Benjamin Peterson added the comment: ECC certs using named curves have to have the OPENSSL_EC_NAMED_CURVE flag set. Pass -pkeyopt ec_param_enc:named_curve to the openssl req. -- nosy: +benjamin.peterson resolution: -> not a bug status: open -> closed

[issue26173] test_ssl.bad_cert_test() exception handling

2016-01-31 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue26045] Improve error message for http.client when posting unicode string

2016-01-31 Thread Guido van Rossum
Guido van Rossum added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24266] raw_input + readline: Ctrl+C during search breaks readline

2016-01-31 Thread Thomas Caswell
Thomas Caswell added the comment: I do not think that readline-cancel.patch is sufficient. The clean up function that readline uses internally (http://git.savannah.gnu.org/cgit/readline.git/tree/isearch.c#n720 ) also cleans up the context that used by isearch. The functions to cleanup the

[issue26252] Add an example to importlib docs on setting up an importer

2016-01-31 Thread Eric Fahlgren
Changes by Eric Fahlgren : -- nosy: +eric.fahlgren ___ Python tracker ___ ___

[issue26253] tarfile in stream mode always set zlib compression level to 9

2016-01-31 Thread Patrik Dufresne
New submission from Patrik Dufresne: When using tarfile.open(mode='w|gz'), the compression level is hard-coded to 9. Seed _Stream._init_write_gz(): self.zlib.compressobj(9, 1. In regards to zlib, I would start by replacing the value of 9 by zlib.Z_DEFAULT_COMPRESSION. This is the default

[issue17446] doctest test finder doesnt find line numbers of properties

2016-01-31 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue17446] doctest test finder doesnt find line numbers of properties

2016-01-31 Thread Timo Furrer
Timo Furrer added the comment: I took the ideas from @Michael.Cuthbert and wrote a proper test. It's my first patch so I hope everything's fine with it. If not I'm happy for feedback :) -- keywords: +patch nosy: +Timo Furrer Added file:

[issue26254] ssl server doesn't work with ECC certificates

2016-01-31 Thread Evgeny Kapun
New submission from Evgeny Kapun: I tried to use ssl module to create a server with a certificate that uses an ECC key. However, this didn't work. Here is how to reproduce this: First, generate a key and a certificate: $ openssl req -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -x509

[issue26173] test_ssl.bad_cert_test() exception handling

2016-01-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6f7b2b7a029a by Martin Panter in branch '2.7': Issue #26173: Separate bad cert file tests and client rejection test https://hg.python.org/cpython/rev/6f7b2b7a029a -- ___ Python tracker

[issue26238] httplib use wrong hostname in https request with SNI support

2016-01-31 Thread Martin Panter
Martin Panter added the comment: The code fragment you posted looks like it is from HTTPSConnection.connect() . But _get_hostport() is already called to set self.host in __init__(), and to set self._tunnel_host in set_tunnel().

[issue26253] tarfile in stream mode always set zlib compression level to 9

2016-01-31 Thread Martin Panter
Martin Panter added the comment: It looks like the default has been hard-coded to 9 ever since tarfile was added to Python. The gzip module is also hard-coded to 9 since it was added. If tarfile is changed, maybe gzip should too. Why would you want to use zlib’s default (apparently 6)? Memory

[issue22923] No prompt for "display all X possibilities" on completion-enabled input()

2016-01-31 Thread Yoha
Changes by Yoha : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue26245] AttributeError (GL_READ_WRITE) when importing OpenGL.GL

2016-01-31 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, Yoha. Your third example shows that this is either an error in PyOpenGL or there is something wrong in your PyOpenGL installation. Please report this to their issue tracker. -- nosy: +berker.peksag resolution: -> third party

[issue26173] test_ssl.bad_cert_test() exception handling

2016-01-31 Thread Berker Peksag
Berker Peksag added the comment: Looks good to me. Thanks Martin. -- nosy: +berker.peksag stage: patch review -> commit review ___ Python tracker ___

[issue26246] Code output toggle button uses removed jQuery method

2016-01-31 Thread Liang Bo Wang
New submission from Liang Bo Wang: The code output toggle button (the `>>>` button on the top right) has been disappeared and not functional on the current online documentation (both 3.4+ and 2.7). For example, see any doc page that has interpreter outputs:

[issue26245] AttributeError (GL_READ_WRITE) when importing OpenGL.GL

2016-01-31 Thread Yoha
New submission from Yoha: Importing `OpenGL.GL` fails on Python 3.5: ``` Python 3.5.1+ (default, Jan 13 2016, 15:09:18) [GCC 5.3.1 20160101] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import OpenGL.GL Traceback (most recent call last): File "", line

[issue26247] Document Chrome/Chromium for python2.7

2016-01-31 Thread Ismail s
New submission from Ismail s: The table of browser types in https://docs.python.org/2.7/library/webbrowser.html?highlight=webbrowser#webbrowser.register does not say that Google Chrome/Chromium is available on python2.7, even though it is

[issue26248] Improve scandir DirEntry docs, especially re symlinks and caching

2016-01-31 Thread Ben Hoyt
New submission from Ben Hoyt: Per Guido's comment about DirEntry documentation on Issue 26032, especially http://bugs.python.org/issue26032#msg257665, it'd be good to improve the docs of the scandir DirEntry methods with regard to symlinks and caching. Attaching my stab at a documentation

[issue26247] Document Chrome/Chromium for python2.7

2016-01-31 Thread SilentGhost
SilentGhost added the comment: It's due to issue 17536 and particularly 5a1429e9b621 I presume doko would be happy to follow up on that. -- nosy: +SilentGhost, doko ___ Python tracker