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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:01:42+00:00 2026-06-03T00:01:42+00:00

I have developed some very small projects with python, with their respective packages. So,

  • 0

I have developed some very small projects with python, with their respective packages. So, I can execute setup.py and install them. However, I dont know the proper update procedure after developing a new version, or the proper procedure for comparing the new version against the stable version. Suppose that DoTask is the name of my stable package, with a function execute

from DoTask import execute

if __name__ == '__main__':
    result = execute('path_to_data')
    print result

How can I import the new version, for comparing results? How can I update the stable version, after testing and debugging?

For example, currently I do this:

1) I give the name DevDoTask to the developing version

from DoTask import execute
from DevDoTask import execute as test_execute

if __name__ == '__main__':
    result = execute('path_to_data')
    test_result = test_execute('path_to_data') 
    print result == test_result
  • 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-03T00:01:44+00:00Added an answer on June 3, 2026 at 12:01 am

    Comparing the results to those of the previous version doesn’t seem like a good idea, because the previous version (although considered ‘stable’) can have bugs as well.

    Consider creating a test suite using, for instance, the unittest module. Maybe create a sample of the input data simple enough for you to know for sure what the results should be and hard-code those in the test (I don’t know if it’s a very good idea, but to me it looks better than comparing blindly to the previous results).

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

Sidebar

Related Questions

I am stuck in a very difficult condition. I have made some small projects
I have developed some custom DAO-like classes to meet some very specialized requirements for
i have developed some applications for blind which makes them to use basic mobile
I have developed some sms application and I can't figure out how to solve
I have developed a python C-extension that receives data from python and compute some
I have developed some mysql queries for my application, and created indexes and used
I have developed some classes with similar behavior, they all implement the same interface.
I've studied C programming in college some years ago and have developed some medium
We are developing a customized installer using Wix and Wpf. We have developed some
I have developed a site, which has some static pages. Like explore, home, feedback.

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.