Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb6aa5c

Browse files
Issue #16819: IDLE method completion now correctly works for bytes literals.
2 parents 7a7a535 + 8c126d7 commit eb6aa5c

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lib/idlelib/HyperParser.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,11 @@ def get_expression(self):
232232
pass
233233
else:
234234
# We can't continue after other types of brackets
235+
if rawtext[pos] in "'\"":
236+
# Scan a string prefix
237+
while pos > 0 and rawtext[pos - 1] in "rRbBuU":
238+
pos -= 1
239+
last_identifier_pos = pos
235240
break
236241

237242
else:

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ Core and Builtins
124124
Library
125125
-------
126126

127+
- Issue #16819: IDLE method completion now correctly works for bytes literals.
128+
127129
- Issue #9586: Redefine SEM_FAILED on MacOSX to keep compiler happy.
128130

129131
- Issue 10527: make multiprocessing use poll() instead of select() if available.

0 commit comments

Comments
 (0)