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 — socket.getblocking() documentation lists opposite equivalence · Issue #104882 · python/cpython

socket.getblocking() documentation lists opposite equivalence #104882

New issue
Copy link
New issue
Copy link
Closed
Closed
socket.getblocking() documentation lists opposite equivalence#104882
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir

Description

@chrisaycock
chrisaycock
opened on May 24, 2023
Issue body actions

Documentation

The documentation for socket.getblocking() states:

This is equivalent to checking socket.gettimeout() == 0.

But that's the opposite of what it means. According to the source code, getblocking() returns False if and only if gettimeout() returns 0.0.

Linked PRs

  • gh-104882: Docs: fix description of relationship between socket.getblocking() and socket.gettimeout() #105026
  • [3.12] gh-104882: Docs: fix description of relationship between socket.getblocking() and socket.gettimeout() (GH-105026) #105283
  • [3.11] gh-104882: Docs: fix description of relationship between socket.getblocking() and socket.gettimeout() (GH-105026) #105284

Activity

  1. chrisaycock
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on May 24, 2023
  2. AlexWaygood
    added a commit that references this issue on Jun 4, 2023

    gh-104882: Docs: fix description of relationship between `socket.getb…

    5a5ed7a
  3. miss-islington
    added 2 commits that reference this issue on Jun 4, 2023

    pythongh-104882: Docs: fix description of relationship between `socke…

    181e0ca

    pythongh-104882: Docs: fix description of relationship between `socke…

    e885bad
  4. AlexWaygood
    added 2 commits that reference this issue on Jun 4, 2023

    [3.12] gh-104882: Docs: fix description of relationship between `sock…

    9ce3312

    [3.11] gh-104882: Docs: fix description of relationship between `sock…

    86eab08
  5. AlexWaygood commented on Jun 4, 2023

    @AlexWaygood
    AlexWaygood
    on Jun 4, 2023
    Member
    More actions

    Fixed, and backported to 3.12 and 3.11

    Reacted by Christopher C. Aycock
  6. AlexWaygood
    closed this as completedon Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirDocumentation in the Doc dir

    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.