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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:25:20+00:00 2026-06-15T20:25:20+00:00

One way is to use import x, without using from keyword. So then you

  • 0

One way is to use import x, without using “from” keyword. So then you refer to things with their namespace everywhere.

Is there any other way? like doing something like in C++ ifnotdef __b__ def __b__ type of thing?

  • 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-06-15T20:25:21+00:00Added an answer on June 15, 2026 at 8:25 pm

    Merge any pair of modules that depend on each other into a single module. Then introduce extra modules to get the old names back.

    E.g.,

    # a.py
    from b import B
    
    class A: whatever
    
    # b.py
    from a import A
    
    class B: whatever
    

    becomes

    # common.py
    class A: whatever
    class B: whatever
    
    # a.py
    from common import A
    
    # b.py
    from common import B
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to use one CASE statement and return 2 different values?
Is there a way to use one of this preview controls with UISplitViewController's detail
Are there any counterindications to fork under mod_perl2? Should one use another way to
Is there a way I can use one category to stylize all of my
is there a way to configure trac to use more than one svn repo
One way to solve optimisation problems is to use an SMT solver to ask
QUESTION: What is the proper way to use .get() in conjunction with .one() (or
Is there a way to inherit imports? Example: Common enum: public enum Constant{ ONE,
Trying to access an old c++ dll from c# using Dll Import. Been searching
I'm letting the user import plugin-like classes from a remote location using URLClassLoader, so

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.