Skip to content

Documentation example: Sending in loop wrapper #13

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.

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions