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 — NameError in `openpty` after #118826 · Issue #124405 · python/cpython

NameError in openpty after #118826 #124405

New issue
Copy link
New issue
Copy link
Closed
Closed
NameError in openpty after #118826#124405
Copy link
Assignees
sobolevn
Labels
3.14bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@sobolevn
sobolevn
opened on Sep 24, 2024
Issue body actions

Bug report

result jere is not defined

cpython/Lib/pty.py

Lines 36 to 43 in ad7c778

slave_fd = os.open(slave_name, os.O_RDWR)
try:
from fcntl import ioctl, I_PUSH
except ImportError:
return master_fd, slave_fd
try:
ioctl(result, I_PUSH, "ptem")
ioctl(result, I_PUSH, "ldterm")

It should be slave_fd.
Caused by #118826

Thanks to @ambv for finding this.
I have a fix ready.

Linked PRs

  • gh-124405: Fix NameError in openpty #124406

Activity

  1. sobolevn
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    3.14bugs and security fixesbugs and security fixes
    on Sep 24, 2024
  2. sobolevn
    self-assigned this
    on Sep 24, 2024
  3. sobolevn
    changed the title [-]NameError in `openpty` after #118826/[/-] [+]NameError in `openpty` after #118826[/+] on Sep 24, 2024
  4. sobolevn
    added a commit that references this issue on Sep 24, 2024

    pythongh-124405: Fix `NameError` in `openpty`

    9517274
  5. ambv
    added a commit that references this issue on Sep 24, 2024

    gh-124405: Fix `NameError` in `openpty` (#124406)

    17b3bc9
  6. hugovk commented on Jan 7, 2025

    @hugovk
    hugovk
    on Jan 7, 2025
    Member
    More actions

    PR merged, closing 🚀

  7. hugovk
    closed this as completedon Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @sobolevn
    sobolevn

Labels

3.14bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-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.