[issue18558] Iterable glossary entry needs clarification

2013-08-01 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: Maybe this would have been more appropriate as a question on StackOverflow: What is the proper way of asking if an object is iterable if it does not support the iterator protocol but does support the old getitem protocol? One might argue that it is bett

[issue10241] gc fixes for module m_copy attribute

2013-08-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue18614] Enhanced \N{} escapes for Unicode strings

2013-08-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with the proposal. Some of the code seems redundant with code we already have. In Python, I would write def codepoint_from_U_notation(name, namelen): if not (4 <= namelen <= 6): raise return chr(int(name, 16)) maybe with try-except to re-write err

[issue18023] msi product code for 2.7.5150 not in Tools/msi/uuids.py

2013-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: I have now added the uuid. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue18623] Factor out the _SuppressCoreFiles context manager

2013-08-01 Thread Antoine Pitrou
New submission from Antoine Pitrou: _SuppressCoreFiles in test_subprocess is a useful facility for other tests, for instance test_faulthandler (which has its own logic) or test_capi (which actually happily dumps core in one of its subtests). It could probably be factored out into test.support.

[issue18623] Factor out the _SuppressCoreFiles context manager

2013-08-01 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16463] testConnectTimeout of test_timeout TCPTimeoutTestCasefailures fails intermittently

2013-08-01 Thread Ned Deily
Ned Deily added the comment: Also fails occasionally on OS X 3.3 and 3.x with much smaller deltas: == FAIL: testConnectTimeout (test.test_timeout.TCPTimeoutTestCase) --

[issue10241] gc fixes for module m_copy attribute

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I managed to get a core dump locally. Interestingly, it may be that the _tk module is the culprit. The backtrace is the following: #0 0x7ff6c5e14aab in raise () from /lib/x86_64-linux-gnu/libpthread.so.0 #1 0x0044e57e in faulthandler_fatal_error (

[issue18623] Factor out the _SuppressCoreFiles context manager

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, and the recursion limit tests in test_sys dump core too... -- ___ Python tracker ___ ___ Python-

[issue18609] test_ctypes failure on AIX in PyEval_CallObjectWithKeywords

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset de1ea7f84e08 by Victor Stinner in branch 'default': Issue #18609, #18408: _ctypes_add_traceback() now clears the current exception http://hg.python.org/cpython/rev/de1ea7f84e08 -- nosy: +python-dev ___ Py

[issue18408] Fixes crashes found by pyfailmalloc

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset de1ea7f84e08 by Victor Stinner in branch 'default': Issue #18609, #18408: _ctypes_add_traceback() now clears the current exception http://hg.python.org/cpython/rev/de1ea7f84e08 -- ___ Python tracker

[issue10241] gc fixes for module m_copy attribute

2013-08-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: _tkinter uses PyType_FromSpec() to create its types and then adds them to the module dict without increfing them, so there may be a refcount issue explaining that those types get garbage collected before all their instances die. -- ___

[issue18609] test_ctypes failure on AIX in PyEval_CallObjectWithKeywords

2013-08-01 Thread STINNER Victor
STINNER Victor added the comment: This issue is not a bug, but a new assertion added by myself for the issue #18408. The idea is to not call a Python function with an exception set, because the exception may be cleared or replaced (ex: hasattr() clears the current exception if an attribute is

[issue18605] 2.7: test_threading hangs on Solaris 9

2013-08-01 Thread Maciej Bliziński
Maciej Bliziński added the comment: Test results for sources pulled from the mercurial repository: they hang in the same place. == CPython 3.4.0a0 (default, Aug 2 2013, 00:38:45) [GCC 4.6.3] == Solaris-2.9-sun4u-sparc-32bit-ELF big-endian == /home/maciej/src/cpython/build/test_python_19419

[issue18624] Add alias for iso-8859-8-i which is the same as iso-8859-8

