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 7531309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:08:14+00:00 2026-05-30T05:08:14+00:00

I’m currently creating a code named SET. The code’s name is an acronym, which

  • 0

I’m currently creating a code named “SET”. The code’s name is an acronym, which has been defined for many (non programming) reasons, and therefore cannot be changed.

Problem: The easiest, and I believe the less painful way for the end-user to use my code would be naming the package “set”.
But of course this is a problem since this conflicts with the built-in set function.

Question: What are the possible solutions? Some may be (there is probably more):

  1. change the package name (eg. setb).

    import setb
    

    I would really really prefer not to, because then it will be different from the real name

  2. make the package’s name upper-case (SET)

    import SET
    

    It would be a straight forward solution, but I’m wondering: is this a pythonic proper naming for a package? Also, I find this a bit painful since all modules defined in the code will have something like “import SET.x.y…” (ie. upper-case, written a lot of times). But this is not a really big deal if this is a pythonic way.

  3. keep the name “set”

    import set
    

    Well this is obviously not fine. But it would be a problem only if the user is using “import set”, would not it be? This should not happen in “normal usage conditions”, since the code will provides some scripts to use it, rather use it as a standard python module. But we never know, and it could be imported as it, and there may be even some problems I’m not seeing (with the built-in set).

I’m considering the solution 2., but I’m really not sure. Maybe this is not proper, or maybe you guys have a better solution.

PS: I’ve found some similar topics on the web and on stackoverflow, but it usually deals with names inside a script or module inside a package. The problem here is really related to the code’s name (which is meaningful only written this way), and therefore related to the proper naming of the package’s name.


EDIT

Selected solution: I’ve choosen to use “SET” as the package name. Although many good suggestions have been proposed here: pyset, semt, setool… or the more explicit “starexoplanettool” (expliciting the acronym). Thanks to you all.

EDIT #2

I like the “funny” solution of having a package named S, and a subpackage, E… to get finally:

    import S.E.T

Thanks Don Question.

  • 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-30T05:08:15+00:00Added an answer on May 30, 2026 at 5:08 am

    Is this a pythonic proper naming for a package?

    Under the circumstances, it doesn’t matter.

    Leading upper case is rare (ConfigParser, HTMLParser). Camel-case is rare (cStringIO).
    But that doesn’t make all upper-case wrong.

    It just means you should pick a better acronym next time.

    “set” is the English word with the largest number of definitions. It is the single poorest choice of acronym possible.

    The point is not to conform to a community “standard” of more-or-less acceptable behavior.

    The point is to write something that works.

    (ie. upper-case, written a lot of times).

    Hardly a concern. People actually run software more often than they write it.

    People read and tweak more often than writing, also.

    If you’re worried about misspelling, there’s copy and paste.

    Also, even a cheap IDE like Komodo Edit can figure out how to code-complete an installed module with a long name.

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

Sidebar

Related Questions

I want to count how many characters a certain string has in PHP, but
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace

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.