Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 7
    If most of your variables are module-level constants, you're probably doing something unusual. Most of them should live inside functions. Commented Feb 16, 2017 at 14:09
  • 2
    can you show us a sample of your code that pylint thinks are constants? Commented Feb 16, 2017 at 17:26
  • @WinstonEwert NOTES_DIRECTORY = argv[1] chdir(NOTES_DIRECTORY) FILES = glob('*.txt') RAND_FILE = choice(FILES) with open(RAND_FILE) as notes_file: POINTS = notes_file.readlines() RAND_POINT = choice(POINTS) Commented Feb 20, 2017 at 15:53
  • @AbhishekKumar, is your code in a function, or at the top level? Commented Feb 20, 2017 at 19:25
  • @WinstonEwert At the top level and after following PyLint's instructions. Commented Feb 21, 2017 at 1:19