Skip to content

xmlrpc.client tells Fails and ProtocolError are returned, while the code raises them #140458

@JulienPalard

Description

@JulienPalard

Documentation

In https://docs.python.org/3/library/xmlrpc.client.html I read:

The RPC finishes by returning a value, which may be either returned data in a conformant type or a Fault or ProtocolError object indicating an error.

Which I interpret like this: the method either returns an object or returns a Fault (or a ProtocolError) instance.

By looking at the implementation I only see raise Fault(..., never return Fault, so it seems like the doc should be:

The RPC finishes either by returning data in a conformant type or by raising a Fault or ProtocolError exception indicating an error.

I have no working code with xmlrpc.client to test it, I'm just translating the doc in french.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions