[issue19677] IDLE displaying a CoreAnimation warning

2013-11-21 Thread Ned Deily
Ned Deily added the comment: Since the message is coming from Cocoa layers of OS X, this is undoubtedly a Tk issue, rather than a Python issue. What version of Tcl/Tk are you using: ActiveTcl 8.5.15.1? Suggest you open an issue on the Tk bug tracker and/or the ActiveState bug tracker. http

[issue19682] _ssl won't compile with OSX 10.9 SDK

2013-11-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: That's quick... The patch fixes the issue for me as well. Thanks! -- resolution: -> fixed stage: needs patch -> commit review status: open -> closed ___ Python tracker ___

[issue19667] Add the "htmlcharrefreplace" error handler

2013-11-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: As long as it isn't built-in, I see no problems for including it personally. -- nosy: +pitrou ___ Python tracker ___ ___

[issue19680] Help missing for exec and print

2013-11-21 Thread Bohuslav "Slavek" Kabrda
New submission from Bohuslav "Slavek" Kabrda: Steps to reproduce: [bkabrda@zizalka python]$ python >>> help() help> keywords # prints lots of keywords including "print" and "exec" help> print no documentation found for 'print' So either keywords should not list "print" and "exec" or the docu

[issue14455] plistlib unable to read json and binary plist files

2013-11-21 Thread Ronald Oussoren
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 ___ _

[issue14455] plistlib unable to read json and binary plist files

2013-11-21 Thread Serhiy Storchaka
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

[issue19386] selectors test_interrupted_retry is flaky

2013-11-21 Thread R. David Murray
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

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2013-11-21 Thread Brett Cannon
Brett Cannon added the comment: Semantic-affecting changes first, then fluffy bits in terms of priority. Basically go based on what is most critical to be in 3.4. And yes, basically can you comment out find_module/find_loader/load_module and execute the test suite (sans import-related tests) w

[issue19684] IDLE on OS X 10.6.8 crashes when opening a file

2013-11-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> ronaldoussoren components: +Macintosh nosy: +hynek, kbk, ned.deily, roger.serwy, ronaldoussoren, terry.reedy title: OS X 10.6.8 Crash when opening a file -> IDLE on OS X 10.6.8 crashes when opening a file __

[issue8813] SSLContext doesn't support loading a CRL

2013-11-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: That sounds too generic. How about VERIFY_CRL_NONE, etc. -- ___ Python tracker ___ ___ Python-bugs-li

[issue19063] Python 3.3.3 encodes emails containing non-ascii data as 7bit

2013-11-21 Thread R. David Murray
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 ___

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-21 Thread Eric Snow
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

[issue19684] IDLE on OS X 10.6.8 crashes when opening a file

2013-11-21 Thread Will Adams
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: > >> Fro

[issue19063] Python 3.3.3 encodes emails containing non-ascii data as 7bit

2013-11-21 Thread Vajrasky Kok
Vajrasky Kok added the comment: No review link? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue19684] OS X 10.6.8 Crash when opening a file

2013-11-21 Thread Will Adams
New submission from Will Adams: Apologies in advance if I am posting incorrectly. This is my first post here. IDLE crashes when I open a *.py file on my old mac pro from IDLE. I haven't seen this on version 3.3.2, but I need to do some work in version 2.7 today so I downloaded 2.7.6 and ra

[issue19664] UserDict test assumes ordered dict repr

2013-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for test_userdict. -- keywords: +patch nosy: +serhiy.storchaka Added file: http://bugs.python.org/file32759/issue19664.patch ___ Python tracker __

[issue8813] SSLContext doesn't support loading a CRL

2013-11-21 Thread Christian Heimes
Christian Heimes added the comment: The new patch addresses your review. I have altered the new to FLAGS_NONE, FLAGS_CLR_CHECK_LEAF etc. -- Added file: http://bugs.python.org/file32760/verify_flags_crl2.patch ___ Python tracker

[issue19684] IDLE on OS X 10.6.8 crashes when opening a file

2013-11-21 Thread Ned Deily
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

[issue19681] test_repr (test.test_functools.TestPartialC) failures

2013-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for test_functools. -- keywords: +patch nosy: +serhiy.storchaka Added file: http://bugs.python.org/file32758/issue19681.patch ___ Python tracker _

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-21 Thread STINNER Victor
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_cach

[issue17916] Provide dis.Bytecode based equivalent of dis.distb

2013-11-21 Thread Nick Coghlan
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_of

[issue19679] smtpd.py (SMTPChannel): get rid of "conn" attribute

2013-11-21 Thread Leslie P. Polzer
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 t

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-21 Thread STINNER Victor
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. -- ___

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-21 Thread STINNER Victor
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 *

[issue17916] Provide dis.Bytecode based equivalent of dis.distb

2013-11-21 Thread Claudiu.Popa
Claudiu.Popa added the comment: Nick, what's your opinion on my latest patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-21 Thread Nick Coghlan
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

