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

2012-08-26 Thread Ezio Melotti
Ezio Melotti added the comment: Sphinx is configured to use Python3Lexer (highlight_language is set to 'python3' in Doc/conf.py). 'nonlocal' is not highlighted because in the pygments version that we are using 'nonlocal' is missing in Python3Lexer.tokens['keywords'] see

[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.

[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 rep...@bugs.python.org http://bugs.python.org/issue13801

[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

[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:

[issue15781] test_threaded_import fails with -j4

2012-08-26 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15781 ___ ___

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

2012-08-26 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15785 ___ ___ Python-bugs-list mailing list

[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 rep...@bugs.python.org http://bugs.python.org/issue10076 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue15720 ___ ___

[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 rep...@bugs.python.org http://bugs.python.org/issue15693 ___

[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 rep...@bugs.python.org

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

2012-08-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15785 ___

[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 arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15753 ___

[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 arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15783 ___

[issue15731] Mechanism for inheriting docstrings and signatures

2012-08-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15731 ___

[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,

[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

[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

[issue3760] PEP 3121 --- PyType_Copy is missing

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3760 ___ ___

[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 rep...@bugs.python.org http://bugs.python.org/issue15720

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

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- assignee: - belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15390 ___

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

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- assignee: - belopolsky nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15711 ___

[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

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- 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

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- 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

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- 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

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- 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

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- dependencies: -Add VS CRT redist to the MSI installer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15787 ___

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- 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

[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 rep...@bugs.python.org http://bugs.python.org/issue15786 ___ ___ Python-bugs-list

[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

[issue15787] PEP 3121 Refactoring

2012-08-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15787 ___ ___

[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'},

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

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

[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