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 — The `PullResponse` docstring is inaccurate · Issue #717 · googleapis/python-pubsub

This repository was archived by the owner on Oct 13, 2026. It is now read-only.
This repository was archived by the owner on Oct 13, 2026. It is now read-only.

The PullResponse docstring is inaccurate #717

Copy link
Copy link
Closed
Closed
The PullResponse docstring is inaccurate#717
Copy link
Assignees
acocuzzo
Labels
api: pubsubIssues related to the googleapis/python-pubsub API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@hjtran
hjtran
opened on Jun 8, 2022
Issue body actions
class PullResponse(proto.Message):
    r"""Response for the ``Pull`` method.
    Attributes:
        received_messages (Sequence[google.pubsub_v1.types.ReceivedMessage]):
            Received Pub/Sub messages. The list will be empty if there
            are no more messages available in the backlog. For JSON, the
            response can be entirely empty. The Pub/Sub system may
            return fewer than the ``maxMessages`` requested even if
            there are more messages available in the backlog.
    """

The PullResponse docstring states that the received_messages ... will be empty if there are no more messages available in the backlog.

From my conversation with @kamalaboulhosn on the GCP slack, this is incorrect. Kamal mentioned that there was a doc overhaul coming that would fix it but I wonder if it might save someone else some time (we spent an embarrassing amount of dev/cpu time debugging our application which was built on this statement) if this part of the docstring was removed altogether.

Activity

  1. product-auto-label
    added
    api: pubsubIssues related to the googleapis/python-pubsub API.
    on Jun 8, 2022
  2. yoshi-automation
    added
    triage meI really want to be triaged.
    on Jun 9, 2022
  3. acocuzzo
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Jun 9, 2022
  4. yoshi-automation
    removed
    triage meI really want to be triaged.
    on Jun 9, 2022
  5. acocuzzo
    self-assigned this
    on Sep 13, 2022
  6. acocuzzo commented on Feb 23, 2023

    @acocuzzo
    acocuzzo
    on Feb 23, 2023
    Contributor
    More actions

    Fixed in 2.15.0

  7. acocuzzo
    closed this as completedon Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @acocuzzo
    acocuzzo

Labels

api: pubsubIssues related to the googleapis/python-pubsub API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — 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.