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

  • Home
  • SEARCH
  • 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 8853833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:44:41+00:00 2026-06-14T13:44:41+00:00

Suppose I import several functions from a python module in the following way: import

  • 0

Suppose I import several functions from a python module in the following way:

import module1
from module2 import *

Now, if I change one of the functions in the module1, I can just run

reload(module1)

But I can’t do the same for module2
How can I do the same for reloading all the functions in module2? Currently, I have to exit and restart iPython.

I am using Python 2.7.2

  • 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-14T13:44:43+00:00Added an answer on June 14, 2026 at 1:44 pm

    best advice is to not use from module2 import *…. if you don’t want to retype module2 each time, you could do something like import module2 as m2

    then you can reload(m2)

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

Sidebar

Related Questions

Suppose you have these modules: module1.py import module2 def a(): module1.b() def c(): print
Suppose I have this Python code: from itertools import count, tee original = count()
Suppose I have the following Button made with Tkinter in Python: import Tkinter as
Suppose I have a recarray such as the following: import numpy as np #
Suppose I have import scala.collection.immutable.TreeMap val tree = new TreeMap[String, List[String]] Now after above
This is pretty much Python, but asking from a Django user. Suppose this is
Suppose I'm halfway through running an import, and instead of running SELECT COUNT(*) FROM
i m trying to import records from one table to another table. i m
Suppose I have a module with the methods : function1,function2,function3. I want to import
How can I remove specific object from ArrayList? Suppose I have a class as

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.