Skip to content

PEP 8 Explicitly State Variable Names convention? #535

@carltyndall

Description

@carltyndall

I have read and re-read pep 8. I am new to python. I may be missing it, but I cannot find a clear statement on variable names like is present for Function Names, and Method Names and Instance Variables. From those, I have inferred something like this may be correct?

Variable Names? Local Variable Names? (whatever the precise terminology should be)

Local Variable names should be lowercase, with words separated by
underscores as necessary to improve readability.

Function Names

Function names should be lowercase, with words separated by
underscores as necessary to improve readability.

Method Names and Instance Variables

Use the function naming rules: lowercase with words separated by
underscores as necessary to improve readability.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions