mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
python-3.6.zip added from Github
README.cosmo contains the necessary links.
This commit is contained in:
parent
75fc601ff5
commit
0c4c56ff39
4219 changed files with 1968626 additions and 0 deletions
37
third_party/python/Lib/test/pydoc_mod.py
vendored
Normal file
37
third_party/python/Lib/test/pydoc_mod.py
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
"""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: str = "eggs"
|
||||
pass
|
||||
|
||||
class C(object):
|
||||
def say_no(self):
|
||||
return "no"
|
||||
def get_answer(self):
|
||||
""" Return say_no() """
|
||||
return self.say_no()
|
||||
def is_it_true(self):
|
||||
""" Return self.get_answer() """
|
||||
return self.get_answer()
|
||||
|
||||
def doc_func():
|
||||
"""
|
||||
This function solves all of the world's problems:
|
||||
hunger
|
||||
lack of Python
|
||||
war
|
||||
"""
|
||||
|
||||
def nodoc_func():
|
||||
pass
|
Loading…
Add table
Add a link
Reference in a new issue