[issue19666] Format string for ASCII unicode or bytes-like object as readonly buffer

2013-11-21 Thread STINNER Victor
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. -- ___

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-21 Thread STINNER Victor
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 w

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-21 Thread STINNER Victor
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 _

[issue19575] subprocess: on Windows, unwanted file handles are inherited by child processes in a multithreaded application

2013-11-21 Thread STINNER Victor
Changes by STINNER Victor : -- 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 __

[issue19568] bytearray_setslice_linear() leaves the bytearray in an inconsistent state on memory allocation failure

2013-11-21 Thread STINNER Victor
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();

[issue19568] bytearray_setslice_linear() leaves the bytearray in an inconsistent state on memory allocation failure

2013-11-21 Thread Roundup Robot
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:

[issue14455] plistlib unable to read json and binary plist files

2013-11-21 Thread Ronald Oussoren
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 convenie

[issue19578] del list[a:b:c] doesn't handle correctly list_resize() failure

2013-11-21 Thread Roundup Robot
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 s

[issue19679] smtpd.py: implement ESMTP status messages

2013-11-21 Thread Leslie P. Polzer
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

[issue19678] smtpd.py: channel should be passed to process_message

2013-11-21 Thread Leslie P. Polzer
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

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-21 Thread STINNER Victor
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

[issue19674] Add introspection information for builtins

2013-11-21 Thread Nick Coghlan
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 _

[issue19568] bytearray_setslice_linear() leaves the bytearray in an inconsistent state on memory allocation failure

2013-11-21 Thread Serhiy Storchaka
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 ___

[issue19637] test_subprocess.test_undecodable_env() failure on AIX

2013-11-21 Thread STINNER Victor
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

[issue19661] AIX: Python: RuntimeError "invalid slot offset when importing a module" in _ssl module

2013-11-21 Thread dellair jie
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-py

[issue19599] Failure of test_async_timeout() of test_multiprocessing_spawn: TimeoutError not raised

2013-11-21 Thread STINNER Victor
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 _

[issue19652] test_asyncio: test_subprocess_send_signal() hangs on buildbot "AMD64 Snow Leop 3.x"

2013-11-21 Thread STINNER Victor
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 CPyth

[issue19641] Add audioop.byteswap()

2013-11-21 Thread Serhiy Storchaka
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

[issue19578] del list[a:b:c] doesn't handle correctly list_resize() failure

2013-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch is very simple and LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue14373] C implementation of functools.lru_cache

2013-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm working on this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue19668] Add support of the cp1125 encoding

2013-11-21 Thread Serhiy Storchaka
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 "Ўў

[issue19575] subprocess: on Windows, unwanted file handles are inherit by child processes in a multithreaded application

2013-11-21 Thread STINNER Victor
Changes by STINNER Victor : -- 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 __

[issue14373] C implementation of functools.lru_cache

2013-11-21 Thread Brecht Machiels
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 ___ _

[issue19575] subprocess.Popen with multiple threads: Redirected stdout/stderr files still open after process close

2013-11-21 Thread STINNER Victor
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, Se

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-11-21 Thread Roundup Robot
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 ___

[issue19668] Add support of the cp1125 encoding

2013-11-21 Thread Marc-Andre Lemburg
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 ad

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-21 Thread Serhiy Storchaka
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 _

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-21 Thread STINNER Victor
STINNER Victor added the comment: So, which suffix should be used? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2013-11-21 Thread STINNER Victor
STINNER Victor added the comment: Thanks Ezio and Serhiy for having fix UTF-16 and UTF-32 codecs! -- ___ Python tracker ___ ___ Python

[issue19633] test_wave: failures on PPC64 buildbot

2013-11-21 Thread Roundup Robot
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:

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-21 Thread STINNER Victor
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 corre

[issue19677] IDLE displaying a CoreAnimation warning

2013-11-21 Thread Raymond Hettinger
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. ---

[issue19663] Not so correct error message when initializing defaultdict

2013-11-21 Thread Raymond Hettinger
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

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-21 Thread Charles-François Natali
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))); """ -- ___ Py

[issue11854] __or__ et al instantiate subclass of set without calling __init__

2013-11-21 Thread Mark Dickinson
Mark Dickinson added the comment: Can this issue be closed as 'wont fix'? -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-b

[issue19668] Add support of the cp1125 encoding

2013-11-21 Thread Serhiy Storchaka
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 tracke

[issue19664] UserDict test assumes ordered dict repr

2013-11-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue19674] Add introspection information for builtins

2013-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Great! See also issue16842 and issue16638. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ P

[issue17145] memoryview(array.array)

2013-11-21 Thread mpb
Changes by mpb : -- nosy: +mpb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/

[issue19588] Silently skipped test in test_random

2013-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Original test was added in issue812202. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

<    1   2