2013-08-01 Thread R. David Murray
New submission from R. David Murray: Emails and web pages may specify a character set of iso-8859-8-i, which has exactly the same code points as iso-8859-8. The -i has to do with how bi-directional text is handled, but doesn't affect the encoding: http://lists.w3.org/Archives/Public/www-valida

[issue18558] Iterable glossary entry needs clarification

2013-08-01 Thread R. David Murray
R. David Murray added the comment: “What is the proper way of asking if an object is iterable if it does not support the iterator protocol but does support the old getitem protocol?” The *only* answer to that question is to try to iterate it, and see if you get a KeyError on "0". Since this r

[issue18519] test_sqlite crashes on OS X tiger 3.x buildbot

2013-08-01 Thread STINNER Victor
STINNER Victor added the comment: ned> The changes for this issue appear to have changed the behavior of test_sqlite. David> Heh, that's the kind of behavior change I was worried about :( I don't understand why the test is failing, nor why it is only failing on one specific buildbot. Does it m

[issue18519] test_sqlite crashes on OS X tiger 3.x buildbot

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset c73f4dced6aa by Victor Stinner in branch 'default': Issue #18519: Fix test_sqlite on old versions of libsqlite3 http://hg.python.org/cpython/rev/c73f4dced6aa -- ___ Python tracker

[issue14956] custom PYTHONPATH may break apps embedding Python

2013-08-01 Thread Kevin Harms
Kevin Harms added the comment: As far as I can tell, this issue is not resolved. It would be very nice for the C API to have the equivalent for -E for security reasons. I would like to make a setgid binary and do not want users to be able to set PYTHON* variables to force loading of custom cod

[issue18625] ks_c-5601-1987 is used by microsoft when it really means cp949

2013-08-01 Thread R. David Murray
New submission from R. David Murray: When Microsoft handles Korean text, it uses its own code page, cp949, which is a superset of ks_c-5601-1987. But when talking to the rest of the world, it claims that the character set name is ks_c-5601-1987. This means that text claimed to be in ks_c-560

[issue18519] test_sqlite crashes on OS X tiger 3.x buildbot

2013-08-01 Thread STINNER Victor
STINNER Victor added the comment: > I don't understand the relation between my changesets and this failure. Ok, I found the reason in the definition of the _sqlite3_result_error() function. This function behave differently on old sqlite versions: it raises a new exception. The issue should now b

[issue18519] test_sqlite crashes on OS X tiger 3.x buildbot

2013-08-01 Thread Ned Deily
Ned Deily added the comment: c73f4dced6aa appears to fix the problem on 10.4 Tiger. Thanks! -- ___ Python tracker ___ ___ Python-bugs

[issue18519] test_sqlite crashes on OS X tiger 3.x buildbot

2013-08-01 Thread STINNER Victor
STINNER Victor added the comment: There is no more known bug, i'm closing this issue. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue17145] memoryview(array.array)

