Skip to content

Opinionated warning: require strict= argument to zip() builtin #311

@Zac-HD

Description

@Zac-HD

In Python 3.10, PEP-618 added optional length-checking to zip().

Requiring uses of zip() to declare either strict= would be a nice option to prevent bugs when the argument was omitted, and the iterables were unexpectedly of different lengths. Of course it could also be pretty noisy, not to mention requiring Python 3.10 or later, so I think this should be disabled by default.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions