[issue18393] Gestalt() is deprecated on OSX 10.8, remove support?

2013-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7272ef213b7c by Ronald Oussoren in branch 'default': Also remove a (broken) leaker test for the code removed in issue #18393. http://hg.python.org/cpython/rev/7272ef213b7c -- ___ Python tracker

[issue18444] IDLE: Mac OS X pressing ctrl-A in Python shell moved cursor before the prompt, which then makes the keyboard unresponsive.

2013-07-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: Raymond: good to hear that using fn+F5 is not a problem for new users -- ___ Python tracker ___ ___

[issue18444] IDLE: Mac OS X pressing ctrl-A in Python shell moved cursor before the prompt, which then makes the keyboard unresponsive.

2013-07-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: > BTW. I don't think it using function keys for key bindings is > necessarily a good idea on OSX. I'm pretty sure that the default > keyboard settings on OSX require two key presses to use a function > key on OSX laptops On Mac laptops, there is separate "fn

[issue18425] IDLE Unit test for IdleHistory.py

2013-07-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I said on one of the other issues, which I hope you read, we have the option of gui tests when mocking becomes too complicated. So at least for now, put the test that requires marks in a separate test case with requires('gui') in setUPClass. The problem wi

[issue18470] tokenizer.c does not handle new_string() failure

2013-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2650127ce034 by Benjamin Peterson in branch 'default': merge 3.3 (closes #18470) http://hg.python.org/cpython/rev/2650127ce034 -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue18448] Tools/demo/eiffel.py fails to run tests.

2013-07-15 Thread Févry Thibault
Févry Thibault added the comment: Interessting update : The test does *not* fail all the time. It succeeds about 1/3 times on my computer. -- ___ Python tracker ___

[issue18470] tokenizer.c does not handle new_string() failure

2013-07-15 Thread STINNER Victor
STINNER Victor added the comment: The fix has not been merged into default. -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___

[issue18470] tokenizer.c does not handle new_string() failure

2013-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3a510b22218 by Benjamin Peterson in branch '3.3': check the return value of new_string() (closes #18470) http://hg.python.org/cpython/rev/c3a510b22218 New changeset 8889c9b5dd3a by Benjamin Peterson in branch '3.3': merge 3.3 (#18470) http://hg.pyt

[issue18441] Idle: Make test.support.requires('gui') skip when it should.

2013-07-15 Thread Todd Rovito
Changes by Todd Rovito : -- nosy: +philwebster ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue18441] Idle: Make test.support.requires('gui') skip when it should.

2013-07-15 Thread Todd Rovito
Changes by Todd Rovito : -- nosy: +JayKrish ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue18441] Idle: Make test.support.requires('gui') skip when it should.

2013-07-15 Thread Todd Rovito
Changes by Todd Rovito : -- nosy: +Todd.Rovito ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue18471] Typo in heapq documentation

2013-07-15 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. -- nosy: +ned.deily versions: +Python 2.7, Python 3.4 ___ Python tracker ___ ___ P

[issue18471] Typo in heapq documentation

2013-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 236e6b995300 by Ned Deily in branch '2.7': Issue #18471: Fix typo in heapq documentation (reported by François Pinard). http://hg.python.org/cpython/rev/236e6b995300 New changeset e22dd5fda5a8 by Ned Deily in branch '3.3': Issue #18471: Fix typo in

[issue18305] [patch] Fast sum() for non-numbers

2013-07-15 Thread Sergey
Sergey added the comment: > This is not a common case. A common case is creating short tuples and keeping > a lot of tuples in memory. > For fast += you need keep not only a size of tuple, but also a size of > allocated memory. It's a cause of sys.getsizeof([1, 2]) > sys.getsizeof((1, > 2)).

[issue18471] Typo in heapq documentation

2013-07-15 Thread François Pinard
New submission from François Pinard: Within http://docs.python.org/3/library/heapq.html#theory, a sentence begins with "When an event schedule" while it should be spelled "When an event schedules". The same may be observed in Python 2 documentation. -- assignee: docs@python components

[issue18470] tokenizer.c does not handle new_string() failure

2013-07-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-15 Thread STINNER Victor
STINNER Victor added the comment: New issue #18470: "tokenizer.c does not handle new_string() failure". -- ___ Python tracker ___ ___

[issue18470] tokenizer.c does not handle new_string() failure