2013-08-01 Thread Demian Brecht
Demian Brecht added the comment: Bump. If the patch (or request) is invalid, might be worthwhile closing this issue (although I still think it's valid ;)). -- ___ Python tracker ___

[issue18472] Update PEP 8 to encourage modern conventions

2013-08-01 Thread Guido van Rossum
Guido van Rossum added the comment: Patch applied. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset e51cbc45f4ca by Larry Hastings in branch 'default': Issue #17899: Fix rare file descriptor leak in os.listdir(). http://hg.python.org/cpython/rev/e51cbc45f4ca -- nosy: +python-dev ___ Python tracker

[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset bf68711bc939 by Larry Hastings in branch '3.3': Issue #17899: Fix rare file descriptor leak in os.listdir(). http://hg.python.org/cpython/rev/bf68711bc939 -- ___ Python tracker

[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

2013-08-01 Thread Larry Hastings
Larry Hastings added the comment: Marking as closed/fixed. -- assignee: -> larry resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue18626] Make "python -m inspect " dump the source of a module

2013-08-01 Thread Nick Coghlan
New submission from Nick Coghlan: "python -m inspect " doesn't currently do anything. It would be handy if this: python -m inspect site Was roughly equivalent to: python -c "import inspect, site; print(inspect.getsource(site))" Even better would be if it understood entry point notati

[issue17557] test_getgroups of test_posix can fail on OS X 10.8 if more than 16 groups

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d3b7e0559a0 by Ned Deily in branch '2.7': Issue #17557: Fix os.getgroups() to work with the modified behavior of http://hg.python.org/cpython/rev/6d3b7e0559a0 New changeset 0a4afa8833b5 by Ned Deily in branch '3.3': Issue #17557: Fix os.getgroups()

[issue18627] Typo in Modules/hashlib.h

2013-08-01 Thread Vajrasky Kok
New submission from Vajrasky Kok: Got typo in Modules/hashlib.h. See this patch for detail: --- a/Modules/hashlib.h Wed Jul 31 20:48:26 2013 -0400 +++ b/Modules/hashlib.h Fri Aug 02 12:39:00 2013 +0800 @@ -2,7 +2,7 @@ /* * Given a PyObject* obj, fill in the Py_buffer* viewp with the result

[issue17557] test_getgroups of test_posix can fail on OS X 10.8 if more than 16 groups

2013-08-01 Thread Ned Deily
Ned Deily added the comment: Committed patch (with slight modifications) for release in 2.7.6, 3.3.3, and 3.4.0. Thanks again, Mateusz. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 3.2

[issue18628] PEP 8 and encodings

2013-08-01 Thread Terry J. Reedy
New submission from Terry J. Reedy: Three related doc change proposals. The Versions only apply to the third as the first two are for PEP 8. 1. PEP 8 has a section entitled "Encodings (PEP 263)" with a link to the verbose PEP. I think it would be better if it were "Source Encoding" with a lin

[issue18626] Make "python -m inspect " dump the source of a module

2013-08-01 Thread Eric Snow
Eric Snow added the comment: At the risk of unnecessary complication, there is also other information that could be output, depending on the referenced object (module vs. class/func via qualname). For instance, a module's __file__ would be handy. So, the output could have a "header" with the

[issue18627] Typo in Modules/hashlib.h

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3716d64f846b by Ned Deily in branch '3.3': Issue #18627: Fix typo noticed by Vajrasky Kok. http://hg.python.org/cpython/rev/3716d64f846b New changeset 454e9db1c750 by Ned Deily in branch 'default': Closes #18627: merge from 3.3 http://hg.python.org/

[issue18627] Typo in Modules/hashlib.h

2013-08-01 Thread Ned Deily
Changes by Ned Deily : -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue18550] internal_setblocking() doesn't check return value of fcntl()

2013-08-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: It's a bit tedious, but not too bad. The attached patch appears to work, but needs review (especially for the Windows and VMS branches in internal_setblocking. This changes the return value of internal_setblocking, it was unconditionally 1 and is now -1 if t

[issue4885] mmap enhancement request

2013-08-01 Thread Valerie Lambert
Valerie Lambert added the comment: I've uploaded a patch to make mmap_obj support weakref. A test is included in the patch. -- keywords: +patch nosy: +lambertv Added file: http://bugs.python.org/file31115/issue-4885.patch ___ Python tracker

[issue18517] "xxlimited" extension declared incorrectly in setup.py

2013-08-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset e5607874e8ff by Ned Deily in branch '3.3': Issue #18517: Move definition of "xxlimited" extension to detect_modules(). http://hg.python.org/cpython/rev/e5607874e8ff New changeset 1d832bc857e2 by Ned Deily in branch 'default': Issue #18517: merge fro

[issue16945] rewrite CGIHTTPRequestHandler to always use subprocess

2013-08-01 Thread Charles-François Natali
Charles-François Natali added the comment: Marking #10496 as a dependency (since it could prevent Python from running with low level privileges). -- dependencies: +Python startup should not require passwd entry ___ Python tracker

<    1   2