Comments (3)
The referenced commit is about octal sequences above 0o377. The warning results from changing the invalid escape sequence warning from DeprecationWarning (usually invisible) to SyntaxWarning (usually visible, but not currently in IDLE and other possible circumstances) in 3.12 in issue #98401, PR #99011. The same warning occurs with '\.a'
and '\.'
.
The change was in 3.12.0 and noted in What' New 3.12:
A backslash-character pair that is not a valid escape sequence now generates a SyntaxWarning, instead of DeprecationWarning.
If you want a single backslash in the string, either double it or precede the string with 'r': '\\.00' == r'\.00'
is True
.
from cpython.
That has nothing to be with PEP 701. PEP 701 is about f-strings, not about strings in general. That change was introduced here:
from cpython.
Ahh ok that explains everything. I got this Error because Mathematica’s ExternalEvaluate uses an invalid escape sequence and I knew that in march all was working fine. I regularly update my system so I thought I was using python version 3.12.2 in march. But it turns out that Archlinux doesn’t update their python package that often, therefore I was using version 3.11.8 instead.
from cpython.
Related Issues (20)
- (🎁) support docstrings on `type` statements HOT 3
- Evaluation stack bounds are not checked in debug builds.
- Add names to gathered stats for some events. HOT 1
- subprocess.Popen() hangs: parent process hangs at os.read(errpipe_read) and child hangs at _posixsubprocess.fork_exec()
- test_pyrepl: test_cursor_back_write() blocks on input_hook() when tests are run sequentially HOT 9
- Incorrect optimization in JIT build
- lexer handles raw string escapes differently than documentation HOT 1
- `PYTHON_BASIC_REPL` is not currently tested
- argparse.ArgumentParser.parses_args does not honor exit_on_error=False when given unrecognized arguments HOT 5
- zip: Support for external attributes in zipinfo
- Winreg makes persistent changes somewhere, but not to the Windows registry HOT 8
- Improve `_xxtestfuzz/README.rst`
- Improve the repr of partialmethod HOT 1
- Lots of new compiler warnings: `unknown warning option '-Wtrampolines' [-Wunknown-warning-option]` HOT 7
- Add __get__ to the partial object HOT 8
- Soft-deprecate `sys.api_version` and the C API's `PYTHON_API_VERSION` HOT 1
- `any()` and generator behavior should be documented HOT 3
- Include lastResort in logging HOWTO flow chart
- Add assertFloatsAreIdentical/assertComplexAreIdentical to unittest (or kwarg to assertEqual)? HOT 1
- -Wimplicit-fallthrough generating warnings HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpython.