gh-98401: Invalid escape sequences emits SyntaxWarning by vstinner · Pull Request #99011 · python/cpython · GitHub

github.com

Tin mới

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Reject invalid escape sequences (and octal escape sequences) in bytes and Unicode strings #98401

awaiting core review

gh-98401: Reject invalid escape sequences in strings #98404

Raise non-silent warning for invalid escape sequences #77093

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

: Invalid escape sequences emits SyntaxWarning

View reviewed changes

Fix test_string_literals

tools/*.py: fix invalid escape sequences in regexps iovisor/bcc#4789

Syntax warning because of "\S" in Python 3.12 keygen-sh/py-machineid#9

faa_cs_aan.py: use r-strings for all regular expressions

Invalid escape sequences raise SyntaxWarning #119458

gh-123858: Improve Doc: SyntaxWarning is emitted during bytecode generation #122844

Fix SyntaxWarning in build/run_tests.py

Fix SyntaxWarning in build/run_tests.py

bisect-builds: use r-string for regular expression

python/cpython@a60ddd31be7f

autoninja: fix strings with invalid escape sequences

ignore reverted warning issued in python 3.11 spacetelescope/romancal#2059

♻️ Centralize and structure code generation/infrastructure munich-quantum-toolkit/qecc#751

Feature units concrete ch8 Blueprints-org/blueprints#1093

Remove obsolete docs and simplify the homepage hero surajmandalcell/subscription-proxy-inator#18

Fix Gutenberg contents-list ingest and green up CI on Python 3.14 gilesknap/somnia#1

fix: keep backslashes in the generated SQL constants rayakame/sqlc-gen-better-python#262