[Webkit-unassigned] [Bug 206840] New: Python 3: generate-js-builtins hits SyntaxWarning for "is 0"
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 27 13:15:03 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=206840
Bug ID: 206840
Summary: Python 3: generate-js-builtins hits SyntaxWarning for
"is 0"
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: stephan.szabo at sony.com
After switching up to python 3.8, generate-js-builtins.py hits a SyntaxWarning for the use of "is 0".
Apparently, per https://bugs.python.org/issue34850 this sort of usage happens to work on CPython by accident, but is not guaranteed to work on other python implementation or necessarily continue working in CPython.
The warning suggests replacing is with == for such cases.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200127/38b8cf0a/attachment-0001.htm>
More information about the webkit-unassigned
mailing list