Skip to content

Documentation example: Sending in loop wrapper #13

@sigvaldm

Description

@sigvaldm

It's bad style for low-level computation functions to print to screen just by themselves. However, in loops in such functions it is often convenient to view progress. A class or a function doing such things may take an iterable wrapper as an argument, for instance timer.iterate, which can output to screen. As default the identity function should do, and there's virtually no penalty. This technique is interchangeable with tqdm, for loops with faster iterations and when less statistics is desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions