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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:18:37+00:00 2026-05-25T06:18:37+00:00

I originally had all of my modules in one package. I recently created a

  • 0

I originally had all of my modules in one package. I recently created a sub-package in the original package, and moved a few modules into that. My src folder, and the 2 package folders, are all in my PYTHONPATH.

Since I relocated those modules, changes that I’m making to their .py files don’t seem to be making their way into the generated *$py.class files, which I believe are ultimately what get run, based on what print __FILE__ spits out.

The .class files are located in the top-level package’s directory, which I believe is because the first place they are imported from is within a module that’s in that package. So I think they’re in the right place.

Moving the modules back to the top-level package does make the problem go away, but being forced to have all modules in one package is hardly a solution. Is there something I have to do to ‘register’ a module as part of a package, other than having it in a folder with an __init__.py?

Note: The rest of this question is just the symptoms that have caused me to conclude that the .class files are not being updated when I change the .py files. You can probably skip it if you’re a tl;dr kind of person 😛

I put a bunch of whitespace at the start of a function, and when I step through it, the cursor follows where the code used to be.

Here is the code the IDE shows me:

enter image description here

and here are the local vars (note that self has nothing bound):

enter image description here

After I step a couple of lines, here is the code (note the cursor position):
enter image description here
and the locals:

enter image description here

Notice that now self has had id and updatePeriod bound, so those first 2 lines of code after the whitespace have clearly been executed.

If I remove the .py file entirely (stick it on the desktop or something), then obviously the IDE can’t find it, so I can’t step through it, but the program runs based on what code used to be (there are some obvious changes that I can tell are not in effect).

Finally, the modification dates on the relevant *$py.class files are about 4.5 hours old, despite all this fiddling I’ve been doing with the recent .py files over the last hour or 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-05-25T06:18:38+00:00Added an answer on May 25, 2026 at 6:18 am

    Compiled Python files don’t get automatically removed, when .py gets removed. Since they are in $PYTHONPATH before your sub-packages, they are executed, and since there is no .py corresponding to them, they will get used and they will never be updated. The only solution is to manually remove them.

    PyDev apparently adds to confusion, by actually interpreting the source.

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

Sidebar

Related Questions

I originally had a lightbox that once opened simply fetched all brands from a
A co-worker asked about some code like this that originally had templates in it.
I had a problem that was making the original array to change, the curious
All, I originally had my setup like this and everything worked as expected. WEB-INF
I originally had an ActiveX control that registered a Windows timer (with SetTimer() )
i originally had a main form with 2 panels, one had a graph in
I originally had paperclip's default configuration contain :url => /some_path/:basename.:extension However, no all the
I have multiple enumerators that enumerate over flat files. I originally had each enumerator
NOTE: Originally had this listed as a memory leak. After looking into this deeper,
We use LDAP for Subversion access using Apache httpd. We originally had all of

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.