[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.org/birkenfeld/pygments-main/src/972a251fa742/pygments/lexers/agile.py#cl-202

--
nosy: +berker.peksag

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 key presses from real unicode code points.  
For example, get_wch() returns 259 both for an up arrow press and for the input 
character 'ă'.

It seems like this API needs to be redesigned somehow to allow terminal keypad 
codes to be distinguished from unicode input.

--
components: Library (Lib)
messages: 169165
nosy: simpkins
priority: normal
severity: normal
status: open
title: curses.get_wch() returns keypad codes incorrectly
type: behavior
versions: Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, 
'é').

Problem: unget_wch() test fails. "unget_wch('é'); is_key_code, ch = 
win.get_wch()" returns is_key_code=True, ch=''. I don't see how to specify to 
unget_wch() if the argument is a key code or not... It's maybe an issue in 
unget_wch() API that cannot be fixed in Python?

--
keywords: +patch
Added file: http://bugs.python.org/file27007/curses_get_wch.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--
priority: normal -> release blocker

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, presumably) can reopen it...

--
assignee: docs@python -> 
nosy: +gregory.p.smith, r.david.murray
resolution:  -> out of date
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 to signal to whoever created the execing 
process that an exec has occurred.

Would it be at all useful to add such a return code?

--
nosy: +r.david.murray
versions: +Python 3.4 -Python 2.6, Python 2.7, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 works. In addition, pressing enter 
does not autocomplete but execute what was meant to be selected.

--
components: IDLE
messages: 169175
nosy: suddha.sourav
priority: normal
severity: normal
status: open
title: IDLE code completion window does not scoll/select with mouse
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
messages: 169177
nosy: Robin.Schreiber, belopolsky
priority: normal
severity: normal
status: open
title: PEP 3121 Refactoring
type: enhancement
versions: Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 random module, PEP 3121, 384 Refactoring applied to sre 
module, PEP 3121, 384 Refactoring applied to ssl module, PEP 3121, 384 
Refactoring applied to struct module, PEP 3121, 384 Refactoring applied to 
testbuffer module, PEP 3121, 384 Refactoring applied to testcapi module, PEP 
3121, 384 Refactoring applied to thread module, PEP 3121, 384 refactoring 
applied to pickle module

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, PEP 3121, 384 Refactoring applied to md5 module, PEP 3121, 
384 Refactoring applied to mmap module, PEP 3121, 384 Refactoring applied to 
operator module, PEP 3121, 384 Refactoring applied to parser module, PEP 3121, 
384 Refactoring applied to posix module, PEP 3121, 384 Refactoring applied to 
pyexpat module

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Refactoring applied to select module, PEP 3121, 384 Refactoring 
applied to sha1 module, PEP 3121, 384 Refactoring applied to sha256 module, PEP 
3121, 384 Refactoring applied to sha512 module, PEP 3121, 384 Refactoring 
applied to signal module, PEP 3121, 384 Refactoring applied to socket module, 
PEP 3121, 384 Refactoring applied to spwd module, PEP 3121, 384 Refactoring 
applied to termios module, PEP 3121, 384 Refactoring applied to time module, 
PEP 3121, 384 Refactoring applied to tkinter module, PEP 3121, 384 Refactoring 
applied to unicodedata module, PEP 3121, 384 Refactoring applied to winapi 
module, PEP 3121, 384 Refactoring applied to zipimport module

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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'}, ensure_ascii=False)
u'{"foo": "bar"}'

>>> json.dumps({'foo': u'äiti'}, ensure_ascii=False)
u'{"foo": "\xe4iti"}'

>>> json.dumps({'foo': u'äiti'.encode('utf-8')}, ensure_ascii=False)
'{"foo": "\xc3\xa4iti"}'

>>> json.dumps({'foo': u'äiti'.encode('utf-16')}, ensure_ascii=False)
'{"foo": "\xff\xfe\xe4\\ui\\ut\\ui\\u"}'

--
nosy: +petri.lehtinen

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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_communicate_warning.patch
keywords: patch
messages: 169182
nosy: cvrebert, docs@python
priority: normal
severity: normal
status: open
title: cross-refs in the subprocess.Popen.std{in,out,err} warning box aren't 
linked
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file27010/link_communicate_warning.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com