GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — F-string debug mode does not print correctly when in last line of file · Issue #105831 · python/cpython

F-string debug mode does not print correctly when in last line of file #105831

New issue
Copy link
New issue
Copy link
Closed
Closed
F-string debug mode does not print correctly when in last line of file#105831
Copy link
Assignees
lysnikolaou
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@lysnikolaou
lysnikolaou
opened on Jun 15, 2023
Issue body actions

Where there's an f-string that has a debug expression in the last line of a file, the debug expression buffer is one character too short. For example:

```python3
cpython on  main via C v14.0.3-clang via 🐍 pyenv 3.11.3 took 15s 
❯ cat tmp/t.py
print(f'''{
3
=}''')%                                                                                                                                                                                                                                                                                                                                                                                                         

cpython on  main via C v14.0.3-clang via 🐍 pyenv 3.11.3 
❯ ./python.exe tmp/t.py            

3
3

A fix is already up as part of gh-105828, so just opening this to track the issue.

Linked PRs

  • gh-105831: Fix NEWS blurb from gh-105828 #105833

Activity

  1. lysnikolaou
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Jun 15, 2023
  2. lysnikolaou
    self-assigned this
    on Jun 15, 2023
  3. lysnikolaou
    added a commit that references this issue on Jun 15, 2023

    gh-105831: Fix NEWS blurb from gh-105828 (#105833)

    3af2dc7
  4. lysnikolaou
    closed this as completedon Jun 15, 2023
  5. carljm
    added a commit that references this issue on Jun 15, 2023

    Merge branch 'main' into modulelocals

    166aca9
  6. gvanrossum
    added a commit that references this issue on Jun 18, 2023

    pythongh-105831: Fix NEWS blurb from pythongh-105828 (python#105833)

    2b54991
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lysnikolaou
    lysnikolaou

Labels

type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue 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.