Lichen

lib/genericos.py

231:72b93c7c757a
2016-11-24 Paul Boddie Added issubclass and improved isinstance, also introducing various native functions and operations.
     1 #!/usr/bin/env python     2      3 from posix.io import fstat     4 from posix.filesys import listdir, lstat, readlink     5 from posix.process import getcwd, getcwdu, getuid     6      7 class OSError(EnvironmentError):     8     pass     9     10 error = OSError    11 environ = {}    12         13 def execl(file, *args): pass    14 def execle(file, *args): pass    15 def execlp(file, *args): pass    16 def execlpe(file, *args): pass    17 def execv(path, args): pass    18 def execve(path, args, env): pass    19 def execvp(file, args): pass    20 def execvpe(file, args, env): pass    21 def getenv(key, default=None): pass    22 def makedirs(name, mode=511): pass    23 def popen2(cmd, mode='t', bufsize=-1): pass    24 def popen3(cmd, mode='t', bufsize=-1): pass    25 def popen4(cmd, mode='t', bufsize=-1): pass    26 def removedirs(name): pass    27 def renames(old, new): pass    28 def spawnl(mode, file, *args): pass    29 def spawnle(mode, file, *args): pass    30 def spawnlp(mode, file, *args): pass    31 def spawnlpe(mode, file, *args): pass    32 def spawnv(mode, file, args): pass    33 def spawnve(mode, file, args, env): pass    34 def spawnvp(mode, file, args): pass    35 def spawnvpe(mode, file, args, env): pass    36 def walk(top, topdown=True, onerror=None, followlinks=False): pass    37     38 P_WAIT = 0    39 P_NOWAIT = P_NOWAITO = 1    40     41 SEEK_CUR = 1    42 SEEK_END = 2    43 SEEK_SET = 0    44     45 name = 'posix'    46 linesep = '\n'    47     48 # vim: tabstop=4 expandtab shiftwidth=4