mirror of
https://github.com/python/cpython.git
synced 2024-12-15 04:44:47 +08:00
4979b9b91e
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86504 | alexander.belopolsky | 2010-11-17 20:52:54 -0500 (Wed, 17 Nov 2010) | 15 lines Issue #10446: Several changes to module documentation generated by pydoc: 1. Online reference manual link is now version-specific and the 'MODULE DOCS' section renamed to 'MODULE REFERENCE'. 2. 'FILE' section is moved to the end of the file. 3. Special names processed by pydoc such as __version__ or __credits__ are now excluded from the DATA section. 4. Defined __all__ to prevent pydoc from exposing undocumented details about itself. 5. Removed Python 2.3 compatibility code. ........
28 lines
461 B
Python
28 lines
461 B
Python
"""This is a test module for test_pydoc"""
|
|
|
|
__author__ = "Benjamin Peterson"
|
|
__credits__ = "Nobody"
|
|
__version__ = "1.2.3.4"
|
|
__xyz__ = "X, Y and Z"
|
|
|
|
class A:
|
|
"""Hello and goodbye"""
|
|
def __init__():
|
|
"""Wow, I have no function!"""
|
|
pass
|
|
|
|
class B(object):
|
|
NO_MEANING = "eggs"
|
|
pass
|
|
|
|
def doc_func():
|
|
"""
|
|
This function solves all of the world's problems:
|
|
hunger
|
|
lack of Python
|
|
war
|
|
"""
|
|
|
|
def nodoc_func():
|
|
pass
|