Skip to content

enumerate #5

@GrenManSK

Description

@GrenManSK

It's not really an issue but a tip that in arguments parsing

for loop (lines 65-79)

  • You use enumerate() with start = 0, which is default, you should change it to 1 inasmuch you don't use "index" variable at starting value, always running calculation which are not necessary

Changes

  • argv[index + 1] to argv[index]
  • for index, arg in enumerate(argv): to for index, arg in enumerate(argv, start = 1):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions