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

92
python3/signal.py Normal file
View File

@@ -0,0 +1,92 @@
"""Stub file for the 'signal' 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.
ITIMER_PROF = Undefined(long)
ITIMER_REAL = Undefined(long)
ITIMER_VIRTUAL = Undefined(long)
ItimerError = Undefined(object)
NSIG = Undefined(long)
SIGABRT = Undefined(long)
SIGALRM = Undefined(long)
SIGBUS = Undefined(long)
SIGCHLD = Undefined(long)
SIGCLD = Undefined(long)
SIGCONT = Undefined(long)
SIGFPE = Undefined(long)
SIGHUP = Undefined(long)
SIGILL = Undefined(long)
SIGINT = Undefined(long)
SIGIO = Undefined(long)
SIGIOT = Undefined(long)
SIGKILL = Undefined(long)
SIGPIPE = Undefined(long)
SIGPOLL = Undefined(long)
SIGPROF = Undefined(long)
SIGPWR = Undefined(long)
SIGQUIT = Undefined(long)
SIGRTMAX = Undefined(long)
SIGRTMIN = Undefined(long)
SIGSEGV = Undefined(long)
SIGSTOP = Undefined(long)
SIGSYS = Undefined(long)
SIGTERM = Undefined(long)
SIGTRAP = Undefined(long)
SIGTSTP = Undefined(long)
SIGTTIN = Undefined(long)
SIGTTOU = Undefined(long)
SIGURG = Undefined(long)
SIGUSR1 = Undefined(long)
SIGUSR2 = Undefined(long)
SIGVTALRM = Undefined(long)
SIGWINCH = Undefined(long)
SIGXCPU = Undefined(long)
SIGXFSZ = Undefined(long)
SIG_DFL = Undefined(long)
SIG_IGN = Undefined(long)
def alarm(a: int) -> long: pass
def default_int_handler(*args, **kwargs) -> object:
raise KeyboardInterrupt()
def getitimer(a: int) -> tuple: pass
def getsignal(a: int) -> NoneType:
raise ValueError()
def pause() -> NoneType: pass
def pthread_kill(a: int, b: int) -> NoneType:
raise OSError()
def pthread_sigmask(a: int, b) -> object:
raise OSError()
def set_wakeup_fd(a: int) -> long:
raise ValueError()
def setitimer(a: int, b: float, *args, **kwargs) -> tuple: pass
def siginterrupt(a: int, b: int) -> NoneType:
raise ValueError()
raise OSError()
def signal(a: int, b) -> NoneType:
raise TypeError()
raise ValueError()
raise OSError()
def sigpending() -> object:
raise OSError()
def sigtimedwait(a, b) -> object:
raise ValueError()
raise OSError()
def sigwait(a) -> long:
raise OSError()
def sigwaitinfo(a) -> tuple:
raise OSError()