[issue13801] The Python 3 Docs don't highlight nonlocal

2012-08-26 Thread Berker Peksag
Berker Peksag added the comment: > 'nonlocal' is not highlighted because in the pygments version that we are > using 'nonlocal' is missing in Python3Lexer.tokens['keywords'] see > (Doc/tools/pygments/lexers/agile.py:196). The nonlocal keyword has been added in Pygments 1.5. https://bitbucket.

[issue13801] The Python 3 Docs don't highlight nonlocal

2012-08-26 Thread Ezio Melotti
Ezio Melotti added the comment: Our version is 1.3.1. Georg said that this can be update after the 3.3 release. -- versions: +Python 3.4 ___ Python tracker ___ _

[issue15785] curses.get_wch() returns keypad codes incorrectly

2012-08-26 Thread Adam Simpkins
New submission from Adam Simpkins: The curses.get_wch() function does not check if wget_wch() returned OK or KEY_CODE_YES. In either case, it simply returns the character code. This makes get_wch() unusable when keypad is enabled, because the caller cannot distinguish function key or arrow ke

[issue8256] input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None

2012-08-26 Thread aliles
aliles added the comment: Upload new patch that uses encoding and errors from stderr if stdout values are invalid unicode. Includes unit test in test_builtin.py. With this patch I am no longer able to replicate this issue. -- Added file: http://bugs.python.org/file27006/p1345978092.dif

[issue15781] test_threaded_import fails with -j4

2012-08-26 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue15785] curses.get_wch() returns keypad codes incorrectly

2012-08-26 Thread Ned Deily
Changes by Ned Deily : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue10076] Regex objects became uncopyable in 2.5

2012-08-26 Thread Matthew Barnett
Matthew Barnett added the comment: Is it necessary to actually copy it? Isn't the pattern object immutable? -- nosy: +mrabarnett ___ Python tracker ___ __

[issue15720] move __import__() out of the default lookup chain

2012-08-26 Thread Georg Brandl
Georg Brandl added the comment: I agree with David. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue15693] expose glossary link on hover

2012-08-26 Thread Chris Jerdonek
Chris Jerdonek added the comment: I submitted a patch for this issue on the Sphinx tracker. -- ___ Python tracker ___ ___ Python-bugs-

[issue15780] IDLE (windows) with PYTHONPATH and multiple python versions

2012-08-26 Thread Roger Serwy
Roger Serwy added the comment: Look in the registry at "Computer\HKEY_CLASSES_ROOT\Python.File\shell\" and then inspect the launch commands under "open\command" and "Edit with IDLE\command". -- nosy: +serwy ___ Python tracker

[issue15785] curses.get_wch() returns keypad codes incorrectly

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

[issue15753] No-argument super in method with variable arguments raises SystemError

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

[issue15783] decimal.localcontext(None) fails when using the C accelerator module

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

[issue15731] Mechanism for inheriting docstrings and signatures

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

[issue15785] curses.get_wch() returns keypad codes incorrectly

2012-08-26 Thread STINNER Victor
STINNER Victor added the comment: Oh, right. I agree that the current implementation of window.get_wch() is useless. I missed completly key codes. Attached patch changes the API of get_wch() from get_wch()->key:int to get_wch()->(is_key_code: bool, key: str). Examples: (True, 'KEY_UP'), (False

[issue15785] curses.get_wch() returns keypad codes incorrectly

2012-08-26 Thread STINNER Victor
STINNER Victor added the comment: I consider this issue as a release blocker because the bug requires to change the API (of a function added to Python 3.3). If this issue cannot be fixed before Python 3.3 final, I prefer to drop the function until a better implementation is written. -

[issue1432343] Description of file-object read() method is wrong.

2012-08-26 Thread R. David Murray
R. David Murray added the comment: It looks to me like we (now, as of 67dc99a989cd) handle EINTR, so that the suggested caveat is no longer true. Since the TTY example has also been explained as correct, I'm going to close this. If I'm wrong about EINTR, someone (Antoine or Gregory, presumab

[issue9148] os.execve puts process to background on windows

2012-08-26 Thread R. David Murray
R. David Murray added the comment: This looks like the answer to the cygwin question, assuming things haven't changed: http://cygwin.com/ml/cygwin-developers/2001-02/msg00106.html Basically, it does the same thing as Python, except that a special return code is reported by the execing process

[issue15786] IDLE code completion window does not scoll/select with mouse

2012-08-26 Thread suddha sourav
New submission from suddha sourav: In IDLE, pressing tab brings up the code completion menu - however, the scrollbar, when clicked, does not scroll - it disappears. Same goes for clicking an option in the code completion widget - it disappears. Keyboard navigation (pgup/pgdown/up/down) and tab

[issue3760] PEP 3121 --- PyType_Copy is missing

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue15720] move __import__() out of the default lookup chain

2012-08-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: Definitely "won't fix" until at least Python 4. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue15390] PEP 3121, 384 refactoring applied to datetime module

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue15711] PEP 3121, 384 Refactoring applied to time module

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: This is a meta-issue to keep track of a global PEP 3121 refactoring effort. Per-module issues will be added as dependencies. Let's move the discussion that is not specific to any particular module here. -- components: Extension Modules message

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +PEP 3121, 384 refactoring applied to curses module, PEP 3121, 384 refactoring applied to datetime module, PEP 3121, 384 refactoring applied to dbm module ___ Python tracker

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +PEP 3121, 384 refactoring applied to elementtree module, PEP 3121, 384 refactoring applied to gdbm module, PEP 3121, 384 refactoring applied to hashopenssl module, PEP 3121, 384 refactoring applied to lzma module

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +PEP 3121 refactoring applied to audioop module, PEP 3121 refactoring applied to binascii module, PEP 3121 refactoring applied to fpectl module, PEP 3121, 384 Refactoring applied to array module, PEP 3121, 384 Refactoring applied to r

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +Add VS CRT redist to the MSI installer, PEP 3121 Refactoring applied to nis module, PEP 3121 refactoring applied to fpetest module, PEP 3121 refactoring applied to pwd module, PEP 3121, 384 Refactoring applied to itertools module, PE

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: -Add VS CRT redist to the MSI installer ___ Python tracker ___ ___ Python-bugs-lis

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +PEP 3121, 384 Refactoring applied to decimal module, PEP 3121, 384 Refactoring applied to grp module, PEP 3121, 384 Refactoring applied to ossaudio module, PEP 3121, 384 Refactoring applied to resource module, PEP 3121, 384 Refactori

