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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:29:34+00:00 2026-05-23T01:29:34+00:00

Coming from a Java background, I like it when I was warned that I

  • 0

Coming from a Java background, I like it when I was warned that I was not catching an exception, without having to read the documentation. And if I did read the documentation about a method, the exception thrown was shown right in the documentation’s method signature.

With Python I have to often read through a paragraph of text in the documentation, to find one sentence stating what exception will be thrown.

Also, I was using a third party library in Python today, http://packages.python.org/kombu/reference/kombu.connection.html and this infuriates me. There is no standard documentation format? I was using the channel method ( http://packages.python.org/kombu/reference/kombu.connection.html#kombu.connection.BrokerConnection.channel ) and it doesnt even state that it throws an exception. I had to find this through trial and error.

Am I missing something obvious here, or are exceptions treated as an afterthought in Python and its documentation.

  • 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-23T01:29:35+00:00Added an answer on May 23, 2026 at 1:29 am

    We love exceptions. They’re a pretty important language feature. Good documentation will generally state what exceptions will be thrown in which cases, and personally I found most documentation to be good in this regard. Of course there’s always some percentage of documentation that isn’t good. Either way, if you’re looking for an explicit free-standing list per function, you’re out of luck. Nobody knows this except the programmers working on the code.

    Reading a paragraph doesn’t sound too bad to me, especially since the information that paragraph is usually very important either way. And then there’s <Ctrl+F>raises<Enter>…

    There is no standard documentation format?

    There’s Sphinx, which is used by many projects (including docs.python.org so you already know it; and also including the project you linked to although it uses a different optical style). Of course nobody can force every project to use it, just like you can’t force them to use the standard coding style. But honestly, I think all projects I’ve used so far except two (PyGame and LEPL) used Sphinx. This may be because I have to use relatively few thanks to the extensive standard library, but still.

    I like it when I was warned that I was not catching an exception

    Why? At a wild guess, 60% of the exceptions beginners get is because they didn’t code properly, not because of some exceptional enviromental state that needs to be handled. TypeError and ImportError, for instance, simply don’t occur in a bug-free well-written program (save metaprogramming and sections that require extreme dynamism).

    In general, if you want the compiler to tell you things about your code you didn’t already knew, you’re using the wrong language. Python is dynamic, you test instead of analyzing statically. Deal with it.

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

Sidebar

Related Questions

Coming from a java background I'm used to having a bunch of properties files
I have just 'inherited' a Java-project and not coming from a Java-background I am
Coming from a java background, one of the things I am used to is
When I was learning Java coming from a background of some 20 years of
Coming from a background, I'm familiar with GUI editors that do a poor job
Coming from Java background I am guessing this is expected. I would really love
Coming from a Java background, I'm used to the common practice of dealing with
Coming from a Java background, I find C++'s enums very lame. I wanted to
I'm coming from a Java background, with its class-based inheritance model, trying to get
I'm learning C++ coming from a Java background (knowing a little C from many

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.