Is there any specific reason driving Python files to often be so large? Python files may contain several classes within one file, and some files go up over 10k lines in length. This seems to go against the idea of modularity and encapsulation.

Also it doesn't seem "Pythonic" in the first place, considering IMO it can be harder to read and follow.

closed as unclear what you're asking by user40980, FrustratedWithFormsDesigner, dietbuddha, gnat, Robert Harvey Apr 23 '14 at 4:23

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    This is a question that appears to be primarily opinion based, which is off topic for Programmers.SE – Adam Zuckerman Apr 23 '14 at 2:56
  • This is difficult to answer without context. What are you comparing these files to? – Greg Hewgill Apr 23 '14 at 3:16
  • 1
    What make you think that source files should be small ? I often have source files of several thousands of lines. – Basile Starynkevitch Apr 23 '14 at 5:12
  • 1
    Well, it seems odd (coming from a JS/Java/Bash background) to have a single source file that is several thousand lines long. It also doesn't seem to me like it would be "Pythonic", either. – Isiah Meadows Apr 23 '14 at 14:57
  • 1
    Do you have examples of these very large .py files or an interpretation why it wouldn't be pythonic? – user40980 Apr 23 '14 at 15:15

Browse other questions tagged or ask your own question.