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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:30:36+00:00 2026-05-27T10:30:36+00:00

Is it possible to import everything except one module from a package? I need

  • 0

Is it possible to import everything except one module from a package?

I need a lot of modules from a particular library that I use in my class, but it looks like it used the same module name for one of the modules that I need.

I need to use set operation and intersection, but when I import that library from my class, it gives me an error because of that.

I didn’t want to import it separately or put the name in front of every methods since I’m using it a lot.

Is there a way for the python to import everything except for a particular method like set?
Or maybe import the set part again later?

  • 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-27T10:30:36+00:00Added an answer on May 27, 2026 at 10:30 am

    No, there is no terminology to from ... import * except blah, bleh, bluh. You can either write your own import function to support it, or do something like:

    from xyz import *
    del set
    

    which will stop shadowing the built-in set so you can use it again. Then if you need the xyz.set function you can do:

    from xyz import set as xyzset
    

    Note: from ... import * is not usually good practice, and you should make sure the modules you are using this way support it — if they don’t explicity say they were designed to be used this way, then you shouldn’t (unless you enjoy debugging weird problems later ;).

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

Sidebar

Related Questions

Is it possible to import a namespace from an assembly that is not in
it is possible to import the css file from another server? let's say i
Is it possible to import the attributes of one table, then I put it
Using PyObjC, is it possible to import a Python module, call a function and
Is it possible to use a function import in a where clause in entity
Possible Duplicate: Import / read / load variables from matlab matfile it C# I
Possible Duplicate: Import package.* vs import package.SpecificType while importing packages in java does it
Possible Duplicate: Python import MySQLdb error - Mac 10.6 I've tried everything I can
I have a class that stores information about a week: from django.db import models
Is it possible to import csv data into mysql and automatically create the column

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.