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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:07:00+00:00 2026-05-20T15:07:00+00:00

I cannot find much advantage in them besides kind of documentation purpose. Python will

  • 0

I cannot find much advantage in them besides kind of documentation purpose. Python will warn me if I forget to implement a method I defined in a ABC but since I do not reference my objects by their interfaces I can forget to declare methods in their interfaces and I won’t event notice it.
Is it common practice to use ABC’s for interface-like behaviour?

  • 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-20T15:07:00+00:00Added an answer on May 20, 2026 at 3:07 pm

    Personally, I find abstract classes to be most useful when writing libraries or other code which interfaces between one developer and another.

    One of the advantages of statically-typed languages is that when you use the wrong type, it fails early (often, as early as compile time). ABCs allow Python to gain this same advantage with dynamic typing.

    If your library code duck types an object which lacks a vital method, it likely won’t fail until that method is needed (which could take significant time or put resources into an inconsistent state, depending on how it’s used). With ABCs, however, a missing method either isn’t using the correct ABC (and fails an instanceof check) or is “validated” by the ABC.

    Additionally, ABCs serve as an excellent way to document interfaces, both conceptually and, via docstrings, literally.

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

Sidebar

Related Questions

I cannot find much documentation about HashMaps in j2me. Does anyone have experience with
I cannot find this in the documentation anywhere. Does anyone know if this is
I've googled around everywhere, but cannot find much for rendering strings to textures and
Frustratingly my laptop has Rails 3 on it, although I cannot find much supporting
I cannot find comparison of these parsing technique. Which one is most commonly used?
I get this message: Cannot find the X.509 certificate using the following search criteria:
I have stfw but I cannot find a simple / standalone way to create
I have a few things that I cannot find a good way to perform
I have just started using silverlight 2 beta and cannot find how to or
This seems to be a common problem but I cannot find a solution. I

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.