[issue19898] No tests for dequereviter_new

2014-06-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks guys. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue21762] update the import machinery to only use __spec__

2014-06-14 Thread Nick Coghlan
Nick Coghlan added the comment: The spec is authoritative for "how was this imported?". The differences between that and the module attributes then provide a record of any post-import modifications. -- ___ Python tracker

[issue21767] singledispatch docs should explicitly mention support for abstract base classes

2014-06-14 Thread Nick Coghlan
New submission from Nick Coghlan: functools.singledispatch is integrated with the abc module for fast single dispatch even in the absence of concrete inheritance. However, this isn't obvious from the documentation, so users may not realise they can register a single ABC with the generic functi

[issue21696] Idle: test configuration files

2014-06-14 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : Added file: http://bugs.python.org/file35641/test-configuration-v2.diff ___ Python tracker ___ ___ Python-bugs

[issue21756] IDLE - ParenMatch fails to find closing paren of multi-line statements

2014-06-14 Thread Tal Einat
Tal Einat added the comment: Terry, I'm not sure what you mean but your last comment. HyperParser.get_surrounding_brackets() will return a previous opening bracket, even if no closing bracket is found for it. CallTips depends on that behavior to find the previous opening parenthesis even if it

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-14 Thread Tal Einat
Tal Einat added the comment: It seems that the unicodedata module already supplies relevant functions which can be used for this. For example, we can replace "char in self._id_first_chars" with something like: from unicodedata import normalize, category norm_char = normalize(char)[0] is_id_fir

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-14 Thread Tal Einat
Tal Einat added the comment: Bah, I messed up the code sample in my previous message. It was supposed to be: from unicodedata import normalize, category norm_char_first = normalize(char)[0] is_id_first_char = ( norm_char_first == '_' or category(norm_char_first) in {"Lu", "Ll", "Lt", "Lm

<    1   2