[Python-checkins] cpython (merge 3.2 -> 3.3): Issue #16819: IDLE method completion now correctly works for bytes literals.
serhiy.storchaka
python-checkins at python.org
Tue Jan 1 21:36:42 CET 2013
http://hg.python.org/cpython/rev/b8b5303ac96f
changeset: 81203:b8b5303ac96f
branch: 3.3
parent: 81199:f7cad712669a
parent: 81202:99a06886b258
user: Serhiy Storchaka <storchaka at gmail.com>
date: Tue Jan 01 22:32:42 2013 +0200
summary:
Issue #16819: IDLE method completion now correctly works for bytes literals.
files:
Lib/idlelib/HyperParser.py | 5 +++++
Misc/NEWS | 2 ++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Lib/idlelib/HyperParser.py b/Lib/idlelib/HyperParser.py
--- a/Lib/idlelib/HyperParser.py
+++ b/Lib/idlelib/HyperParser.py
@@ -232,6 +232,11 @@
pass
else:
# We can't continue after other types of brackets
+ if rawtext[pos] in "'\"":
+ # Scan a string prefix
+ while pos > 0 and rawtext[pos - 1] in "rRbBuU":
+ pos -= 1
+ last_identifier_pos = pos
break
else:
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -124,6 +124,8 @@
Library
-------
+- Issue #16819: IDLE method completion now correctly works for bytes literals.
+
- Issue #9586: Redefine SEM_FAILED on MacOSX to keep compiler happy.
- Issue 10527: make multiprocessing use poll() instead of select() if available.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list