Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3607526
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:23:12+00:00 2026-05-18T21:23:12+00:00

PEP 8 says that Python package and module names should be short, since some

  • 0

PEP 8 says that Python package and module names should be short, since some file systems will truncate long names. And I’m trying to follow Python conventions in a new project. But I really like long, descriptive names. So I’m wondering, how short do names need to be to comply with PEP 8. And does anyone really worry about this anymore? I’m tempted to ignore this recommendation, and use longer names, thinking this isn’t all that relevant anymore. Does anyone think this recommendation is still worth following? If yes, why? And how short is short enough?

edit: Thanks for all the helpful answers. I’m not going to worry about making my names real short, since I don’t think anyone will be running my system on a really old computer. And if it did happen, I could always shorten some of the names later. But I will limit them to 32 characters. And now I understand that PEP 8 is specifically meant for the standard library, and the name length thing does make sense in that case. But I think longer names will be better for the application I’m working on. I don’t think there’s one best answer here, so I’m going to flip a coin to help me decide.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:23:13+00:00Added an answer on May 18, 2026 at 9:23 pm

    The common Python platforms all support directory and file names of 32 characters or more, but I personally feel that if you find yourself breaking 11 characters often that you need to rethink things.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The PEP 8 style guide (Python) says methodnames should be lowercase and that sometimes
PEP 8 says: Python accepts the control-L (i.e. ^L) form feed character as whitespace;
Why in this millennium should Python PEP-8 specify a maximum line length of 79
In PEP 8 , it's stated that Constants are usually defined on a module
Is there a Python design decision (PEP) that precludes a sorted container from being
I'm having some trouble understanding the Importer Protocol as per http://www.python.org/dev/peps/pep-0302/ . Should the
PEP 8 states that (emphasis mine): We don't use the term private here, since
According to PEP 369 , post import hooks should be implemented for python 2.6
Is there any library that takes in your python file as input and does
From reading PEP-8, I get it that you should put the closing parenthesis on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.