You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, \u and \U escapes are not recognized within bytes literals:
Python 3.14.0a1 (tags/v3.14.0a1:8cdaca8, Oct 15 2024, 20:08:21) [MSC v.1941 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> b'\u00FF'
<python-input-0>:1: SyntaxWarning: invalid escape sequence '\u'
b'\u00FF'
b'\\u00FF'
The text was updated successfully, but these errors were encountered:
Pyright seems to be accepting these Unicode escapes; it resolves all of them to
b'\xFF'
regardless of the actual values (playground):However,
\u
and\U
escapes are not recognized within bytes literals:Python 3.14.0a1 (tags/v3.14.0a1:8cdaca8, Oct 15 2024, 20:08:21) [MSC v.1941 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> b'\u00FF' <python-input-0>:1: SyntaxWarning: invalid escape sequence '\u' b'\u00FF' b'\\u00FF'
The text was updated successfully, but these errors were encountered: