[issue19588] Silently skipped test in test_random
Serhiy Storchaka added the comment: Original test was added in issue812202. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19588 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17145] memoryview(array.array)
Changes by mpb mpb.m...@gmail.com: -- nosy: +mpb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17145 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19674] Add introspection information for builtins
Serhiy Storchaka added the comment: Great! See also issue16842 and issue16638. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19674 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19664] UserDict test assumes ordered dict repr
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19664 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19668] Add support of the cp1125 encoding
Serhiy Storchaka added the comment: No, it is not official Microsoft codepage (it was introduced by IBM in its PC-DOS). AFAIK this encoding yet widely used in banking software. My old text files were written in this encoding, ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19668 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11854] __or__ et al instantiate subclass of set without calling __init__
Mark Dickinson added the comment: Can this issue be closed as 'wont fix'? -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11854 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18874] Add a new tracemalloc module to trace memory allocations
Charles-François Natali added the comment: If you really want to use packing, keep it. But please remove this: +/* ensure that the frame_t structure is packed */ +assert(sizeof(frame_t) == (sizeof(PyObject*) + sizeof(int))); -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18874 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19663] Not so correct error message when initializing defaultdict
Raymond Hettinger added the comment: This is a reasonable patch. I'll apply it when I have some spare time. -- assignee: - rhettinger priority: normal - low versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19663 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19677] IDLE displaying a CoreAnimation warning
New submission from Raymond Hettinger: When running IDLE on a fresh 2.7.6 install on OS X 10.9, I'm seeing the following message generated periodically: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces. -- components: IDLE messages: 203588 nosy: rhettinger priority: low severity: normal status: open title: IDLE displaying a CoreAnimation warning type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19677 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18874] Add a new tracemalloc module to trace memory allocations
STINNER Victor added the comment: If you really want to use packing, keep it. But please remove this: +/* ensure that the frame_t structure is packed */ +assert(sizeof(frame_t) == (sizeof(PyObject*) + sizeof(int))); I added this assertion to ensure that I used correct GCC __attribute__((packed)) and Visual Studio #pragma pack(4). It can now be removed, I checked at least one per compiler that the structure is packed :-) I will add a comment explaining that packing the structure is an optimization to reduce the memory footprint, it can be disabled if tracemalloc does crash because of it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18874 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19633] test_wave: failures on PPC64 buildbot
Roundup Robot added the comment: New changeset 7b040bc289e8 by Serhiy Storchaka in branch '3.3': Issue #19633: Fixed writing not compressed 16- and 32-bit wave files on http://hg.python.org/cpython/rev/7b040bc289e8 New changeset 7cf7f19445ba by Serhiy Storchaka in branch 'default': Issue #19633: Fixed writing not compressed 16- and 32-bit wave files on http://hg.python.org/cpython/rev/7cf7f19445ba New changeset 03a32ead9c7d by Serhiy Storchaka in branch '2.7': Issue #19633: Fixed writing not compressed 16- and 32-bit wave files on http://hg.python.org/cpython/rev/03a32ead9c7d -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19633 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates
STINNER Victor added the comment: Thanks Ezio and Serhiy for having fix UTF-16 and UTF-32 codecs! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12892 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19518] Add new PyRun_xxx() functions to not encode the filename
STINNER Victor added the comment: So, which suffix should be used? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19518 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19518] Add new PyRun_xxx() functions to not encode the filename
Serhiy Storchaka added the comment: *Unicode suffix in existing functions means Py_UNICODE* argument. May be *Ex2? It can't be misinterpreted but looks ugly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19518 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19668] Add support of the cp1125 encoding
Marc-Andre Lemburg added the comment: On 21.11.2013 09:34, Serhiy Storchaka wrote: No, it is not official Microsoft codepage (it was introduced by IBM in its PC-DOS). AFAIK this encoding yet widely used in banking software. My old text files were written in this encoding, ;) +1 for adding this. It gets enough Google hits to be worth adding. Please also add the aliases you mentioned. Thanks, -- Marc-Andre Lemburg eGenix.com -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19668 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19183] PEP 456 Secure and interchangeable hash algorithm
Roundup Robot added the comment: New changeset eec4758e3a45 by Victor Stinner in branch 'default': Issue #19183: Simplify test_gdb http://hg.python.org/cpython/rev/eec4758e3a45 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19183 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19575] subprocess.Popen with multiple threads: Redirected stdout/stderr files still open after process close
STINNER Victor added the comment: In Python 3.3, open_noinherit_ctypes() can be written: def opener_noinherit(filename, flags): return os.open(filename, flags | os.O_NOINHERIT) f = open(filename, opener=opener_noinherit) Example on Linux with O_CLOEXEC: $ python3 Python 3.3.0 (default, Sep 29 2012, 22:07:38) [GCC 4.7.2 20120921 (Red Hat 4.7.2-2)] on linux Type help, copyright, credits or license for more information. import os def opener_noinherit(filename, flags): ... return os.open(filename, flags | os.O_CLOEXEC) ... f=open(/etc/issue, opener=opener_noinherit) import fcntl fcntl.fcntl(f.fileno(), fcntl.F_GETFD) fcntl.FD_CLOEXEC 1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19575 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14373] C implementation of functools.lru_cache
Brecht Machiels added the comment: What's the status of this patch? What still needs to be done for it to be accepted? -- nosy: +brechtm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19575] subprocess: on Windows, unwanted file handles are inherit by child processes in a multithreaded application
Changes by STINNER Victor victor.stin...@gmail.com: -- title: subprocess.Popen with multiple threads: Redirected stdout/stderr files still open after process close - subprocess: on Windows, unwanted file handles are inherit by child processes in a multithreaded application ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19575 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19668] Add support of the cp1125 encoding
Serhiy Storchaka added the comment: Please also add the aliases you mentioned. I have already added these aliases. I should remove added in last moment the 'cp866nav' alias from Lib/encodings/aliases.py because it is actually a little different encoding (it have two Byelorussian letters Ўў instead cp866 characters ·√ at positions 0xfa-0xfb). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19668 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14373] C implementation of functools.lru_cache
Serhiy Storchaka added the comment: I'm working on this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19578] del list[a:b:c] doesn't handle correctly list_resize() failure
Serhiy Storchaka added the comment: The patch is very simple and LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19578 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19641] Add audioop.byteswap()
Serhiy Storchaka added the comment: The patch is synchronized with tip (after committing issue19633). It enables temporary disabled in issue19633 tests. -- Added file: http://bugs.python.org/file32749/audioop_byteswap_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19641 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19652] test_asyncio: test_subprocess_send_signal() hangs on buildbot AMD64 Snow Leop 3.x
STINNER Victor added the comment: asyncio_subprocess_watchdog.patch: * add test_asyncio.watchdog.setup_watchdog(): use faulthandler.dump_traceback_later() to kill the process if it hangs more than 'timeout' seconds (do nothing if faulthandler is not present, eg. on other Python VMs than CPython) * add SubprocessTestsMixin.debug_info(): return returncode, stdout, stderr * use debug_info() on functions using subprocess may may hang The patch should give more information on the child process if it hangs. I didn't see the test_asyncio hang on AMD64 Snow Leop 3.x recently. The hang is probably random :-/ I chose a default timeout of 5 minutes, it should be enough for the short tests of test_asyncio. You may set the timeout to 15 minutes if a buildbot is too slow. Or set the timeout to 1 minute if you prefer to not hang a buildbot too long. I tested asyncio_subprocess_watchdog.patch manually with a shorter timeout and by adding time.sleep(60) in echo.py, echo2.py and echo3.py. -- keywords: +patch Added file: http://bugs.python.org/file32750/asyncio_subprocess_watchdog.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19652 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19599] Failure of test_async_timeout() of test_multiprocessing_spawn: TimeoutError not raised
STINNER Victor added the comment: 2.7 builds are failing on koobs-freebsd9 buildbot since ba7d53b5f3de I reopen the issue. -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19599 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19661] AIX: Python: RuntimeError invalid slot offset when importing a module in _ssl module
dellair jie added the comment: Still seeing the same error without optimization, the build log from HPUX 11.31IA is also attached for reference (maybe irrelevance though ^^): AIX 6.1: cc -qlanglvl=extc89 -O0 -IInclude -I. -I/usr/local/include -c /aix/Modules/_ssl.c -o build/temp.aix-6.1-3.3-pydebug/aix/Modules/_ssl.o /aix/Modules/_ssl.c, line 262.17: 1506-196 (W) Initialization between types void* and struct _object*(*)(struct {...}*) is not allowed. /aix/Modules/ld_so_aix cc -qlanglvl=extc89 -bI:/aix/Modules/python.exp build/temp.aix-6.1-3.3-pydebug/aix/Modules/_ssl.o -L/usr/local/lib -lssl -lcrypto -o build/lib.aix-6.1-3.3-pydebug/_ssl.so ld: 0711-224 WARNING: Duplicate symbol: .bcopy ld: 0711-224 WARNING: Duplicate symbol: .memcpy ld: 0711-224 WARNING: Duplicate symbol: .memmove ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. *** WARNING: importing extension _ssl failed with build/lib.aix-6.1-3.3-pydebug/_ssl.so: class 'RuntimeError': invalid slot offset: traceback object at 0x30366038 HPUX11.31: building '_ssl' extension cc +z -O0 -IInclude -I. -I/hpux/Include -I/hpux -c /hpux/Modules/_ssl.c -o build/temp.hp-ux-B.11.31-ia64-3.3-pydebug/hpux/Modules/_ssl.o /hpux/Modules/_ssl.c, line 383: warning #4232-D: conversion from PyObject * to a more strictly aligned type PySocketSockObject * may cause misaligned access = (PySocketSockObject *) PyWeakref_GetObject(obj-Socket); ^ /hpux/Modules/_ssl.c, line 499: warning #4232-D: conversion from PyObject * to a more strictly aligned type PySocketSockObject * may cause misaligned access = (PySocketSockObject *) PyWeakref_GetObject(self-Socket); ^ /hpux/Modules/_ssl.c, line 1220: warning #2111-D: statement is unreachable if (!_PyIsSelectable_fd(s-sock_fd)) ^ /hpux/Modules/_ssl.c, line 1253: warning #4232-D: conversion from PyObject * to a more strictly aligned type PySocketSockObject * may cause misaligned access = (PySocketSockObject *) PyWeakref_GetObject(self-Socket); ^ /hpux/Modules/_ssl.c, line 1363: warning #4232-D: conversion from PyObject * to a more strictly aligned type PySocketSockObject * may cause misaligned access = (PySocketSockObject *) PyWeakref_GetObject(self-Socket); ^ /hpux/Modules/_ssl.c, line 1484: warning #4232-D: conversion from PyObject * to a more strictly aligned type PySocketSockObject * may cause misaligned access = (PySocketSockObject *) PyWeakref_GetObject(self-Socket); ^ ld -b build/temp.hp-ux-B.11.31-ia64-3.3-pydebug/hpux/Modules/_ssl.o -L/usr/local/lib -lssl -lcrypto -o build/lib.hp-ux-B.11.31-ia64-3.3-pydebug/_ssl.so *** WARNING: importing extension _ssl failed with class 'RuntimeError': invalid slot offset Please let me know if further information is required. Br, -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19661 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19637] test_subprocess.test_undecodable_env() failure on AIX
STINNER Victor added the comment: test_subprocess now pass on the PPC64 AIX 3.x buildbot, I close the issue. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19637 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19568] bytearray_setslice_linear() leaves the bytearray in an inconsistent state on memory allocation failure
Serhiy Storchaka added the comment: Perhaps the code will be easier if reorganize it. -- Added file: http://bugs.python.org/file32751/bytearray_setslice_mem_error-4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19568 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19674] Add introspection information for builtins
Nick Coghlan added the comment: Sounds good to me (with either Larry's or Guido's spelling). We should ensure this still works with the config option that disables docstrings entirely. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19674 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19518] Add new PyRun_xxx() functions to not encode the filename
STINNER Victor added the comment: *Unicode suffix in existing functions means Py_UNICODE* argument. Yes, this is why I chose Object() suffix. Are you still opposed to Object suffix? (Yes, *Ex2 is really ugly.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19518 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19678] smtpd.py: channel should be passed to process_message
New submission from Leslie P. Polzer: process_message needs to have access to the channel state since it needs to make decisions based on the authentication or transport associated with the channel. It should be either the first or the last arg. I can provide a patch for this. Should backwards compatibility be achieved by using the inspect module to check the signature of process_message and call it accordingly? -- components: Library (Lib), email messages: 203609 nosy: barry, lpolzer, r.david.murray priority: normal severity: normal status: open title: smtpd.py: channel should be passed to process_message type: enhancement versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19678 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19679] smtpd.py: implement ESMTP status messages
New submission from Leslie P. Polzer: ESMTP status messages (of the form xab x.y.z test) can be added easily to the current status message strings emitted by the SMTP server and channel classes. They are not harmful if the user's server only intends to support plain HELO-SMTP I will provide a patch within due time unless someone disagrees. -- components: Library (Lib), email messages: 203610 nosy: barry, lpolzer, r.david.murray priority: normal severity: normal status: open title: smtpd.py: implement ESMTP status messages type: enhancement versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19679 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19578] del list[a:b:c] doesn't handle correctly list_resize() failure
Roundup Robot added the comment: New changeset b508253f2876 by Victor Stinner in branch 'default': Close #19578: Fix list_ass_subscript(), handle list_resize() failure http://hg.python.org/cpython/rev/b508253f2876 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19578 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14455] plistlib unable to read json and binary plist files
Ronald Oussoren added the comment: I've attached an updated version of the patch that should fix most of the issues found during review. I've also changed the two FMT_ constants to an enum.Enum (but still expose the constants themselves as module global names because that's IMHO more convenient). FYI I'm completely away from the computer during the weekend and will have very limited time to work from later today (18:00 CET). -- Added file: http://bugs.python.org/file32752/issue-14455-v9.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14455 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19568] bytearray_setslice_linear() leaves the bytearray in an inconsistent state on memory allocation failure
Roundup Robot added the comment: New changeset ab73b7fd7523 by Victor Stinner in branch 'default': Close #19568: Fix bytearray_setslice_linear(), fix handling of http://hg.python.org/cpython/rev/ab73b7fd7523 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19568 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19568] bytearray_setslice_linear() leaves the bytearray in an inconsistent state on memory allocation failure
STINNER Victor added the comment: Perhaps the code will be easier if reorganize it. Ah yes, your version is simpler. I commited your patch, thanks. I also fixed the XXX to check the integer overflow: if (Py_SIZE(self) (Py_ssize_t)PY_SSIZE_T_MAX - growth) { PyErr_NoMemory(); return -1; } -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19568 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19575] subprocess: on Windows, unwanted file handles are inherited by child processes in a multithreaded application
Changes by STINNER Victor victor.stin...@gmail.com: -- title: subprocess: on Windows, unwanted file handles are inherit by child processes in a multithreaded application - subprocess: on Windows, unwanted file handles are inherited by child processes in a multithreaded application ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19575 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18874] Add a new tracemalloc module to trace memory allocations
STINNER Victor added the comment: 3de17d13002d.patch: - take in account Antoine Pitrou's and vajrasky's comments - pack again frame_t structure (without the assertion and with a comment) -- Added file: http://bugs.python.org/file32753/3de17d13002d.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18874 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18874] Add a new tracemalloc module to trace memory allocations
STINNER Victor added the comment: Oh yes, Antoine also asked if Python/ and Include/ directories are the right place for hashtable.c and hashtable.h files. _Py_slist and _Py_hashtable are only used in Modules/_tracemalloc.c yet. It was discussed to reuse _Py_slist somewhere (I don't remember where) and _Py_hashtable for the methods cache. Reuse _Py_hashtable for the methods cache is not trivial, the API doesn't fit exactly. I didn't spend much time to try to adapt _Py_hashtable API or the methods cache. _Py_hashtable API is written for performances, not for usability. Useless function calls are denied: they are punished by an assertion error (ex: _Py_hashtable_delete() if the key does not exist). An hash entry contains directly data, so you have to add a pointer with a size to store or retrieve an entry. I like my own API, but others may prefer a different API :-) Anyway, the _Py_hashtable API is fully private and excluded from the stable ABI. What do you think? Should we start by moving them to Modules/ and only move them again if they are used in more than one place? (Another little issue is that hashtable looks like Python dict, whereas Python dict is implemeted in Objects/dictobject.c). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18874 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19666] Format string for ASCII unicode or bytes-like object as readonly buffer
STINNER Victor added the comment: Where do you plan to use this new format? Can you please give examples? (other unicode representations may not allow you to take a Py_buffer to the ASCII data). Py_buffer and PyArg_ParseTuple() are very specific to CPython. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19666 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19518] Add new PyRun_xxx() functions to not encode the filename
Nick Coghlan added the comment: How about ExName? This patch: PyRun_AnyFileExName PyRun_SimpleFileExName PyRun_InteractiveOneExName PyRun_InteractiveLoopExName PyRun_FileExName Previous patch: Py_CompileStringExName PyAST_FromNodeExName PyAST_CompileExName PyFuture_FromASTExName PyParser_ParseFileExName PyParser_ParseStringExName PyErr_SyntaxLocationExName PyErr_ProgramTextExName PyParser_ASTFromStringExName PyParser_ASTFromFileExName - Ex has precedent as indicating a largely functionally equivalent API with a different signature - Name suggests strongly that we're tinkering with the filename (since this APIs don't accept another name) - ExName is the same length as Object but far more explicit Thoughts? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19518 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17916] Provide dis.Bytecode based equivalent of dis.distb
Claudiu.Popa added the comment: Nick, what's your opinion on my latest patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17916 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18874] Add a new tracemalloc module to trace memory allocations
STINNER Victor added the comment: It was discussed to reuse _Py_slist somewhere (I don't remember where) (...) I did a quick search in Python code based using link.*list regex. Structures linked in a single-linked list (candidate for _Py_slist): * Modules/_curses_panel.c: list_of_panels * Modules/_elementtree.c: ParentLocator * Modules/floatobject.c: free_list * Objects/obmalloc.c: arena_object.freepools * Python/compile.c: basicblock * Python/pyarena.c: block * Include/pystate.h: PyInterpreterState.tstate_head * Python/thead.c: key Structures linked in a double-linked list: * Include/objimpl.h: PyGC_Head * Include/object.c: PyObject (in debug mode) * Modules/_collectionsmodule.c: block * Objects/obmalloc.c: arena_object * Include/weakrefobject.h: _PyWeakReference -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18874 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18874] Add a new tracemalloc module to trace memory allocations
STINNER Victor added the comment: Oh, I just realized _Py_slist_init(), _Py_slist_prepend(), and _Py_slist_remove() functions are currently private (static in hashtable.c). These functions should be declared in hashtable.h if _Py_slist API is reused. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18874 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19679] smtpd.py (SMTPChannel): get rid of conn attribute
Leslie P. Polzer added the comment: The contents of conn are already stored by asyncore's socket attribute, so there doesn't seem to be a need to keep it around. We should deprecate its usage and refer the user to the socket attribute. Furthermore I suggest renaming the conn argument to socket to make its semantics clearer. -- title: smtpd.py: implement ESMTP status messages - smtpd.py (SMTPChannel): get rid of conn attribute ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19679 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17916] Provide dis.Bytecode based equivalent of dis.distb
Nick Coghlan added the comment: My apologies for not reviewing this earlier, it's been a somewhat hectic month. Thanks for pinging the ticket while there's still a chance to get this into 3.4 :) After my last round of updates to dis.Bytecode removed the potential for confusion between line_offset and current_offset, I'm back to thinking it makes more sense to build this feature directly into dis.Bytecode rather than using a separate type. 1. Add the current_offset attribute to dis.Bytecode 2. Add a current_offset parameter to dis.Bytecode.__init__ (defaulting to None) 3. In dis.Bytecode.dis(), pass current_offset as the value for lasti in the call to _disassemble_bytes (except for passing -1 if current_offset is None) 4. Add a from_traceback() class method that sets current_offset appropriately in the call to build the instance -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17916 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19649] Clean up OS X framework and universal bin directories
Roundup Robot added the comment: New changeset 44d1ac9245cf by Ned Deily in branch 'default': Issue #19649: On OS X, the same set of file names are now installed http://hg.python.org/cpython/rev/44d1ac9245cf -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19649 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19553] PEP 453: make install and make altinstall integration
Roundup Robot added the comment: New changeset 90d4153728f6 by Ned Deily in branch 'default': Issue #19553: PEP 453 - make install and make altinstall now install or http://hg.python.org/cpython/rev/90d4153728f6 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19553 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19279] UTF-7 to UTF-8 decoding crash
Changes by Matej Cepl mc...@redhat.com: -- nosy: +mcepl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19279 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19599] Failure of test_async_timeout() of test_multiprocessing_spawn: TimeoutError not raised
koobs added the comment: @Richard, reporting all green on koobs-freebsd{9,10} 2.7 since 086865ceefe1 Thank you! :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19599 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19690] test_logging test_race failed with PermissionError
New submission from Ned Deily: http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/568/steps/test/logs/stdio == ERROR: test_race (test.test_logging.HandlerTest) -- Traceback (most recent call last): File /Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/test/test_logging.py, line 613, in test_race h.handle(r) File /Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/logging/__init__.py, line 835, in handle self.emit(record) File /Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/logging/handlers.py, line 468, in emit self.stream = self._open() File /Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/logging/__init__.py, line 1005, in _open return open(self.baseFilename, self.mode, encoding=self.encoding) PermissionError: [Errno 1] Operation not permitted: '/tmp/test_logging-3-i5haxx_n.log' During handling of the above exception, another exception occurred: Traceback (most recent call last): File /Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/test/test_logging.py, line 616, in test_race h.close() File /Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/logging/__init__.py, line 990, in close self.flush() File /Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/logging/__init__.py, line 937, in flush self.stream.flush() ValueError: I/O operation on closed file. The test passed when rerun by regrtest. This looks similar to the failures in Issue14632. -- components: Tests messages: 203727 nosy: ned.deily, vinay.sajip priority: normal severity: normal status: open title: test_logging test_race failed with PermissionError versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19690 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19660] decorator syntax: allow testlist instead of just dotted_name
Benjamin Peterson added the comment: I think the complexity delta in the grammar is exactly 0. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19660 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19649] Clean up OS X framework and universal bin directories
Changes by Ned Deily n...@acm.org: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19649 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18874] Add a new tracemalloc module to trace memory allocations
STINNER Victor added the comment: Reuse _Py_hashtable for the methods cache is not trivial, the API doesn't fit exactly. I didn't spend much time to try to adapt _Py_hashtable API or the methods cache. I don't understand which part is the key and which part is the enetry data in method_cache_entry structure: struct method_cache_entry { unsigned int version; PyObject *name; /* reference to exactly a str or None */ PyObject *value;/* borrowed */ }; _PyType_Lookup() compares name and version. Does it mean that version is part of the key? If it's possible to only store name as the key and store version and value in the data, it would be simple to reuse _Py_hashtable. I guess that it would be possible to get a cache entry using the name and later compare the version, it the version doesn't match: don't use the cache. It would require to copy the data (version+value: short structure, a few bytes) from the hash table entry to a local variable (allocated in the stack). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18874 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8813] SSLContext doesn't support loading a CRL
Antoine Pitrou added the comment: s/FLAGS_/VERIFY_/g ? OK, I don't have hard feelings. :) And VERIFY_NONE should be VERIFY_CRL_NONE IMO. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8813 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19685] open() fails to autodetect utf-8 if LANG=C
STINNER Victor added the comment: -exec(compile(open(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec')) +exec(compile(open(__file__,encoding='utf_8').read().replace('\\r\\n', '\\n'), __file__, 'exec')) The fix is not correct, the script may use a different encoding. Replace open() with tokenize.open(), available since Python 3.2. .replace('\\r\\n', '\\n') is probably useless in Python 3 which uses universal newlines by default. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19685 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()
Nick Coghlan added the comment: I used the private class method to minimise the per-codec impact (1 modified/added line per codec rather than 3). Your other suggestions look good, so I'll apply those before committing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19619 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19674] Add introspection information for builtins
Nick Coghlan added the comment: still works as in doesn't crash and the docstrings are still missing to save memory. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19674 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19628] maxlevels -1 on compileall for unlimited recursion
Claudiu.Popa added the comment: Here's a patch which adds support for controlling the maxlevels on command line. Currently, compileall uses a binary choice, either we don't process subdirectories or we process at most 10 subdirectories. This seems to be the case since its inception, in Changeset: 1828 (b464e1d0b2fb) New way of generating .pyc files, thanks to Sjoerd. User: Guido van Rossum gu...@python.org Date: 1994-08-29 10:52:58 + (1994-08-29) The patch adds a new command option, -r, where `-r 0` is equivalent to specifying -l. I guess we can't modify -l to actually control the maxlevels, due to backward compatibility concerns. -- keywords: +patch nosy: +Claudiu.Popa Added file: http://bugs.python.org/file32764/compileall.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19628 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19628] maxlevels -1 on compileall for unlimited recursion
Changes by Claudiu.Popa pcmantic...@gmail.com: -- versions: +Python 3.4 -Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19628 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18874] Add a new tracemalloc module to trace memory allocations
Eric Snow added the comment: FYI, the C OrderedDict implementation in #16991 implements its own doubly-linked list, built around the needs of OrderedDict. I looked into BSD's queue.h [1], but it ended up simpler to roll my own. [1] http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/sys/queue.h?rev=1.56 -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18874 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19386] selectors test_interrupted_retry is flaky
R. David Murray added the comment: Looking at the current buildbot history I don't see these errors any more. I'm not sure how frequent they were, but I think I'll mark this as resolved and we can reopen it if we see it again. -- resolution: - invalid stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19386 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19633] test_wave: failures on PPC64 buildbot
STINNER Victor added the comment: PPC64 PowerLinux 3.x buildbot is green again! I'm closing the issue. I didn't check 2.7 and 3.3 buildbots. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19633 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19674] Add introspection information for builtins
Changes by Larry Hastings la...@hastings.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19674 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19682] _ssl won't compile with OSX 10.9 SDK
Roundup Robot added the comment: New changeset 40bfddda43d4 by Christian Heimes in branch 'default': Issue #19682: Fix compatibility issue with old version of OpenSSL that http://hg.python.org/cpython/rev/40bfddda43d4 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19682 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...
Changes by Nick Coghlan ncogh...@gmail.com: -- dependencies: +Blacklist base64, hex, ... codecs from bytes.decode() and str.encode() ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7475 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18967] Find a less conflict prone approach to Misc/NEWS
Zachary Ware added the comment: Here's my half-baked idea on the topic, based largely on what I could learn of Twisted's method from looking through their source repo online. I liked their use of separate files for each NEWS entry, especially since it should make merge conflicts exceedingly rare. Basically, the plan is to add a couple of scripts to Tools/scripts named news.py and news_release.py. Spec outline for news.py: - four possible usages: - interactive - ask for each necessary datum - issue number(s), section(s), message - single command - command line switches for section and issue number, remaining arguments constitute message - blend - ask about anything not given in the single command, unless told not to with -f/--force (and then use defaults) - invoke editor - mirror hg's handling of `hg commit` without -m or -l, open an editor and use the saved file - output a text file named issuenumber.count.news or current hg rev+something random.news (default in case of no issue number) containing the message into the appropriate folder(s) (e.g. Misc/NEWS.parts/Build) - print the contents of the written file to stdout - allows `news.py --section build --issue 12345 Fix building | hg com -l -` - print the output file's name to stderr - to make it easy to use `hg com -l Misc/NEWS.parts/filename.news` and not interfere with the above - `hg add` the output file This would necessitate a bit of new structure in the repo, namely a Misc/NEWS.parts/ dir, containing directories for each section (Core Builtins, Library, etc.), which should also have a 'header.news' file to make each dir non-empty and for use with news_release.py. This second script would be used at release time, and would simply walk the Misc/NEWS.parts dirs, building Misc/NEWS from the individual files and deleting them as it goes. Beyond this basic functionality, there are other possible extensions, such as news.py gathering any information about the current change that is readily available and saving it in either comments at the tail end of the generated .news file, or in a separate .data file with the same base name, which news_release.py could then use for alternate NEWS formats (such as suitable output for Doc/whatsnew/changelog.rst with links to anything relevant). To make the usage more convenient, both scripts could be added to Makefile, a la `make patchcheck`. For Windows committers, there can either be a convenience batch file just for news.py, or I still hope to eventually get configure.bat/make.bat into a committable state. If anyone thinks this half-baked idea looks like it might be edible when it's done, I'd be happy to cobble together news.py and news_release.py in a sandbox repo. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18967 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19063] Python 3.3.3 encodes emails containing non-ascii data as 7bit
Vajrasky Kok added the comment: No review link? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19063 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19664] UserDict test assumes ordered dict repr
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19664 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19664] UserDict test assumes ordered dict repr
STINNER Victor added the comment: issue19664.patch looks good to me. Funny fact: test_repr() of test_dict only test dictionaries with 1 item :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19664 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8813] SSLContext doesn't support loading a CRL
Christian Heimes added the comment: But it's not about CRL alone. How about VERIFY_DEFAULT = 0 ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8813 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19063] Python 3.3.3 encodes emails containing non-ascii data as 7bit
R. David Murray added the comment: Ah, I posted a git-diff 3.3 patch. Let me repost it. -- Added file: http://bugs.python.org/file32757/support_8bit_charset_cte.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19063 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8813] SSLContext doesn't support loading a CRL
Antoine Pitrou added the comment: But it's not about CRL alone. How about VERIFY_DEFAULT = 0 ? Sounds good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8813 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19681] test_repr (test.test_functools.TestPartialC) failures
STINNER Victor added the comment: permutation() looks overkill to me for such trivial test. Here is a simpler approach: remove the second keyword :-) test_functools_repr.patch -- Added file: http://bugs.python.org/file32765/test_functools_repr.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19681 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19685] pip: open() uses the locale encoding to parse Python script, instead of the encoding cookie
Changes by STINNER Victor victor.stin...@gmail.com: -- title: open() fails to autodetect utf-8 if LANG=C - pip: open() uses the locale encoding to parse Python script, instead of the encoding cookie ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19685 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8813] SSLContext doesn't support loading a CRL
Roundup Robot added the comment: New changeset 83805c9d1f05 by Christian Heimes in branch 'default': Issue #8813: Add SSLContext.verify_flags to change the verification flags http://hg.python.org/cpython/rev/83805c9d1f05 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8813 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18967] Find a less conflict prone approach to Misc/NEWS
Nick Coghlan added the comment: Sounds plausible to me - I'd be interested in seeing an experimental version :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18967 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19681] test_repr (test.test_functools.TestPartialC) failures
Christian Heimes added the comment: I'm for Victors patch. Let's not get too fancy with tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19681 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8813] SSLContext doesn't support loading a CRL
Christian Heimes added the comment: memo to me: add whatsnew entry -- assignee: - christian.heimes resolution: - fixed stage: patch review - committed/rejected status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8813 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19681] test_repr (test.test_functools.TestPartialC) failures
Nick Coghlan added the comment: I'm pretty sure the second keyword is there to ensure the repr includes the appropriate commas. Can we just make a suitable dict and check the key order? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19681 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18874] Add a new tracemalloc module to trace memory allocations
Charles-François Natali added the comment: STINNER Victor added the comment: I'm not convinced myself that hashtable.c/h can be reused immediatly, so I prefer to move these two files to Modules. The files may be moved later if the containers are reused. Please do so. I'd also like to open an issue for this (to try to make hashtable reusable), to not forget it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18874 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19654] test_tkinter sporadic failures on x86 Tiger 3.x buildbot
Roundup Robot added the comment: New changeset cfbd894f1df1 by Serhiy Storchaka in branch '3.3': Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654). http://hg.python.org/cpython/rev/cfbd894f1df1 New changeset cf8ac1272e07 by Serhiy Storchaka in branch 'default': Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654). http://hg.python.org/cpython/rev/cf8ac1272e07 New changeset 08f282c96fd1 by Serhiy Storchaka in branch '2.7': Print Tk patchlevel in Tk and Ttk tests in verbose mode (issue19654). http://hg.python.org/cpython/rev/08f282c96fd1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19654 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19677] IDLE displaying a CoreAnimation warning
Changes by Ned Deily n...@acm.org: -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19677 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19683] test_minidom has many empty tests
New submission from Zachary Ware: Many of the tests in test_minidom on 2.7 are empty, that is they are defined as def testSomeFunction(self): pass. I've marked this issue as easy since I suspect a lot of the tests can be either backported from 3.x, or removed if they don't exist in 3.x. -- components: Tests keywords: easy messages: 203637 nosy: zach.ware priority: normal severity: normal stage: needs patch status: open title: test_minidom has many empty tests type: enhancement versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19683 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19682] _ssl won't compile with OSX 10.9 SDK
Christian Heimes added the comment: It's my fault and related to #18379. I'll fix it. -- assignee: ronaldoussoren - christian.heimes nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19682 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19683] test_minidom has many empty tests
R. David Murray added the comment: Well, we generally don't backport tests unless we are fixing related bugs. I think this should be left alone. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19683 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19681] test_repr (test.test_functools.TestPartialC) failures
STINNER Victor added the comment: Ok, here is a different patch sorting keywords. So it still checks how the C code joins keyword parameters. -- Added file: http://bugs.python.org/file32766/test_functools_repr2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19681 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()
STINNER Victor added the comment: return codecs.CodecInfo._declare_transform() I also prefer the private attribute option. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19619 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()
Serhiy Storchaka added the comment: Why return codecs.CodecInfo._declare_transform( name='base64', encode=base64_encode, decode=base64_decode, incrementalencoder=IncrementalEncoder, incrementaldecoder=IncrementalDecoder, streamwriter=StreamWriter, streamreader=StreamReader, ) instead of codec = codecs.CodecInfo( name='base64', encode=base64_encode, decode=base64_decode, incrementalencoder=IncrementalEncoder, incrementaldecoder=IncrementalDecoder, streamwriter=StreamWriter, streamreader=StreamReader, ) codec._is_text_encoding = False return codec ? I have added other minor comments on Rietveld. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19619 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19684] IDLE on OS X 10.6.8 crashes when opening a file
Will Adams added the comment: For some reason I got the impression that this only applied to some graphics library routines so I ignored the warnings. Thanks for the reply and sorry to take your time. On Nov 21, 2013, at 11:58 AM, Ned Deily wrote: Ned Deily added the comment: From the crash reports, it appears that you were trying to use IDLE with the Apple-supplied Tcl and Tk frameworks. OS X 10.6.x was the first release of the newer Aqua Cocoa Tk and it was very problematic. You should have seen a warning message when IDLE 2.7.6 started, warning you about this and advising you to go to http://www.python.org/download/mac/tcltk/ for further information. (The warning is also on the download pages and in the installer Readme.) You will read there: you should only use IDLE or tkinter with an updated third-party Tcl/Tk 8.5, like ActiveTcl 8.5, installed. Do that and IDLE 2.7.6 should behave properly. -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19684 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19684 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19677] IDLE displaying a CoreAnimation warning
Ronald Oussoren added the comment: Following the instruction in the log message would also be useful, that is, in a shell window: $ env CA_DEBUG_TRANSACTIONS=1 /Applications/Python\ 2.7/IDLE.app/Contents/MacOS/IDLE With some luck the stack trace will point to the source of the problem. As Ned wrote, that source is probably TkCocoa. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19677 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19555] SO config var not getting set
Roundup Robot added the comment: New changeset fedc2b8fbb6e by Barry Warsaw in branch 'default': - Issue #19555: Restore sysconfig.get_config_var('SO'), with a http://hg.python.org/cpython/rev/fedc2b8fbb6e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19555 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14455] plistlib unable to read json and binary plist files
Serhiy Storchaka added the comment: I have added a few comments on Rietveld. Besides formatting nitpicks your have forgot third argument in new warns and missed some details in tests. As for the rest the patch LGTM. If you have no time I will fixed this minor issues and will commited the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14455 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18874] Add a new tracemalloc module to trace memory allocations
STINNER Victor added the comment: FYI, the C OrderedDict implementation in #16991 implements its own doubly-linked list, built around the needs of OrderedDict. I looked into BSD's queue.h [1], but it ended up simpler to roll my own. Oh nice, it's probably possible to factorize code and have more unit tests on the implementation. It may be better to discuss this in a separated issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18874 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19681] test_repr (test.test_functools.TestPartialC) failures
Christian Heimes added the comment: The issue is causing flaky build bots and should be resolved soonish. I don't know what's the best way to fix the problem. Either the test needs to change or partial_repr() must print the keys in sorted order. -- nosy: +haypo, ncoghlan, rhettinger priority: normal - high stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19681 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19684] IDLE on OS X 10.6.8 crashes when opening a file
Ned Deily added the comment: From the crash reports, it appears that you were trying to use IDLE with the Apple-supplied Tcl and Tk frameworks. OS X 10.6.x was the first release of the newer Aqua Cocoa Tk and it was very problematic. You should have seen a warning message when IDLE 2.7.6 started, warning you about this and advising you to go to http://www.python.org/download/mac/tcltk/ for further information. (The warning is also on the download pages and in the installer Readme.) You will read there: you should only use IDLE or tkinter with an updated third-party Tcl/Tk 8.5, like ActiveTcl 8.5, installed. Do that and IDLE 2.7.6 should behave properly. -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19684 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19687] Fixes for elementtree integer overflow
New submission from Christian Heimes: The patch addresses most overflow errors in elementtree except for the problems in element_ass_subscr(). -- components: Library (Lib) files: elementtree_overflow.patch keywords: patch messages: 203702 nosy: christian.heimes, haypo priority: normal severity: normal stage: patch review status: open title: Fixes for elementtree integer overflow type: compile error versions: Python 3.4 Added file: http://bugs.python.org/file32767/elementtree_overflow.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19687 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14455] plistlib unable to read json and binary plist files
Serhiy Storchaka added the comment: I'm not sure about docstrings text (return vs returns, I don't remember what is better), but we can bikeshed it after beta 1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14455 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14455] plistlib unable to read json and binary plist files
Ronald Oussoren added the comment: Updated patch after next round of reviews. -- Added file: http://bugs.python.org/file32754/issue-14455-v10.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14455 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19664] UserDict test assumes ordered dict repr
Christian Heimes added the comment: Thanks Serhiy! Your patch was simple yet elegant. :) -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19664 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com