[issue27827] pathlib is_reserved fails for some reserved paths on Windows

2016-08-26 Thread Eryk Sun
Eryk Sun added the comment: Also, "CONIN$" and "CONOUT$" need to be added to the list of reserved names. Prior to Windows 8 these two names are reserved only for the current directory, which for the most part also applies to "CON". For Windows 8+, the redesign to use a real console device mea

[issue27761] Private _nth_root function loses accuracy

2016-08-26 Thread Tim Peters
Tim Peters added the comment: Serhiy, I don't know what you're thinking there, and the code doesn't make much sense to me. For example, consider n=2. Then m == n, so you accept the initial `g = x**(1.0/n)` guess. But, as I said, there are cases where that doesn't give the best result, while

[issue27761] Private _nth_root function loses accuracy

2016-08-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What if use pow() with exactly represented degree in approximating step? def rootn(x, n): g = x**(1.0/n) m = 1 << (n-1).bit_length() if n != m: g = (x*g**(m-n))**(1.0/m) return g Maybe it needs several iteration

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-08-26 Thread Martin Panter
Changes by Martin Panter : Added file: https://bugs.python.org/file44237/Python3.6.ctypes.160823.patch ___ Python tracker ___ ___ Python-bugs

[issue12319] [http.client] HTTPConnection.request not support "chunked" Transfer-Encoding to send data

2016-08-26 Thread Martin Panter
Martin Panter added the comment: I committed my patch, so now file bodies are chunk-encoded by default. The Windows buildbots pass the relevant tests again. This does mean that old code that uploaded a file to a HTTP-1.0-only server, and relied on Python automatically setting Content-Length, w

[issue19884] Importing readline produces erroneous output

2016-08-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 55ec5fdc3099 by Martin Panter in branch '2.7': Issue #19884: Avoid spurious output on OS X with Gnu Readline https://hg.python.org/cpython/rev/55ec5fdc3099 New changeset 782d9b5d2e90 by Martin Panter in branch '3.5': Issue #19884: Avoid spurious out

[issue25825] AIX shared library extension modules installation broken

2016-08-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset ca1ddd365f5f by Martin Panter in branch '3.5': Issue #25825: Fix references to $(LIBPL) installation path on AIX https://hg.python.org/cpython/rev/ca1ddd365f5f New changeset 5a05c0eeefc3 by Martin Panter in branch 'default': Issue #25825: Merge $(LI

[issue27803] ctypes automatic byref failing on custom classes attributes

2016-08-26 Thread Eryk Sun
Eryk Sun added the comment: Terry, the provided example is incomplete and doesn't make sense as it stands. For better or worse, windll.dllname attempts to load WinDLL(dllname) and cache the resulting library on the windll loader. (The library in turn caches function pointers, which means this

[issue26027] Support Path objects in the posix module

2016-08-26 Thread Martin Panter
Martin Panter added the comment: One more thing, ;) the Windows buildbots are failing to removing a temporary file: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/8173/steps/test/logs/stdio == ERRO

[issue27761] Private _nth_root function loses accuracy

2016-08-26 Thread Tim Peters
Tim Peters added the comment: I don't care about correct rounding here, but it is, e.g., a bit embarrassing that >>> 64**(1/3) 3.9996 Which you may or may not see on your box, depending on your platform pow(), but which you "should" see: 1/3 is not a third, it's a binary approxim

[issue27425] Tests fail because of git's newline preferences on Windows

2016-08-26 Thread Martin Panter
Martin Panter added the comment: Emanuel: fix_newlines_2.patch seems to change the contents of batch from CRLF to LF newlines, undoing revision 640ccb924b5f. This seems like a step in the wrong direction. Notice $ means LF, and ^M$ means CRLF: $ curl https://bugs.python.org/file44225/fix_newli

[issue12319] [http.client] HTTPConnection.request not support "chunked" Transfer-Encoding to send data

2016-08-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 216f5451c35a by Martin Panter in branch 'default': Issue #12319: Always send file request bodies using chunked encoding https://hg.python.org/cpython/rev/216f5451c35a -- ___ Python tracker