2013-07-15 Thread STINNER Victor
New submission from STINNER Victor: Callers of the new_string() function do not check if the function succeed or not. Python does crash if the function failed, for example in get_coding_spec(): char* r = new_string(begin, t - begin); char* q = get_normal_name(r);

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-15 Thread STINNER Victor
STINNER Victor added the comment: import_init() calls Py_FatalError() at any error. This is not kind for Py_NewInterpreter() which calls import_init(): Py_NewInterpreter() exits Python with a fatal error, instead of returning NULL, on import_init() failure. --

[issue18469] PyStructSequence does not handle exceptions correctly

2013-07-15 Thread STINNER Victor
STINNER Victor added the comment: This issue is common in test_datetime and test_import tests using failmalloc, especially if _PyErr_BadInternalCall() fails immedialy with an assertion error. -- ___ Python tracker

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-15 Thread STINNER Victor
STINNER Victor added the comment: I created the issue #18469: "PyStructSequence does not handle exceptions correctly". -- ___ Python tracker ___

[issue18469] PyStructSequence does not handle exceptions correctly

2013-07-15 Thread STINNER Victor
New submission from STINNER Victor: Using pyfailmalloc (*) (see issue #18408), I found bugs in the PyStructSequence API. The following macros in Objects/structseq.c does not check for exceptions: #define VISIBLE_SIZE(op) Py_SIZE(op) #define VISIBLE_SIZE_TP(tp) PyLong_AsLong( \

[issue18418] Thread.isAlive() sometimes True after fork

2013-07-15 Thread A. Jesse Jiryu Davis
Changes by A. Jesse Jiryu Davis : Added file: http://bugs.python.org/file30935/fix_is_alive_and_fork_python_33.patch ___ Python tracker ___ _

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e42c0a39321 by Victor Stinner in branch 'default': Issue #18408: Fix _Py_DisplaySourceLine() http://hg.python.org/cpython/rev/2e42c0a39321 New changeset 92a9ccb2a521 by Victor Stinner in branch 'default': Issue #18408: add more assertions on PyErr_

[issue18418] Thread.isAlive() sometimes True after fork

2013-07-15 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: Patch #2: * Add comment before .set() as requested. * setcheckinterval(0) and try 20 times to repro the bug, inspired by test_enumerate_after_join. This reliably repros in 2.7.5. -- Added file: http://bugs.python.org/file30934/fix_is_alive_and_f

[issue18468] re.group() should never return a bytearray

2013-07-15 Thread Guido van Rossum
New submission from Guido van Rossum: I discovered that the Python 3 version of the re module's Match object behaves subtly different from the Python 2 version when the target string (i.e. the haystack, not the needle) is a buffer object. In Python 2, the type of the return value of group() is a

[issue18467] argparse - problematic 'default' behavior

2013-07-15 Thread Matěj Týč
New submission from Matěj Týč: I have an issue with passing default values to arguments. Basically, I would like to have a 'choices' argument (indicating something using capital letters) and perform custom action (adding boolean values to the args namespace). See the bottom of this post for rat

[issue18463] Download > Other documentation page outdated/dead links

2013-07-15 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. The S60 section now links to a Wikipedia page which gives a better overview and to the Sourceforge download link for the original project. I've removed the dead link to the other VMS project. -- nosy: +ned.deily resolution: -> fixed

[issue18462] Download > Other documentation page contains a link to a french poker site

2013-07-15 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. Since there doesn't seem to be an obvious replacement web page, I've removed the reference to this port. -- nosy: +ned.deily resolution: -> fixed stage: -> committed/rejected status: open -> closed type: enhancement ->

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 735e3c43e61c by Victor Stinner in branch 'default': Issue #18408: Fix pyexpat.ParserCreate() http://hg.python.org/cpython/rev/735e3c43e61c New changeset 27f8ccce687d by Victor Stinner in branch 'default': Issue #18408: Fix CJK decoders, raise Memory

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-15 Thread STINNER Victor
STINNER Victor added the comment: frame_fasttolocals.patch: Add a new PyFrame_FastToLocalsWithError() function, same than PyFrame_FastToLocals(), except that errors are reported. This function is not atomic: if an error occurs in the middle of map_to_dict(), the frame can enter an inconsistent

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-15 Thread STINNER Victor
STINNER Victor added the comment: listpop.patch: list_ass_slice() now handles listresize() failure when items are deleted. -- Added file: http://bugs.python.org/file30932/listpop.patch ___ Python tracker _

[issue12014] str.format parses replacement field incorrectly

2013-07-15 Thread Ben Wolfson
Ben Wolfson added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue18444] IDLE: Mac OS X pressing ctrl-A in Python shell moved cursor before the prompt, which then makes the keyboard unresponsive.

