Skip to content

Module names are confusing #40

@hepheir

Description

@hepheir
원문 보기

단일 클래스만을 가지는 파일은 파일명을 클래스명과 일치시키고 있지만, 이는 헷갈릴 소지가 다분하다.

구글의 python style guide에서도 권장하지 않는 방법이다.

조치가 필요하다.

For files with only a single class, the file name matches the class name, but this can be confusing.

This naming rule is not recommended even in Google's python style guide.

Action is needed.

Use CapWords for class names, but lower_with_under.py for module names. Although there are some old modules named CapWords.py, this is now discouraged because it’s confusing when the module happens to be named after a class. (“wait – did I write import StringIO or from StringIO import StringIO?”)

https://google.github.io/styleguide/pyguide.html#3162-naming-conventions

Metadata

Metadata

Assignees

Labels

type:othersissues not falling in bug, perfromance, support, build and install or feature

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions