2

According to this pylint-wiki, it seems that 2 letter variable names are ok:

Variable variable-rgx [a-z_][a-z0-9_]{2,30}$

But for some reason I get the following error:

Variable name "fl" doesn't conform to snake_case naming style (invalid-name)
OrenIshShalom
  • 5,974
  • 9
  • 37
  • 87

1 Answers1

5

The regular expression says:

  • A letter or underscore
  • Followed by at least 2 letters, underscores or digits

In total this sums up to at least 3 characters per variable name.

Roland Illig
  • 40,703
  • 10
  • 88
  • 121
  • 2
    oh my ! completely missed that ... after so many years of teaching reg-exps ... I hope none of my students land here :)) – OrenIshShalom Jun 02 '21 at 05:48