[issue15786] IDLE code completion window does not scoll/select with mouse

2012-08-26 Thread Colin Su
Colin Su added the comment: On which platform? -- nosy: +littleq0903 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Robin, Perhaps we should start with the "xx" modules: Modules/xxmodule.c and Modules/xxsubtype.c. These modules server as a demonstration of best practices and it is natural to use them to iron out any refactoring issues without any risk to deployed co

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue13769] json.dump(ensure_ascii=False) return str instead of unicode

2012-08-26 Thread Petri Lehtinen
Petri Lehtinen added the comment: It seems to me that when ensure_ascii is False, the return value will be a unicode instance if and only if there's a unicode object anywhere in the input. >>> json.dumps({'foo': 'bar'}, ensure_ascii=False) '{"foo": "bar"}' >>> json.dumps({'foo': u'bar'}, ensur

[issue14880] csv.reader and .writer use wrong kwargs notation in 2.7 docs

2012-08-26 Thread Chris Rebert
Changes by Chris Rebert : -- keywords: +patch Added file: http://bugs.python.org/file27008/issue14880.patch ___ Python tracker ___ ___

[issue14824] reprlib documentation references string module

2012-08-26 Thread Chris Rebert
Chris Rebert added the comment: Updated patch. I concur that anyone creating a type whose name has whitespace in it is just asking for trouble. -- Added file: http://bugs.python.org/file27009/reprlib.rst.patch ___ Python tracker

[issue15788] cross-refs in the subprocess.Popen.std{in, out, err} warning box aren't linked

2012-08-26 Thread Chris Rebert
New submission from Chris Rebert: The cross-references, particularly to Popen.communicate(), in the warning box in the subprocess docs about using Popen.stdout.read() etc. aren't hyperlinked. The attached patch fixes that. -- assignee: docs@python components: Documentation files: link_

[issue15788] cross-refs in the subprocess.Popen.std{in, out, err} warning box aren't linked

2012-08-26 Thread Ezio Melotti
Ezio Melotti added the comment: + Use :meth:`communicate() ` I believe you can simply use :meth:`~Popen.communicate` here. -- nosy: +ezio.melotti ___ Python tracker ___

[issue15788] cross-refs in the subprocess.Popen.std{in, out, err} warning box aren't linked

2012-08-26 Thread Chris Rebert
Chris Rebert added the comment: So you can. Neat trick. Patch changed accordingly. -- Added file: http://bugs.python.org/file27011/link_communicate_warning.patch ___ Python tracker _

[issue15788] cross-refs in the subprocess.Popen.std{in, out, err} warning box aren't linked

2012-08-26 Thread Chris Rebert
Chris Rebert added the comment: Let's try that again. -- Added file: http://bugs.python.org/file27012/link_communicate_warning.patch ___ Python tracker ___ __

[issue15788] cross-refs in the subprocess.Popen.std{in, out, err} warning box aren't linked

2012-08-26 Thread Chris Rebert
Changes by Chris Rebert : Removed file: http://bugs.python.org/file27011/link_communicate_warning.patch ___ Python tracker ___ ___ Python-bugs