A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://python.github.io/peps/pep-0233/ below:

PEP 233 – Python Online Help

PEP 233 – Python Online Help
Author:
Paul Prescod <paul at prescod.net>
Status:
Deferred
Type:
Standards Track
Created:
11-Dec-2000
Python-Version:
2.1
Post-History:
Table of Contents Abstract

This PEP describes a command-line driven online help facility for Python. The facility should be able to build on existing documentation facilities such as the Python documentation and docstrings. It should also be extensible for new types and modules.

Interactive use

Simply typing help describes the help function (through repr() overloading).

help can also be used as a function.

The function takes the following forms of input:

If you ask for a global, it can be a fully-qualified name, such as:

You can also use the facility from a command-line:

In either situation, the output does paging similar to the more command.

Implementation

The help function is implemented in an onlinehelp module which is demand-loaded.

There should be options for fetching help information from environments other than the command line through the onlinehelp module:

onlinehelp.gethelp(object_or_string) -> string

It should also be possible to override the help display function by assigning to onlinehelp.displayhelp(object_or_string).

The module should be able to extract module information from either the HTML or LaTeX versions of the Python documentation. Links should be accommodated in a “lynx-like” manner.

Over time, it should also be able to recognize when docstrings are in “special” syntaxes like structured text, HTML and LaTeX and decode them appropriately.

A prototype implementation is available with the Python source distribution as nondist/sandbox/doctools/onlinehelp.py.

Built-in Topics Security Issues

This module will attempt to import modules with the same names as requested topics. Don’t use the modules if you are not confident that everything in your PYTHONPATH is from a trusted source.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4