[issue27871] ctypes docs must be more explicit about the type a func returns

2016-08-26 Thread Eryk Sun
Eryk Sun added the comment: See section 2.7 in the ctypes docs: Fundamental data types, when returned as foreign function call results, or, for example, by retrieving structure field members or array items, are transparently converted to native Python types. In other words, if a

[issue26027] Support Path objects in the posix module

2016-08-26 Thread Brett Cannon
Brett Cannon added the comment: Thanks for catching that, Martin. I removed the test for bytearray as it was originally written before the deprecation. -- status: open -> closed ___ Python tracker ___

[issue26027] Support Path objects in the posix module

2016-08-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32b93ba32aa0 by Brett Cannon in branch 'default': Issue #26027: Don't test for bytearray in path_t as that's now https://hg.python.org/cpython/rev/32b93ba32aa0 -- ___ Python tracker

[issue26638] Avoid warnings about missing CLI options when building documentation

2016-08-26 Thread Martin Panter
Martin Panter added the comment: Terry: the four "ini" syntax highlighting warnings were also mentioned in . In that bug, we fixed many other similar warnings, but I think we left those as being less easy to fix. One thing (other than suppress_warn

[issue12178] csv writer doesn't escape escapechar

2016-08-26 Thread Wayne Harris
Wayne Harris added the comment: Hi, I can confirm that this behavior still exists in my current python versions (3.5.2 & 2.7.11). I'm happy to take a look at the code, but considering I made this account specifically to comment on this issue I assume someone else will want to, as well. If y

[issue26027] Support Path objects in the posix module

2016-08-26 Thread Martin Panter
Martin Panter added the comment: This change causes test_os to produce warnings, and can fail: $ hg update b64f83d6ff24 $ ./python -bWerror -m test -u all -W test_os [. . .] == ERROR: test_path_t_converter (test.test_os.PathTCon

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

2016-08-26 Thread Martin Panter
Martin Panter added the comment: FYI revision ffcfa4f005a3 removed the code that uses your new _PyStack_AsDict() function, so now there is a compiler warning: Objects/abstract.c:2313:1: warning: ‘_PyStack_AsDict’ defined but not used [-Wunused-function] _PyStack_AsDict(PyObject **stack, Py_ss

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2016-08-26 Thread Tim Peters
Tim Peters added the comment: Note that `Pool` grew `starmap()` and `starmap_async()` methods in Python 3.3 to (mostly) address this. The signature difference from the old builtin `map()` remains regrettable. Note that the `Pool` version differs from the `concurrent.futures` version of `map(

[issue27870] Left shift of zero allocates memory

2016-08-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2016-08-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: -0 We need better motivation than "that is was map() does". Instead, are should look at whether there are compelling use cases and its impact on the complexity of the multiprocessing implementation. I usually just prezip my data and it works fine. --

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2016-08-26 Thread Jason Yu
New submission from Jason Yu: Hello all, The official doc describes `Pool.map(func, iterable[, chunksize])` as "A parallel equivalent of the map() built-in function.". Since the function signature of `map` is `map(function, iterable, ...)`, I hereby suggest that `Pool.map` should change its

[issue27805] io.open('/dev/stdout', 'a') raises OSError with errno=ESPIPE

2016-08-26 Thread Martin Panter
Changes by Martin Panter : -- title: os.open('/dev/stdout', 'a') raises OSError with errno=ESPIPE -> io.open('/dev/stdout', 'a') raises OSError with errno=ESPIPE ___ Python tracker ___

[issue27870] Left shift of zero allocates memory

2016-08-26 Thread R. David Murray
R. David Murray added the comment: Oh, my apologies. I was not reading your message with enough attention, you are only talking about the zero case. A check for zero would not be crazy, and I think there are enough operations involved in left shift that the performance impact would not be me

[issue27872] Update os/os.path docs to mention path-like object support

2016-08-26 Thread Brett Cannon
Changes by Brett Cannon : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue27872] Update os/os.path docs to mention path-like object support

2016-08-26 Thread Brett Cannon
Changes by Brett Cannon : -- priority: normal -> deferred blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue27870] Left shift of zero allocates memory

2016-08-26 Thread Alex Groce
Alex Groce added the comment: I mean a Python long. GMP mpz (via gmpy2) is supposed to be "drop-in" replacement, but it's choice to handle 0 << N even if N is too large to allocate (since you get back a 1-bit number, 0) seems reasonable, if not required for correct behavior. If this is by de

[issue27872] Update os/os.path docs to mention path-like object support

2016-08-26 Thread Brett Cannon
New submission from Brett Cannon: Now that PEP 519 support has been added to the os and os.path modules, the documentation needs to be appropriately updated to mention which functions support a "path-like object" (and in some cases a path-like object or an int for file descriptors). -

[issue27182] PEP 519 support in the stdlib

2016-08-26 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue27182] PEP 519 support in the stdlib

2016-08-26 Thread Brett Cannon
Brett Cannon added the comment: The os and os.path modules are now done! The means PEP 519 is finished. At this point individual modules will need to be checked to see if they do (not) support os.PathLike. -- ___ Python tracker

[issue27283] Add a "What's New" entry for PEP 519

2016-08-26 Thread Brett Cannon
Brett Cannon added the comment: Applied in https://hg.python.org/cpython/rev/95361959d451 -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue27524] Update os.path for PEP 519/__fspath__()

2016-08-26 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue26027] Support Path objects in the posix module

2016-08-26 Thread Brett Cannon
Brett Cannon added the comment: Thanks to Jelle for the initial commit and Serhiy for the code review! -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker __

[issue27524] Update os.path for PEP 519/__fspath__()

2016-08-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset b64f83d6ff24 by Brett Cannon in branch 'default': Issue #26027, #27524: Add PEP 519/__fspath__() support to os and https://hg.python.org/cpython/rev/b64f83d6ff24 -- nosy: +ned.deily, python-dev ___ Python

[issue26027] Support Path objects in the posix module

2016-08-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset b64f83d6ff24 by Brett Cannon in branch 'default': Issue #26027, #27524: Add PEP 519/__fspath__() support to os and https://hg.python.org/cpython/rev/b64f83d6ff24 -- nosy: +python-dev ___ Python tracker <

[issue27871] ctypes docs must be more explicit about the type a func returns

2016-08-26 Thread Christian Kothe
New submission from Christian Kothe: The ctypes documentation leaves an important detail very implicit, which can cause non-deterministic hard crashes when overlooked. The issue is that when you explicitly set the .restype of a function to c_void_p, the function returns not a c_void_p (like a

[issue27870] Left shift of zero allocates memory

2016-08-26 Thread R. David Murray
R. David Murray added the comment: Wait, when you talk about 'long', are you using that in the C sense? Because python long integers are size-limited only by the amount of memory. -- ___ Python tracker _

[issue27870] Left shift of zero allocates memory

2016-08-26 Thread R. David Murray
R. David Murray added the comment: If it raises a MemoryError, then it is working as designed. Returning 0 would be the wrong answer, so I don't understand why GMP would do that. -- ___ Python tracker __

[issue27870] Left shift of zero allocates memory

2016-08-26 Thread Alex Groce
Alex Groce added the comment: Allocates, then fails to perform the operation (with MemoryError). Neither a crash nor resource allocation, precisely, just fails to carry out operation GMP integers can do under the same circumstances. -- ___ Python t

[issue27870] Left shift of zero allocates memory

2016-08-26 Thread R. David Murray
R. David Murray added the comment: Are you saying that Python aborts, or that it raises a MemoryError? -- nosy: +r.david.murray ___ Python tracker ___ __

[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-08-26 Thread Jim Jewett
Jim Jewett added the comment: I think a python call is fine to require ... if they don't have the python source they should have a support contract. I assume the advice followed is intermediate, based on the earlier comment about xp and ie? On Aug 26, 2016 9:46 AM, "Christian Heimes" wrote: >

[issue27870] Left shift of zero allocates memory

2016-08-26 Thread Alex Groce
Alex Groce added the comment: AND, right shift >> does not allocate memory, so there is a lack of symmetry that indicates the optimization might be desired. see https://github.com/agroce/tstl/tree/master/examples/gmpy2/leftshiftalloc.py vs. https://github.com/agroce/tstl/tree/master/examples/

[issue27870] Left shift of zero allocates memory

2016-08-26 Thread Alex Groce
Alex Groce added the comment: (to clarify: 0 << N allocates memory (which can fail, raising MemoryError) based on N. GMP simply returns 0 for any N. -- ___ Python tracker __

[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2016-08-26 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue20562] sqlite3 returns result set with doubled first entry

2016-08-26 Thread Berker Peksag
Berker Peksag added the comment: This is basically a duplicate of issue 10513. -- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> sqlite3.InterfaceError after commit ___ Python tracker

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-26 Thread Alex Gaynor
Alex Gaynor added the comment: - The 2.7 patch contains numerous references to 3.6, these should be rewritten to 2.7.x - -- ___ Python tracker ___ _

[issue8145] Documentation about sqlite3 isolation_level

2016-08-26 Thread Berker Peksag
Berker Peksag added the comment: sqlite_transaction_doc.patch looks good to me and applies cleanly to current default branch. One minor note: It would be nice to document that the default mode is "BEGIN DEFERRED" in Connection.isolation_level documentation. -- nosy: +berker.peksag stag

[issue27867] various issues due to misuse of PySlice_GetIndicesEx

2016-08-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume you are suggesting to raise if the length changes. This is similar to raising when a dict is mutated while iterating. Note that we do not do this with mutable sequences. (If the iteration is stopped with out-of-memory error, so be it.) An alterna

[issue10513] sqlite3.InterfaceError after commit

2016-08-26 Thread Berker Peksag
Berker Peksag added the comment: This is now fixed in 2.7 and 3.5+. Thank you all for your patience! -- nosy: +berker.peksag resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 -Python 3.4 ___ Python trac

[issue23129] sqlite3 COMMIT nested in SELECT returns unexpected results

2016-08-26 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report! This is a duplicate of issue 10513. I've pushed a patch to fix this for 2.7 and 3.5+ in 030e100f048a and 81f614dd8136. -- components: +Extension Modules nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status: ope

[issue10513] sqlite3.InterfaceError after commit

2016-08-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 030e100f048a by Berker Peksag in branch '2.7': Issue #10513: Fix a regression in Connection.commit() https://hg.python.org/cpython/rev/030e100f048a -- ___ Python tracker

[issue27870] Left shift of zero allocates memory

2016-08-26 Thread Alex Groce
New submission from Alex Groce: Using a random testing system to compare Python long behavior to GMP (via gmpy2), I notice that in a low-memory situation (created by allocating many large integers in both Python and GMP), a left-shift of 0 by large number of bytes: - returns 0 via gmpy2 - cau

[issue10513] sqlite3.InterfaceError after commit

2016-08-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 81f614dd8136 by Berker Peksag in branch '3.5': Issue #10513: Fix a regression in Connection.commit() https://hg.python.org/cpython/rev/81f614dd8136 New changeset 685f32972c11 by Berker Peksag in branch 'default': Issue #10513: Merge from 3.5 https:/

[issue27855] 2to3: Wrong code output w/ has_key without trailing space

2016-08-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you don't want to sign the CA, https://www.python.org/psf/contrib/, and upload a file without a guarantee, which is never given ;-), just give the patch in a text message. While it may be unreasonable to *expect* 2to3 to handle this, it also might not be u

[issue27869] test failures on Bash for Windows

2016-08-26 Thread Brett Cannon
New submission from Brett Cannon: test_logging and test_socket seem to hang, and then there are 35 failures: test_asyncio test_asyncore test_dbm_dumb test_dbm_gnu test_eintr test_epoll test_faulthandler test_fcntl test_ftplib test_gettext test_httpservers test_import test_largefile t

[issue27869] test failures on Bash on Windows

2016-08-26 Thread Brett Cannon
Changes by Brett Cannon : -- title: test failures on Bash for Windows -> test failures on Bash on Windows ___ Python tracker ___ ___

[issue27051] Create PIP gui

2016-08-26 Thread R. David Murray
R. David Murray added the comment: Something like gksudo would be what you would use to use this application to do a GUI install, but what specific program you use to get root for running a gui application does depend on the distribution. (For example, I'd use 'sux' to become root and then run

[issue27805] os.open('/dev/stdout', 'a') raises OSError with errno=ESPIPE

2016-08-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed title: In Python 3, open('/dev/stdout', 'a') raises OSError with errno=ESPIPE -> os.open('/dev/stdout', 'a') raises OSError with errno=ESPIPE type: -> behavior ___ Python tracker

[issue27867] various issues due to misuse of PySlice_GetIndicesEx

2016-08-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +mark.dickinson, serhiy.storchaka stage: -> needs patch type: -> crash ___ Python tracker ___ __

[issue27868] Unconditionally state when a build succeeds

2016-08-26 Thread Brett Cannon
New submission from Brett Cannon: When setup.py succeeds at building but couldn't build some dependency it says "Python build finished successfully!" and then lists the modules that couldn't be built. But if you are able to actually build everything then nothing is printed to stdout. Due to th

[issue27803] ctypes automatic byref failing on custom classes attributes

2016-08-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I ran the the following, which I don't understand, and therefore don't what should happen, on Win 10, 3.6.0a3. from ctypes import * from ctypes.wintypes import * class CustomPHKEY(object): def __init__(self, value): self._as_parameter_ = HKEY(value

[issue27051] Create PIP gui

2016-08-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't know anything about user permissions on *nix. There are people on python-list who should. -- ___ Python tracker ___ _

[issue27842] Order CSV header fields

2016-08-26 Thread Steve Holden
Steve Holden added the comment: OK, here's what I think should be close to the final patch. I've updated the documentation, rebuilt it and verified it reads OK, and confirmed that the new code passes all tests except those skipped for platform reasons (I think they expect a Windows environment

[issue27867] various issues due to misuse of PySlice_GetIndicesEx

2016-08-26 Thread tehybel
New submission from tehybel: Here I will describe 6 issues with various core objects (bytearray, list) and the array module. Common to them all is that they arise due to a misuse of the function PySlice_GetIndicesEx. This type of issue results in out-of-bounds array indexing which leads to mem

[issue27861] sqlite3 type confusion and multiple frees

2016-08-26 Thread Xiang Zhang
Xiang Zhang added the comment: issue27861_conn_isolation_level.patch now adds argument type and value check along with eliminating the potential sf. -- Added file: https://bugs.python.org/file44234/issue27861_conn_isolation_level.patch ___ Python tr

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: There are still quite a few references to `PROTOCOL_SSLv23` in Doc/library/ssl.rst. Should they be updated as well? -- ___ Python tracker ___ _

[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-08-26 Thread Christian Heimes
Christian Heimes added the comment: Patch for 3DES and ChaCha20 (#27766). For ChaCha the patch does not check CPU cap vector and just follows the advice from https://wiki.mozilla.org/Security/Server_Side_TLS#Modern_compatibility -- keywords: +patch Added file: https://bugs.python.org/

[issue27840] functools.partial: don't copy keywoard arguments in partial_call()?

2016-08-26 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-26 Thread Christian Heimes
Changes by Christian Heimes : Added file: https://bugs.python.org/file44232/Port-Python-s-SSL-module-to-OpenSSL-1.1.0-3.patch ___ Python tracker ___ ___

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-26 Thread Christian Heimes
Changes by Christian Heimes : Removed file: https://bugs.python.org/file44230/Port-Python-2.7-s-SSL-module-to-OpenSSL-1.1.0-3.patch ___ Python tracker ___ _

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-26 Thread Christian Heimes
Changes by Christian Heimes : Removed file: https://bugs.python.org/file44048/Port-Python-s-SSL-module-to-OpenSSL-1.1.0-2.patch ___ Python tracker ___ _

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-26 Thread Christian Heimes
Changes by Christian Heimes : Removed file: https://bugs.python.org/file44038/Port-Python-s-SSL-module-to-OpenSSL-1.1.0.patch ___ Python tracker ___ ___

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-26 Thread Christian Heimes
Changes by Christian Heimes : Removed file: https://bugs.python.org/file44037/Port-Python-2.7-s-SSL-module-to-OpenSSL-1.1.0.patch ___ Python tracker ___ ___

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-26 Thread Christian Heimes
Changes by Christian Heimes : Removed file: https://bugs.python.org/file44229/Port-Python-2.7-s-SSL-module-to-OpenSSL-1.1.0-3.patch ___ Python tracker ___ _

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-26 Thread Christian Heimes
Changes by Christian Heimes : Added file: https://bugs.python.org/file44230/Port-Python-2.7-s-SSL-module-to-OpenSSL-1.1.0-3.patch ___ Python tracker ___ ___

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-26 Thread Christian Heimes
Changes by Christian Heimes : Added file: https://bugs.python.org/file44231/Port-Python-2.7-s-SSL-module-to-OpenSSL-1.1.0-3.patch ___ Python tracker ___ ___

[issue26470] Make OpenSSL module compatible with OpenSSL 1.1.0

2016-08-26 Thread Christian Heimes
Changes by Christian Heimes : Added file: https://bugs.python.org/file44229/Port-Python-2.7-s-SSL-module-to-OpenSSL-1.1.0-3.patch ___ Python tracker ___ ___

[issue27861] sqlite3 type confusion and multiple frees

2016-08-26 Thread Xiang Zhang
Xiang Zhang added the comment: issue27861_conn_cursor.patch tries to solve the first issue. -- Added file: https://bugs.python.org/file44228/issue27861_conn_cursor.patch ___ Python tracker

[issue27866] ssl: get list of enabled ciphers

2016-08-26 Thread Christian Heimes
New submission from Christian Heimes: SSLContext has a set_ciphers() method but no method to get the actual list of enabled ciphers. https://github.com/tiran/cpython/tree/feature/openssl_ciphers implements get_ciphers() >>> import ssl, pprint >>> ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23) >>> c

[issue27768] ssl: get CPU cap flags for AESNI and PCLMULQDQ

2016-08-26 Thread Christian Heimes
Christian Heimes added the comment: GPS, I no longer want a general API for CPU cap vector. The ssl module and 3rd party packages are only interested in two properties of the current hardware: are AESNI and PCLMULQDQ instructions available and enabled. I'm pretty sure ctypes won't work on Wind

[issue27861] sqlite3 type confusion and multiple frees

2016-08-26 Thread Xiang Zhang
Xiang Zhang added the comment: I considered that but don't why decide to preserve it. But now that you mention it, I'll do that later. -- ___ Python tracker ___ ___

[issue27861] sqlite3 type confusion and multiple frees

2016-08-26 Thread Berker Peksag
Berker Peksag added the comment: Please split issue27861.patch into two patches. It would be better if isolation_level wouldn't accept values other than None, "" (empty string), "deferred", "immediate", "exclusive". -- stage: needs patch -> patch review ___

[issue27051] Create PIP gui

2016-08-26 Thread Upendra Kumar
Upendra Kumar added the comment: Can I somehow change the setup.py script such that I can create a new set of (group, user) with specific privileges only needed for installation and uninstallation. Once a new set of (group, user) is created, I can always do os.setgid(gid) and os.setuid(uid)

[issue27051] Create PIP gui

2016-08-26 Thread Upendra Kumar
Upendra Kumar added the comment: I facing problems in running the GUI application with root or elevated privileges. I earlier used gksudo for linux. It turns out be a not very general solution as all linux distros don't have gksudo. Therefore, how to manage user permissions or group permission

[issue27840] functools.partial: don't copy keywoard arguments in partial_call()?

2016-08-26 Thread STINNER Victor
STINNER Victor added the comment: Ah yes sorry, I misunderstood the link between kwargs from a C function and a PY function. The link is simple, it's the same object :-) This issue can be closed. -- ___ Python tracker