Single Dispatch lets one Python operation provide different implementations for different input types. A call still uses one public function name. The type of its first argument determines which implementation runs. For a robot-data utility that receives several kinds of records, understanding that one selection rule helps explain both the convenience of a registry and the cases it does not distinguish.
Python's functools documentation for Python 3.14 specifies that singledispatch uses the type of the first argument. The function can accept further arguments, but their types are not additional dispatch keys. A format flag may change what the chosen implementation does without changing how it was selected.
Consider a hypothetical describe operation that accepts a value followed by a verbosity flag. Register one implementation for integers and another for lists. Calling it with the integer seven selects the integer implementation. Calling it with a list selects the list implementation. Changing the flag from false to true does not turn the second call into another registered type. This example concerns ordinary Python objects, not a live robot control command.

A list containing integers and a list containing text both have the runtime type list. They therefore reach the same list implementation in this registry. The documentation explicitly distinguishes a collection's runtime dispatch type from a static annotation describing its elements. Annotating a parameter with list of integers does not create element-by-element runtime routing.
This matters when reviewing a data-processing interface. Suppose one list represents sensor identifiers and another represents human-readable labels. If they require different handling, the interface needs some additional explicit distinction. The existence of two different element types alone is insufficient for this dispatch rule. An application can define separate record classes, use separate operations, or let the selected implementation inspect its explicit parameters.
The diagram shows the first-argument type entering the registry while the remaining argument travels directly to the selected function. That is a conceptual account of selection. It does not suggest that the library copies every argument into a second container or scans all the elements before dispatching.
The originally decorated function is associated with object, providing the default when no more specific implementation applies. If the exact input type has no registration, the dispatch system can select a more general registered type according to the relevant type relationships. A registration for a base class can consequently serve its subclasses.
Take a hypothetical Measurement class and a TemperatureMeasurement subclass. Register an implementation for Measurement and leave the subclass unregistered. A TemperatureMeasurement instance can use that base implementation. Registering a dedicated subclass implementation then supplies a more specific choice. This is a change to the registry, rather than a change to the fields held by an individual measurement instance.

The dispatch attribute accepts a type and returns the implementation the generic function would choose. The registry attribute provides a read-only mapping of explicitly registered implementations. These are related but different views. A subclass can resolve to a registered base implementation even though that subclass itself has no entry in the mapping.
For an interface review, record the concrete type passed to dispatch and the returned implementation. Then compare that result with the registry entries. This separates an absent exact-type registration from an absent usable implementation. Calling the original public operation also performs the selected function's behavior; merely asking dispatch for the function does not perform that behavior.
An illustrative review table can therefore have separate columns for the input value, its concrete type, the registered type being used and the chosen function name. Two values may differ in the first column while matching in the remaining columns. That agreement reflects the intended type-based rule rather than a failure to notice their different contents.
The register attribute returns the undecorated implementation function. As explained in the documentation, this supports using individual variants independently. It does not mean that every variable holding a registered function becomes the generic dispatcher. Keeping those two function identities distinct makes an example easier to reason about.
The original PEP 443 design document explains support for abstract base classes, including virtual subclasses. A type can satisfy more than one relevant abstract relationship without an ordinary explicit inheritance order resolving the choice. In the illustrated ambiguous case, singledispatch raises an error instead of arbitrarily choosing an implementation.
This differs from registering two unrelated concrete data values. Dispatch concerns their types and type relationships. When a utility unexpectedly selects a fallback or reports ambiguity, inspect those relationships and the registrations first. For further software explanations, browse the robot component references and the technical article library.