Skip to content

Use file=None not file=sys.stderr in the constructor #275

@DavidEscott

Description

@DavidEscott

This is in the family of def(foo=[]) type issues. Since you have file=sys.stderr in your init, I cannot change sys.stderr after importing tqdm and expect it to work correctly.

file=None followed by: file = file or sys.stderr would be preferable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions