[issue8525] Display exception's subclasses in help()

2018-02-08 Thread Sanyam Khurana

Change by Sanyam Khurana :


--
assignee:  -> CuriousLearner
versions: +Python 3.8 -Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8525] Display exception's subclasses in help()

2017-12-31 Thread Sanyam Khurana

Sanyam Khurana  added the comment:

I've changed the version to 3.7. Not sure if this would need a backport since 
this is a new feature. So, I'll defer this call to a core developer. I've 
created a PR for the new feature.

--
versions: +Python 3.7 -Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8525] Display exception's subclasses in help()

2017-12-31 Thread Sanyam Khurana

Change by Sanyam Khurana :


--
pull_requests: +4940
stage: needs patch -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8525] Display exception's subclasses in help()

2017-02-20 Thread Sanyam Khurana

Sanyam Khurana added the comment:

Hi,

It seems that it hasn't been worked upon from quite a long time and the patch 
would also need changes. May I work on this?

--
nosy: +CuriousLearner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8525] Display exception's subclasses in help()

2012-10-06 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
assignee: georg.brandl - 

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8525
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8525] Display exception's subclasses in help()

2010-12-03 Thread Rob Cliffe

Rob Cliffe rob.cli...@btinternet.com added the comment:

Originally I only had built-in classes in mind (with Exceptions being 
IMO the most obvious example of a built-in class hierarchy that it is 
useful to find your way around).  But if the idea can be extended to 
other classes, well, great.
Rob Cliffe

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8525
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8525] Display exception's subclasses in help()

2010-12-02 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Didn’t the first message ask for the feature to be extended to non-exceptions 
classes?  “Built-in” subclasses is a red herring, to me the feature is: display 
subclasses.  In the text output you can use the search feature of your pager to 
jump to a subclass, in the HTML output it would be a helpful link.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8525
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8525] Display exception's subclasses in help()

2010-12-02 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

On Thu, Dec 2, 2010 at 9:56 PM, Éric Araujo rep...@bugs.python.org wrote:
..
 Didn’t the first message ask for the feature to be extended to non-exceptions 
 classes?  “Built-in”
 subclasses is a red herring, to me the feature is: display subclasses.  In 
 the text output you can use
 the search feature of your pager to jump to a subclass, in the HTML output it 
 would be a helpful link.

If we don't restrict to builtins, then the display will depend on what
modules are currently loaded and will be useless for command line use
unless all subclasses are defined in the same module.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8525
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8525] Display exception's subclasses in help()

2010-12-02 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Yes, I imagine the feature to be useful to find subclasses defined in the same 
module.  Rob, am I misunderstanding your original request?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8525
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8525] Display exception's subclasses in help()

2010-11-22 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

The proposal is to display builtin subclasses as for example:

 help(ArithmeticError)
class ArithmeticError(Exception)
 |  Base class for arithmetic errors.
 |  
 |  Method resolution order:
 |  ArithmeticError
 |  Exception
 |  BaseException
 |  object
 |  
 |  Built-in subclasses:
 |  FloatingPointError
 |  OverflowError
 |  ZeroDivisionError

Note that this really affects only exceptions because no other builtin class 
has builtin subclasses.  (dict has subclasses in collections, but not in 
builtins.)

Exception hierarchy is presented in the reference manual at

http://docs.python.org/dev/library/exceptions.html?#exception-hierarchy

I wonder if rather than having MRO and subclasses sections, we should just 
present a portion of the exception hierarchy including the given exception, all 
its bases and direct subclasses:

object
 |
BaseException
 |
Exception
 |
*ArithmeticError*
 |
 +-- FloatingPointError
 +-- OverflowError
 +-- ZeroDivisionError

--
title: Small enhancement to help() - Display exception's subclasses in help()

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8525
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com