1 #!/usr/bin/env python 2 3 """ 4 Simple built-in classes and functions. 5 6 Copyright (C) 2005, 2006, 2007, 2008 Paul Boddie <paul@boddie.org.uk> 7 8 This program is free software; you can redistribute it and/or modify it under 9 the terms of the GNU General Public License as published by the Free Software 10 Foundation; either version 3 of the License, or (at your option) any later 11 version. 12 13 This program is distributed in the hope that it will be useful, but WITHOUT 14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 15 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 16 details. 17 18 You should have received a copy of the GNU General Public License along with 19 this program. If not, see <http://www.gnu.org/licenses/>. 20 """ 21 22 class object: 23 def __init__(self): pass 24 def __bool__(self): pass 25 def __iadd__(self, other): pass 26 27 class bool: 28 def __bool__(self): pass 29 def __str__(self): pass 30 31 class buffer: 32 def __init__(self, size): pass 33 def append(self, s): pass 34 def __str__(self): pass 35 36 class dict: 37 def __init__(self, *args): pass 38 def __setitem__(self, key, value): pass 39 def __getitem__(self, key): pass 40 41 class file: 42 def write(self, s): pass 43 44 class float: 45 def __init__(self, number_or_string=None): pass 46 def __iadd__(self, other): pass 47 def __isub__(self, other): pass 48 def __add__(self, other): pass 49 def __radd__(self, other): pass 50 def __sub__(self, other): pass 51 def __rsub__(self, other): pass 52 def __mul__(self, other): pass 53 def __rmul__(self, other): pass 54 def __div__(self, other): pass 55 def __rdiv__(self, other): pass 56 def __floordiv__(self, other): pass 57 def __rfloordiv__(self, other): pass 58 def __mod__(self, other): pass 59 def __pow__(self, other): pass 60 def __rpow__(self, other): pass 61 def __lt__(self, other): pass 62 def __gt__(self, other): pass 63 def __le__(self, other): pass 64 def __ge__(self, other): pass 65 def __eq__(self, other): pass 66 def __ne__(self, other): pass 67 def __neg__(self): pass 68 def __pos__(self): pass 69 def __str__(self): pass 70 def __bool__(self): pass 71 72 class int: 73 def __init__(self, number_or_string=None): pass 74 def __iadd__(self, other): pass 75 def __isub__(self, other): pass 76 def __add__(self, other): pass 77 def __radd__(self, other): pass 78 def __sub__(self, other): pass 79 def __rsub__(self, other): pass 80 def __mul__(self, other): pass 81 def __rmul__(self, other): pass 82 def __div__(self, other): pass 83 def __rdiv__(self, other): pass 84 def __floordiv__(self, other): pass 85 def __rfloordiv__(self, other): pass 86 def __mod__(self, other): pass 87 def __pow__(self, other): pass 88 def __and__(self, other): pass 89 def __rand__(self, other): pass 90 def __or__(self, other): pass 91 def __ror__(self, other): pass 92 def __xor__(self, other): pass 93 def __rxor__(self, other): pass 94 def __lt__(self, other): pass 95 def __gt__(self, other): pass 96 def __le__(self, other): pass 97 def __ge__(self, other): pass 98 def __eq__(self, other): pass 99 def __ne__(self, other): pass 100 def __neg__(self): pass 101 def __pos__(self): pass 102 def __str__(self): pass 103 def __bool__(self): pass 104 105 class list: 106 def __init__(self, args=()): pass 107 def __getitem__(self, index): pass 108 def __setitem__(self, index, value): pass 109 def __getslice__(self, start, end=None): pass 110 def __setslice__(self, start, end, slice): pass 111 def append(self, value): pass 112 def __len__(self): pass 113 def __add__(self, other): pass 114 def __iadd__(self, other): pass 115 def __str__(self): pass 116 def __iter__(self): pass 117 def __bool__(self): pass 118 119 class long: 120 def __init__(self, number_or_string=None): pass 121 def __iadd__(self, other): pass 122 def __isub__(self, other): pass 123 def __add__(self, other): pass 124 def __radd__(self, other): pass 125 def __sub__(self, other): pass 126 def __rsub__(self, other): pass 127 def __mul__(self, other): pass 128 def __rmul__(self, other): pass 129 def __div__(self, other): pass 130 def __rdiv__(self, other): pass 131 def __floordiv__(self, other): pass 132 def __rfloordiv__(self, other): pass 133 def __and__(self, other): pass 134 def __rand__(self, other): pass 135 def __or__(self, other): pass 136 def __ror__(self, other): pass 137 def __xor__(self, other): pass 138 def __rxor__(self, other): pass 139 def __lt__(self, other): pass 140 def __gt__(self, other): pass 141 def __le__(self, other): pass 142 def __ge__(self, other): pass 143 def __eq__(self, other): pass 144 def __ne__(self, other): pass 145 def __neg__(self): pass 146 def __pos__(self): pass 147 def __str__(self): pass 148 def __bool__(self): pass 149 150 class none: 151 def __bool__(self): pass 152 def __str__(self): pass 153 154 NoneType = none 155 156 class slice: 157 def __init__(self, start_or_end, end=None, step=None): pass 158 159 class str: 160 def __init__(self, x=None): pass 161 def __getitem__(self, index): pass 162 def __getslice__(self, start, end=None): pass 163 def __iadd__(self, other): pass 164 def __add__(self, other): pass 165 def __radd__(self, other): pass 166 def __mul__(self, other): pass 167 def __radd__(self, other): pass 168 def __mod__(self, other): pass 169 def __lt__(self, other): pass 170 def __gt__(self, other): pass 171 def __le__(self, other): pass 172 def __ge__(self, other): pass 173 def __eq__(self, other): pass 174 def __ne__(self, other): pass 175 def __len__(self): pass 176 def __str__(self): pass 177 def __bool__(self): pass 178 def join(self, l): pass 179 180 class tuple: 181 def __init__(self, args): pass 182 def __getitem__(self, index): pass 183 def __getslice__(self, start, end=None): pass 184 def __len__(self): pass 185 def __add__(self, other): pass 186 def __str__(self): pass 187 def __iter__(self): pass 188 def __bool__(self): pass 189 190 class xrange: 191 def __init__(self, start_or_end, end=None, step=1): pass 192 def __iter__(self): pass 193 def next(self): pass 194 195 class Exception: 196 def __init__(self, *args): pass 197 198 class AssertionError(Exception): 199 pass 200 201 class AttributeError(Exception): 202 pass 203 204 class IndexError(Exception): 205 pass 206 207 class StopIteration(Exception): 208 pass 209 210 class TypeError(Exception): 211 pass 212 213 class NotImplementedType: 214 pass 215 216 # General functions. 217 218 def isinstance(obj, cls): pass 219 def issubclass(cls1, cls2): pass 220 def len(x): pass 221 def max(*l): pass 222 def range(start_or_end, end=None, step=None): pass 223 224 # Special values. 225 226 True = bool() 227 False = bool() 228 None = none() 229 stdin = file() 230 stdout = file() 231 stderr = file() 232 NotImplemented = NotImplementedType() 233 234 # vim: tabstop=4 expandtab shiftwidth=4