2013-07-15 Thread Ned Deily
Ned Deily added the comment: I think that those two requirements, i.e. (1) a set of key bindings compatible with standard Cocoa text key bindings and (2) a set of key bindings kept in sync across all IDLE platforms, would be desirable but probably unattainable. A good next step would be for s

[issue18418] Thread.isAlive() sometimes True after fork

2013-07-15 Thread Charles-François Natali
Charles-François Natali added the comment: > If you want a consistent reproducible test case for this I believe you will > need to replace the Thread object's __started with a test wrapper who's set() > method blocks waiting for for the fork to have happened before doing the > actual set(). T

[issue18455] Multiprocessing connection SocketClient retries connection on socket

2013-07-15 Thread Richard Oudkerk
Richard Oudkerk added the comment: Thanks for the report. This should be fixed now in 2.7. (3.1 and 3.2 only get security fixes.) -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue18440] hash() and __hash__() do not document their size constraints

2013-07-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18440] hash() and __hash__() do not document their size constraints

2013-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8fe13940b033 by Barry Warsaw in branch '3.3': - Issue #18440: Clarify that `hash()` can truncate the value returned from an http://hg.python.org/cpython/rev/8fe13940b033 New changeset f01f0c9cbcc8 by Barry Warsaw in branch 'default': - Issue #18440:

[issue18418] Thread.isAlive() sometimes True after fork

2013-07-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: This patch makes sense to me. I've gone over the code and I cannot spot any adverse effects. I was wondering in particular if anything would be surprised to find a non-started thread in _active within the short window where that will be true but nothing ap

[issue18440] hash() and __hash__() do not document their size constraints

2013-07-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-15 Thread Ron Adam
Ron Adam added the comment: I agree the specific content for each symbol are separate issues. Those are probably best addressed individually or a few at a time when they are closely related. -- ___ Python tracker

[issue18460] .chm documentation files advertised in download.html but not there.

2013-07-15 Thread Ned Deily
Changes by Ned Deily : -- nosy: +georg.brandl, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-15 Thread Ron Adam
Ron Adam added the comment: Patch update: "<>" removed from pydoc symbols table. -- Added file: http://bugs.python.org/file30931/pdoc_symbols.diff ___ Python tracker ___

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-15 Thread Ron Adam
Changes by Ron Adam : Removed file: http://bugs.python.org/file30922/pdoc_symbols.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue18344] _bufferedreader_read_all() may leak reference to data

2013-07-15 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- resolution: -> fixed stage: needs patch -> committed/rejected ___ Python tracker ___ ___ Python-bugs-

[issue18455] Multiprocessing connection SocketClient retries connection on socket

2013-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 542a317d4351 by Richard Oudkerk in branch '2.7': Issue #18455: multiprocessing should not retry connect() with same socket. http://hg.python.org/cpython/rev/542a317d4351 -- nosy: +python-dev ___ Python tr

[issue18466] Spelling mistakes in various code comments.

2013-07-15 Thread Févry Thibault
New submission from Févry Thibault: The attached patch fixes spelling mistakes found on various comments, mainly in /Lib/. I choose not to correct things like 'everytime' since the main goal was to improve readability and not turn useful technical comments into English litterature. I hope this

[issue18344] _bufferedreader_read_all() may leak reference to data

2013-07-15 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue18393] Gestalt() is deprecated on OSX 10.8, remove support?

2013-07-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: I won't backport to 3.3 or 2.7, it is highly unlikely that the API will actually be removed anytime soon. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue18427] str.replace causes segfault for long strings

2013-07-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: Serhiy: you're right. I've moved the message to the correct section. -- ___ Python tracker ___ ___

[issue18427] str.replace causes segfault for long strings

2013-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 06d9f106c57e by Ronald Oussoren in branch '2.7': Move entry from #18427 to the right section in the NEWS file http://hg.python.org/cpython/rev/06d9f106c57e -- ___ Python tracker

[issue18393] Gestalt() is deprecated on OSX 10.8, remove support?

