brython-dev / brython

Brython (Browser Python) is an implementation of Python 3 running in the browser
BSD 3-Clause "New" or "Revised" License
6.4k stars 512 forks source link

gh-98401 #2484

Closed clairvoyante closed 3 months ago

clairvoyante commented 3 months ago

CPython 3.12.5:

Python 3.12.5 (tags/v3.12.5:ff3bc82, Aug  6 2024, 20:45:27) [MSC v.1940 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> '\377'
'ÿ'
>>> '\477'
<stdin>:1: SyntaxWarning: invalid octal escape sequence '\477'
'Ŀ'
>>>

Brython 3.12.4:

Brython 3.12.4 on Netscape 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0
Type "help", "copyright", "credits" or "license" for more information.
>>> '\377'
'ÿ'
>>> '\477'
'Ŀ'
>>>