This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2009年10月18日 19:34 by lieryan, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg94222 - (view) | Author: Lie Ryan (lieryan) | Date: 2009年10月18日 19:34 | |
On python trunk and 3.2 IDLE, the b in b'' is not green colored.
On python 3.1 IDLE, the u in u'' is still colored, despite a SyntaxError.
(sorry, I don't have diff installed on my Windows machine)
Change on python trunk:
/Lib/idlelib/ColorDelegator.py
def make_pat():
....
sqstring = r"(\b[rRuUbB])?'[^'\\\n]*(\\.[^'\\\n]*)*'?"
dqstring = r'(\b[rRuUbB])?"[^"\\\n]*(\\.[^"\\\n]*)*"?'
sq3string = r"(\b[rRuUbB])?'''[^'\\]*((\\.|'(?!''))[^'\\]*)*(''')?"
dq3string = r'(\b[rRuUbB])?"""[^"\\]*((\\.|"(?!""))[^"\\]*)*(""")?'
....
And on py3k branch:
/Lib/idlelib/ColorDelegator.py
def make_pat():
....
sqstring = r"(\b[rRbB])?'[^'\\\n]*(\\.[^'\\\n]*)*'?"
dqstring = r'(\b[rRbB])?"[^"\\\n]*(\\.[^"\\\n]*)*"?'
sq3string = r"(\b[rRbB])?'''[^'\\]*((\\.|'(?!''))[^'\\]*)*(''')?"
dq3string = r'(\b[rRbB])?"""[^"\\]*((\\.|"(?!""))[^"\\]*)*(""")?'
....
|
|||
| msg107187 - (view) | Author: Ezio Melotti (ezio.melotti) * (Python committer) | Date: 2010年06月06日 06:25 | |
Duplicate of #8641. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:54 | admin | set | github: 51415 |
| 2010年06月06日 07:17:04 | taleinat | set | nosy:
+ taleinat |
| 2010年06月06日 06:25:33 | ezio.melotti | set | status: open -> closed resolution: duplicate messages: + msg107187 stage: resolved |
| 2009年10月19日 02:51:27 | ezio.melotti | set | priority: normal nosy: + ezio.melotti keywords: + easy |
| 2009年10月18日 19:34:46 | lieryan | set | versions: + Python 2.7, Python 3.2, - Python 3.1 |
| 2009年10月18日 19:34:27 | lieryan | create | |