2013-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset ccbaf6762b54 by Ronald Oussoren in branch 'default': Issue #18393: Remove use of deprecated API on OSX http://hg.python.org/cpython/rev/ccbaf6762b54 -- nosy: +python-dev ___ Python tracker

[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-15 Thread Zachary Ware
Zachary Ware added the comment: Aside from '<>' still being present, the patch looks good to me. There are a couple of issues with content, but those are separate from this issue. (For instance, '~', '>>', and '<<' direct to the BITWISE page, which doesn't mention any of them at all.) -

[issue18464] Typo in the name of function in test__encoded_words.py

2013-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6a6ca7c49c2a by R David Murray in branch '3.3': Closes #18464: fix typo in test name. http://hg.python.org/cpython/rev/6a6ca7c49c2a New changeset 47a659bc11c4 by R David Murray in branch 'default': Merge: Closes #18464: fix typo in test name. http:/

[issue18465] There are unused variables and unused import in Lib/test/test_minidom.py

2013-07-15 Thread Vajrasky Kok
New submission from Vajrasky Kok: The unit test file imports verbose from test.support, but it never used it. The child2 variable inside testRemoveAttributeNode is not used. The doc variable inside testHasChildNodes is not used. Attached the menial fix for this unit test. -- component

[issue11874] argparse assertion failure with brackets in metavars

2013-07-15 Thread Vajrasky Kok
Vajrasky Kok added the comment: paul j3, thanks for reviewing my patch and giving me credit in your patch for another ticket. Yeah, as you could see, the reason I return arg_parts and text is because the text still needs to undergo the cleanup process. You solved it by putting cleaning up in

[issue18464] Typo in the name of function in test__encoded_words.py

2013-07-15 Thread Vajrasky Kok
New submission from Vajrasky Kok: There is a typo in the name of function in test__encoded_words.py. Python 3.4, Lib/test/test_email/test__encoded_words.py, line 78: def test_q_escpaed_bytes_preserved(self): It is supposed to be (I guess): def test_q_escaped_bytes_preserved(self): --

[issue18344] _bufferedreader_read_all() may leak reference to data

2013-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9ce863993a38 by Richard Oudkerk in branch '3.3': Issue #18344: Fix potential ref-leaks in _bufferedreader_read_all(). http://hg.python.org/cpython/rev/9ce863993a38 New changeset 9b041f44cb63 by Richard Oudkerk in branch 'default': Issue #18344: Fix

[issue18181] super vs. someclass.__getattribute__

2013-07-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: issue18181-locallookup-only-super.txt implements the current version of PEP 447, but only for the super object. In this version of the patch normal attribute lookup (object.__getattribute__ and PyObject_GenericGetAttr) are not yet affected. Another open iss

[issue12944] Accept arbitrary files for packaging's upload command

2013-07-15 Thread Aaron Meurer
Changes by Aaron Meurer : -- nosy: +Aaron.Meurer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18461] X Error in tkinter

2013-07-15 Thread Zachary Ware
Zachary Ware added the comment: I've done a small amount of testing on Windows (both with the issue18457 patch applied and without), and there is no such crash there. Output isn't what is expected (the cell is lengthened, but nothing is shown), but no crash. -- nosy: +zach.ware _

[issue18436] Add mapping of symbol to function to operator module

2013-07-15 Thread Nick Coghlan
Nick Coghlan added the comment: I liked Ron's suggestion of using it to improve the output of help() (by getting access to the docstrings of the operator functions, and then enhancing those to be a bit more informative) -- ___ Python tracker

[issue18436] Add mapping of symbol to function to operator module

2013-07-15 Thread Zachary Ware
Zachary Ware added the comment: The purpose is to make usage of the operator module more readable, particularly for some of the more exotic operators. For instance, I find ``operator.get_op(">>=")`` to be a lot more obvious about what's going to happen than ``operator.irshift``. Also, I thin

[issue11122] bdist_rpm should use rpmbuild, not rpm

2013-07-15 Thread James Bennet
James Bennet added the comment: I have observed this bug under CentOS 5.9 using the version of python-setuptools from the official CentOS repository. -ba is not a valid option for that version of RPM. I am able to get further by installing the rpm-build package. -- nosy: +James.Bennet

[issue18418] Thread.isAlive() sometimes True after fork

2013-07-15 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: Charles-François, I agree that many guarantees are impossible to enforce in a multithreaded application that calls fork(). But the threading module does try to guarantee, after a fork, that isAlive() is False for all threads but one. I claim that it can

[issue12944] Accept arbitrary files for packaging's upload command

2013-07-15 Thread Éric Araujo
Éric Araujo added the comment: With the lift of the feature freeze decided at PyCon 2013, this feature request could be done for 3.4. -- components: +Distutils -Distutils2 versions: +Python 3.4 -3rd party ___ Python tracker

[issue18463] Download > Other documentation page outdated/dead links

2013-07-15 Thread Févry Thibault
New submission from Févry Thibault: See issue 18462 and The link to the series-60 nokia page directs to an empty page : http://www.developer.nokia.com/Community/Wiki/Nokia_Open_Source/ with comments in history : 09:15, 24 April 2013 hamishwillee (Talk | contribs) deleted page Nokia Open Sourc

[issue18462] Download > Other documentation page contains a link to a french poker site

2013-07-15 Thread Févry Thibault
New submission from Févry Thibault: The python for PSP (http://python-psp.net/trac) now redirects to python-psp.net which is a poker site. -- assignee: docs@python components: Documentation messages: 193101 nosy: docs@python, iwontbecreative priority: normal severity: normal status: ope

[issue18181] super vs. someclass.__getattribute__

2013-07-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: There now is a PEP for this issue: . The current version of the PEP describes a different API than documented by the attached proposal and the prove of concept code. I'm working on an updated implementation.

[issue17202] Add .bat line to .hgeol

2013-07-15 Thread Zachary Ware
Zachary Ware added the comment: I'm on 32 bit Windows 7 Pro, SP1, and have also reproduced the issue on 64 bit Windows 7 Home Premium, SP1. I use the standard Command Prompt (cmd.exe) on both. -- ___ Python tracker

[issue18461] X Error in tkinter

2013-07-15 Thread Févry Thibault
Changes by Févry Thibault : -- nosy: +iwontbecreative ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue18457] Fix and cleanup the ss1.py demo

2013-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for report. This is a separated issue #18461. -- ___ Python tracker ___ ___ Python-bugs-

[issue18461] X Error in tkinter

2013-07-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: When run Tools/demo/ss1.py under Linux and enter the formula "='0'*0x1000", the application will crash with the following message: X Error of failed request: BadAlloc (insufficient resources for operation) Major opcode of failed request: 53 (X_CreatePix

[issue18460] .chm documentation files advertised in download.html but not there.

2013-07-15 Thread Févry Thibault
New submission from Févry Thibault: Just like it happenned with 2.7.3, the .chm help files are not present in the download pages. The download page (e.g : http://docs.python.org/3/download.html) advertises the presence of .chm files but they are not there. I am unsure whether or not these fi

[issue13266] Add inspect.unwrap(f) to easily unravel "__wrapped__" chains

2013-07-15 Thread Nick Coghlan
Nick Coghlan added the comment: Added a version that allows the iteration to be terminated early if certain criteria are met, which is needed for a robust implementation of inspect.signature. However, I'm thinking the callback based approach in this version isn't especially Pythonic, so I'm t

[issue18457] Fix and cleanup the ss1.py demo

2013-07-15 Thread Févry Thibault
Févry Thibault added the comment: These are some nice improvements, but there is still a crash if you type =1000**5000 . -- nosy: +iwontbecreative ___ Python tracker ___ ___

[issue13631] readline fails to parse some forms of .editrc under editline (libedit) emulation on Mac OS X

2013-07-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: I can confirm the problem and that the patch fixes the issue. I'll try to commit a fix later this week. -- versions: +Python 3.4 -Python 3.2 ___ Python tracker __

[issue18459] readline: libedit support on non-apple platforms

2013-07-15 Thread Ronald Oussoren
New submission from Ronald Oussoren: Modules/readline.c contains some code that improves interop with the readline emulation in libedit. That interop code is currently guarded by '#ifdef __APPLE__' preprocessor tests. This should be replaced by '#if HAVE_LIBEDIT' to make it possible to use the

[issue18458] libedit history offset workaround

2013-07-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: (set as "crash" because the current workaround causes a crash with recent versions of libedit) -- keywords: +needs review, patch stage: -> patch review type: -> crash ___ Python tracker

[issue18458] libedit history offset workaround

2013-07-15 Thread Ronald Oussoren
New submission from Ronald Oussoren: Modules/readline.c contains a workaround for a bug in the readline emulation of libedit: that emulation uses a different starting offset for the history than the real readline. In more recent versions of libedit (such as the one you can now download from <

[issue18457] Fix and cleanup the ss1.py demo

2013-07-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch which fixes some bugs in Tools/demo/ss1.py: * Saving formulas containing & and < symbols. * Saving complex numbers. Also it a little cleanups the code: * Using xml.sax.saxutils.escape instead of html.escape. * Using the with statement for f

[issue18443] Misc/Readme still documents TextMate

2013-07-15 Thread Févry Thibault
Févry Thibault added the comment: The issue with Vim files has been fixed but not this one. Adding a patch in case it is faster for anyone, as well as properly triaging the bug report. This also fixes the list to put in back in alphabetical order. -- assignee: -> docs@python components

[issue17482] functools.update_wrapper mishandles __wrapped__

2013-07-15 Thread Nick Coghlan
Nick Coghlan added the comment: I decided I can live with the risk of this biting someone in 3.3 - the combination of using multiple levels of wrapping *and* using __wrapped__ for more than merely introspection seems remote enough to make being conservative with the behavioural change the bett

[issue17482] functools.update_wrapper mishandles __wrapped__

2013-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 13b8fd71db46 by Nick Coghlan in branch 'default': Close issue 17482: don't overwrite __wrapped__ http://hg.python.org/cpython/rev/13b8fd71db46 -- nosy: +python-dev resolution: -> fixed stage: test needed -> committed/rejected status: open -

[issue17202] Add .bat line to .hgeol

2013-07-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: Zachary: What Windows version do you use? Glen Linderman claims that at least Windows 7 should work fine with cmd files containing only LF, and suggested that this may also be the case on Windows XP. Are you using a non-standard command interpreter by any cha

[issue18449] Demo 'ss1.py' crash in python3

2013-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report and patch. -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3 ___ Python tracker

[issue18449] Demo 'ss1.py' crash in python3

2013-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset a7b5e9ca8eee by Serhiy Storchaka in branch '3.3': Issue #18449: Make Tools/demo/ss1.py work again on Python 3. Patch by http://hg.python.org/cpython/rev/a7b5e9ca8eee New changeset 34333dab3ac4 by Serhiy Storchaka in branch 'default': Issue #18449:

[issue18356] help(numpy) causes segfault on exit

2013-07-15 Thread Torim
Torim added the comment: I would add even the linked solution from StackOverflow.com does not work reliably for me. Try to get at the end of numpy document - text vanishes and possibly lose chars displaying in terminal. Need to reset it. Modified pydoc's pipepager method this way: def pipepage

[issue18305] [patch] Fast sum() for non-numbers

2013-07-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue18305] [patch] Fast sum() for non-numbers

2013-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > On the contrary, it will reduce memory usage and creation time compared to > regular tuples, because in cases like: > c = a + b > you do not have to spend time and memory for allocating and copying elements > of "a". This is not a common case. A common c

[issue18436] Add mapping of symbol to function to operator module

2013-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is a purpose of this feature? Why you need it? -- nosy: +rhettinger ___ Python tracker ___ __

[issue18444] IDLE: Mac OS X pressing ctrl-A in Python shell moved cursor before the prompt, which then makes the keyboard unresponsive.

2013-07-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: IIRC the key bindings that are currently used on OSX basicly are partially based on the key bindings on "classic macos", and partially on using the CMD key instead of the ALT key. It would be nice to have a clean set of key bindings for OSX that's based on t

[issue10042] functools.total_ordering fails to handle NotImplemented correctly

2013-07-15 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks Katie - Raymond, the patch is ready for review now If you're happy with it, then the only other things it should need prior to commit are NEWS and ACKS entries (I think it's too esoteric a fix to mention in What's New). -- stage: needs patch -> c

[issue10042] functools.total_ordering fails to handle NotImplemented correctly

2013-07-15 Thread Katie Miller
Katie Miller added the comment: Nick is correct; a logic bug was introduced during refactoring, which is fixed in the attached patch. The tests introduced with my original patch cover cases where an operation is not implemented, so it would be inappropriate to add a test case there that would

[issue18349] argparse usage should preserve () in metavars such as range(20)

2013-07-15 Thread paul j3
paul j3 added the comment: This issue should also preserve a metavar like: '(one)two', i.e. '(' at the start. In http://bugs.python.org/issue10984 these _re replacements are applied to individual action strings as well as the whole usage line. So if () are to be removed from '[-h] (-y)', t