GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Indicate that surrogate literals are not allowed in docstrings since Python 3.13 · Issue #142411 · python/cpython Closed Closed Copy link Labels docsDocumentation in the Doc dirDocumentation in the Doc dir DescriptionBug reportBug description:Since Python 3.13, $ ./python Python 3.15.0a2+ (heads/main:3db7bf2d18, Dec 8 2025, 09:38:46) [GCC 15.2.1 20251111 (Red Hat 15.2.1-4)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> def is_ex_parrot(parrot: Parrot) -> bool: ... """Checks if the parrot is \udead""" ... UnicodeEncodeError: 'utf-8' codec can't encode character '\udead' in position 24: surrogates not allowed >>> $ ./python -OO Python 3.15.0a2+ (heads/main:3db7bf2d18, Dec 8 2025, 09:38:46) [GCC 15.2.1 20251111 (Red Hat 15.2.1-4)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> def is_ex_parrot(parrot: Parrot) -> bool: ... """Checks if the parrot is \udead""" ... >>> # no error because -OO turns off docstrings A admit that this is extremely fringe, but it did break something seemingly unrelated to docstrings in IPython: ipython/ipython#15098 The CPython versions tested on:3.13, CPython main branch Operating systems tested on:Linux Linked PRs
Activity
MetadataMetadataAssigneesLabelsdocsDocumentation in the Doc dirDocumentation in the Doc dir Projects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |