Add Python 3 modules, and more Python 2 modules.

Also, sort names alphabetically and add module docstrings.
This commit is contained in:
Matthias Kramm
2015-03-24 15:33:39 -07:00
parent 231d854ef3
commit c2c162a723
39 changed files with 1452 additions and 507 deletions

48
python3/time.py Normal file
View File

@@ -0,0 +1,48 @@
"""Stub file for the 'time' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def asctime(*args, **kwargs) -> unicode: pass
def clock() -> float: pass
def clock_getres(a: int) -> float:
raise IOError()
def clock_gettime(a: int) -> float:
raise IOError()
def clock_settime(a: int, b) -> NoneType:
raise IOError()
def ctime(*args, **kwargs) -> unicode: pass
def get_clock_info(a: str) -> object:
raise ValueError()
def gmtime(*args, **kwargs) -> tuple:
raise OSError()
def localtime(*args, **kwargs) -> tuple: pass
def mktime(*args, **kwargs) -> float:
raise OverflowError()
def monotonic() -> float: pass
def perf_counter() -> float: pass
def process_time() -> float: pass
def sleep(a: float) -> NoneType:
raise ValueError()
def strftime(a: str, *args, **kwargs) -> unicode:
raise MemoryError()
def strptime(*args, **kwargs) -> object: pass
def time() -> float: pass
def tzset() -> NoneType: pass