paul@61 | 1 | #!/usr/bin/env python |
paul@61 | 2 | |
paul@61 | 3 | """ |
paul@283 | 4 | Simple built-in classes and functions. Objects which provide code that shall |
paul@240 | 5 | always be compiled should provide docstrings. |
paul@61 | 6 | |
paul@240 | 7 | Copyright (C) 2005, 2006, 2007, 2008, 2009 Paul Boddie <paul@boddie.org.uk> |
paul@61 | 8 | |
paul@61 | 9 | This program is free software; you can redistribute it and/or modify it under |
paul@61 | 10 | the terms of the GNU General Public License as published by the Free Software |
paul@61 | 11 | Foundation; either version 3 of the License, or (at your option) any later |
paul@61 | 12 | version. |
paul@61 | 13 | |
paul@61 | 14 | This program is distributed in the hope that it will be useful, but WITHOUT |
paul@61 | 15 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
paul@61 | 16 | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
paul@61 | 17 | details. |
paul@61 | 18 | |
paul@61 | 19 | You should have received a copy of the GNU General Public License along with |
paul@61 | 20 | this program. If not, see <http://www.gnu.org/licenses/>. |
paul@61 | 21 | """ |
paul@61 | 22 | |
paul@61 | 23 | class object: |
paul@61 | 24 | def __init__(self): pass |
paul@61 | 25 | def __bool__(self): pass |
paul@61 | 26 | |
paul@63 | 27 | class basestring(object): |
paul@63 | 28 | def __init__(self, x=None): pass |
paul@346 | 29 | |
paul@346 | 30 | def __getitem__(self, index): |
paul@346 | 31 | # Note usage. |
paul@346 | 32 | IndexError |
paul@346 | 33 | |
paul@63 | 34 | def __getslice__(self, start, end=None): pass |
paul@63 | 35 | def __iadd__(self, other): pass |
paul@63 | 36 | def __add__(self, other): pass |
paul@63 | 37 | def __radd__(self, other): pass |
paul@63 | 38 | def __mul__(self, other): pass |
paul@203 | 39 | def __rmul__(self, other): pass |
paul@63 | 40 | def __mod__(self, other): pass |
paul@202 | 41 | def __rmod__(self, other): pass |
paul@63 | 42 | def __lt__(self, other): pass |
paul@63 | 43 | def __gt__(self, other): pass |
paul@63 | 44 | def __le__(self, other): pass |
paul@63 | 45 | def __ge__(self, other): pass |
paul@63 | 46 | def __eq__(self, other): pass |
paul@63 | 47 | def __ne__(self, other): pass |
paul@63 | 48 | def __len__(self): pass |
paul@63 | 49 | def __str__(self): pass |
paul@63 | 50 | def __bool__(self): pass |
paul@63 | 51 | def join(self, l): pass |
paul@63 | 52 | |
paul@63 | 53 | class bool(object): |
paul@61 | 54 | def __bool__(self): pass |
paul@61 | 55 | def __str__(self): pass |
paul@61 | 56 | |
paul@63 | 57 | class buffer(object): |
paul@61 | 58 | def __init__(self, size): pass |
paul@61 | 59 | def append(self, s): pass |
paul@61 | 60 | def __str__(self): pass |
paul@61 | 61 | |
paul@63 | 62 | class complex(object): |
paul@63 | 63 | def __init__(self, real, imag=None): pass |
paul@63 | 64 | |
paul@63 | 65 | class dict(object): |
paul@61 | 66 | def __init__(self, *args): pass |
paul@61 | 67 | def __setitem__(self, key, value): pass |
paul@346 | 68 | |
paul@346 | 69 | def __getitem__(self, key): |
paul@346 | 70 | # Note usage. |
paul@346 | 71 | KeyError |
paul@61 | 72 | |
paul@63 | 73 | class file(object): |
paul@61 | 74 | def write(self, s): pass |
paul@61 | 75 | |
paul@63 | 76 | class float(object): |
paul@61 | 77 | def __init__(self, number_or_string=None): pass |
paul@61 | 78 | def __iadd__(self, other): pass |
paul@61 | 79 | def __isub__(self, other): pass |
paul@61 | 80 | def __add__(self, other): pass |
paul@61 | 81 | def __radd__(self, other): pass |
paul@61 | 82 | def __sub__(self, other): pass |
paul@61 | 83 | def __rsub__(self, other): pass |
paul@61 | 84 | def __mul__(self, other): pass |
paul@61 | 85 | def __rmul__(self, other): pass |
paul@61 | 86 | def __div__(self, other): pass |
paul@61 | 87 | def __rdiv__(self, other): pass |
paul@61 | 88 | def __floordiv__(self, other): pass |
paul@61 | 89 | def __rfloordiv__(self, other): pass |
paul@61 | 90 | def __mod__(self, other): pass |
paul@202 | 91 | def __rmod__(self, other): pass |
paul@61 | 92 | def __pow__(self, other): pass |
paul@61 | 93 | def __rpow__(self, other): pass |
paul@61 | 94 | def __lt__(self, other): pass |
paul@61 | 95 | def __gt__(self, other): pass |
paul@61 | 96 | def __le__(self, other): pass |
paul@61 | 97 | def __ge__(self, other): pass |
paul@61 | 98 | def __eq__(self, other): pass |
paul@61 | 99 | def __ne__(self, other): pass |
paul@61 | 100 | def __neg__(self): pass |
paul@61 | 101 | def __pos__(self): pass |
paul@61 | 102 | def __str__(self): pass |
paul@61 | 103 | def __bool__(self): pass |
paul@61 | 104 | |
paul@63 | 105 | class frozenset(object): |
paul@63 | 106 | def __init__(self, iterable): pass |
paul@63 | 107 | |
paul@137 | 108 | class function(object): |
paul@137 | 109 | pass |
paul@137 | 110 | |
paul@63 | 111 | class int(object): |
paul@61 | 112 | def __init__(self, number_or_string=None): pass |
paul@61 | 113 | def __iadd__(self, other): pass |
paul@61 | 114 | def __isub__(self, other): pass |
paul@260 | 115 | def __iand__(self, other): pass |
paul@260 | 116 | def __ior__(self, other): pass |
paul@61 | 117 | def __add__(self, other): pass |
paul@61 | 118 | def __radd__(self, other): pass |
paul@61 | 119 | def __sub__(self, other): pass |
paul@61 | 120 | def __rsub__(self, other): pass |
paul@61 | 121 | def __mul__(self, other): pass |
paul@61 | 122 | def __rmul__(self, other): pass |
paul@61 | 123 | def __div__(self, other): pass |
paul@61 | 124 | def __rdiv__(self, other): pass |
paul@61 | 125 | def __floordiv__(self, other): pass |
paul@61 | 126 | def __rfloordiv__(self, other): pass |
paul@61 | 127 | def __mod__(self, other): pass |
paul@202 | 128 | def __rmod__(self, other): pass |
paul@61 | 129 | def __pow__(self, other): pass |
paul@202 | 130 | def __rpow__(self, other): pass |
paul@61 | 131 | def __and__(self, other): pass |
paul@61 | 132 | def __rand__(self, other): pass |
paul@61 | 133 | def __or__(self, other): pass |
paul@61 | 134 | def __ror__(self, other): pass |
paul@61 | 135 | def __xor__(self, other): pass |
paul@61 | 136 | def __rxor__(self, other): pass |
paul@61 | 137 | def __lt__(self, other): pass |
paul@61 | 138 | def __gt__(self, other): pass |
paul@61 | 139 | def __le__(self, other): pass |
paul@61 | 140 | def __ge__(self, other): pass |
paul@61 | 141 | def __eq__(self, other): pass |
paul@61 | 142 | def __ne__(self, other): pass |
paul@61 | 143 | def __neg__(self): pass |
paul@61 | 144 | def __pos__(self): pass |
paul@61 | 145 | def __str__(self): pass |
paul@61 | 146 | def __bool__(self): pass |
paul@260 | 147 | def __lshift__(self): pass |
paul@260 | 148 | def __rlshift__(self): pass |
paul@260 | 149 | def __rshift__(self): pass |
paul@260 | 150 | def __rrshift__(self): pass |
paul@61 | 151 | |
paul@63 | 152 | class list(object): |
paul@332 | 153 | |
paul@332 | 154 | "Implementation of list." |
paul@332 | 155 | |
paul@332 | 156 | def __init__(self, args=None): |
paul@332 | 157 | |
paul@332 | 158 | "Initialise the list." |
paul@332 | 159 | |
paul@332 | 160 | self.__new__() |
paul@332 | 161 | |
paul@332 | 162 | if args is not None: |
paul@332 | 163 | for arg in args: |
paul@332 | 164 | self.append(arg) |
paul@332 | 165 | |
paul@332 | 166 | def __new__(self): |
paul@336 | 167 | # Reserve space for a fragment reference. |
paul@336 | 168 | self._elements = None |
paul@332 | 169 | |
paul@346 | 170 | def __getitem__(self, index): |
paul@346 | 171 | # Note usage. |
paul@346 | 172 | IndexError |
paul@346 | 173 | |
paul@61 | 174 | def __setitem__(self, index, value): pass |
paul@61 | 175 | def __getslice__(self, start, end=None): pass |
paul@61 | 176 | def __setslice__(self, start, end, slice): pass |
paul@61 | 177 | def append(self, value): pass |
paul@61 | 178 | def __len__(self): pass |
paul@61 | 179 | def __add__(self, other): pass |
paul@61 | 180 | def __iadd__(self, other): pass |
paul@61 | 181 | def __str__(self): pass |
paul@61 | 182 | def __bool__(self): pass |
paul@61 | 183 | |
paul@259 | 184 | def __iter__(self): |
paul@259 | 185 | |
paul@259 | 186 | "Return an iterator." |
paul@259 | 187 | |
paul@259 | 188 | return listiterator(self) |
paul@259 | 189 | |
paul@259 | 190 | class listiterator(object): |
paul@262 | 191 | |
paul@262 | 192 | "Implementation of listiterator." |
paul@262 | 193 | |
paul@262 | 194 | def __init__(self, l): |
paul@262 | 195 | |
paul@262 | 196 | "Initialise with the given list 'l'." |
paul@262 | 197 | |
paul@262 | 198 | self.l = l |
paul@262 | 199 | self.i = 0 |
paul@262 | 200 | |
paul@262 | 201 | def next(self): |
paul@262 | 202 | |
paul@262 | 203 | "Return the next item." |
paul@262 | 204 | |
paul@262 | 205 | try: |
paul@262 | 206 | value = self.l[self.i] |
paul@262 | 207 | self.i += 1 |
paul@262 | 208 | return value |
paul@262 | 209 | except IndexError: |
paul@338 | 210 | raise StopIteration() |
paul@259 | 211 | |
paul@63 | 212 | class long(object): |
paul@61 | 213 | def __init__(self, number_or_string=None): pass |
paul@61 | 214 | def __iadd__(self, other): pass |
paul@61 | 215 | def __isub__(self, other): pass |
paul@61 | 216 | def __add__(self, other): pass |
paul@61 | 217 | def __radd__(self, other): pass |
paul@61 | 218 | def __sub__(self, other): pass |
paul@61 | 219 | def __rsub__(self, other): pass |
paul@61 | 220 | def __mul__(self, other): pass |
paul@61 | 221 | def __rmul__(self, other): pass |
paul@61 | 222 | def __div__(self, other): pass |
paul@61 | 223 | def __rdiv__(self, other): pass |
paul@61 | 224 | def __floordiv__(self, other): pass |
paul@61 | 225 | def __rfloordiv__(self, other): pass |
paul@61 | 226 | def __and__(self, other): pass |
paul@61 | 227 | def __rand__(self, other): pass |
paul@61 | 228 | def __or__(self, other): pass |
paul@61 | 229 | def __ror__(self, other): pass |
paul@61 | 230 | def __xor__(self, other): pass |
paul@61 | 231 | def __rxor__(self, other): pass |
paul@61 | 232 | def __lt__(self, other): pass |
paul@61 | 233 | def __gt__(self, other): pass |
paul@61 | 234 | def __le__(self, other): pass |
paul@61 | 235 | def __ge__(self, other): pass |
paul@61 | 236 | def __eq__(self, other): pass |
paul@61 | 237 | def __ne__(self, other): pass |
paul@61 | 238 | def __neg__(self): pass |
paul@61 | 239 | def __pos__(self): pass |
paul@61 | 240 | def __str__(self): pass |
paul@61 | 241 | def __bool__(self): pass |
paul@61 | 242 | |
paul@63 | 243 | class set(object): |
paul@63 | 244 | def __init__(self, iterable): pass |
paul@61 | 245 | |
paul@342 | 246 | # See below for slice. |
paul@61 | 247 | |
paul@63 | 248 | class str(basestring): |
paul@63 | 249 | pass |
paul@61 | 250 | |
paul@63 | 251 | class type(object): |
paul@63 | 252 | pass |
paul@63 | 253 | |
paul@63 | 254 | class tuple(object): |
paul@61 | 255 | def __init__(self, args): pass |
paul@346 | 256 | |
paul@346 | 257 | def __getitem__(self, index): |
paul@346 | 258 | # Note usage. |
paul@346 | 259 | IndexError |
paul@346 | 260 | |
paul@61 | 261 | def __getslice__(self, start, end=None): pass |
paul@61 | 262 | def __len__(self): pass |
paul@61 | 263 | def __add__(self, other): pass |
paul@61 | 264 | def __str__(self): pass |
paul@61 | 265 | def __bool__(self): pass |
paul@61 | 266 | |
paul@338 | 267 | def __iter__(self): |
paul@338 | 268 | |
paul@338 | 269 | "Return an iterator." |
paul@338 | 270 | |
paul@338 | 271 | return listiterator(self) |
paul@338 | 272 | |
paul@63 | 273 | class unicode(basestring): |
paul@63 | 274 | pass |
paul@63 | 275 | |
paul@63 | 276 | class xrange(object): |
paul@239 | 277 | |
paul@239 | 278 | "Implementation of xrange." |
paul@239 | 279 | |
paul@239 | 280 | def __init__(self, start_or_end, end=None, step=1): |
paul@239 | 281 | |
paul@239 | 282 | "Initialise the xrange with the given 'start_or_end', 'end' and 'step'." |
paul@239 | 283 | |
paul@239 | 284 | if end is None: |
paul@239 | 285 | self.start = 0 |
paul@239 | 286 | self.end = start_or_end |
paul@239 | 287 | else: |
paul@239 | 288 | self.start = start_or_end |
paul@239 | 289 | self.end = end |
paul@239 | 290 | |
paul@239 | 291 | self.step = step |
paul@239 | 292 | self.current = self.start |
paul@342 | 293 | self.limited = self.end is not None |
paul@239 | 294 | |
paul@239 | 295 | def __iter__(self): |
paul@239 | 296 | |
paul@239 | 297 | "Return an iterator, currently self." |
paul@239 | 298 | |
paul@239 | 299 | return self |
paul@239 | 300 | |
paul@239 | 301 | def next(self): |
paul@239 | 302 | |
paul@239 | 303 | "Return the next item or raise a StopIteration exception." |
paul@239 | 304 | |
paul@342 | 305 | if self.limited: |
paul@342 | 306 | if self.step < 0 and self.current <= self.end or self.step > 0 and self.current >= self.end: |
paul@342 | 307 | raise StopIteration() |
paul@239 | 308 | |
paul@239 | 309 | current = self.current |
paul@239 | 310 | self.current += self.step |
paul@239 | 311 | return current |
paul@61 | 312 | |
paul@342 | 313 | class slice(xrange): |
paul@342 | 314 | |
paul@342 | 315 | "Implementation of slice." |
paul@342 | 316 | |
paul@342 | 317 | def __init__(self, start_or_end=None, end=None, step=1): |
paul@342 | 318 | |
paul@342 | 319 | "Initialise the slice with the given 'start_or_end', 'end' and 'step'." |
paul@342 | 320 | |
paul@342 | 321 | xrange.__init__(self, start_or_end, end, step) |
paul@342 | 322 | |
paul@63 | 323 | # Exceptions and warnings. |
paul@63 | 324 | |
paul@63 | 325 | class BaseException(object): |
paul@240 | 326 | |
paul@240 | 327 | "Implementation of BaseException." |
paul@240 | 328 | |
paul@235 | 329 | def __init__(self, *args): |
paul@235 | 330 | self.args = args |
paul@61 | 331 | |
paul@63 | 332 | class Exception(BaseException): pass |
paul@63 | 333 | class Warning(object): pass |
paul@61 | 334 | |
paul@63 | 335 | class ArithmeticError(Exception): pass |
paul@63 | 336 | class AssertionError(Exception): pass |
paul@63 | 337 | class AttributeError(Exception): pass |
paul@63 | 338 | class DeprecationWarning(Exception): pass |
paul@63 | 339 | class EOFError(Exception): pass |
paul@63 | 340 | class EnvironmentError(Exception): pass |
paul@63 | 341 | class FloatingPointError(Exception): pass |
paul@63 | 342 | class FutureWarning(Warning): pass |
paul@63 | 343 | class GeneratorExit(Exception): pass |
paul@63 | 344 | class ImportError(Exception): pass |
paul@63 | 345 | class ImportWarning(Warning): pass |
paul@63 | 346 | class IndentationError(Exception): pass |
paul@63 | 347 | class IndexError(Exception): pass |
paul@216 | 348 | class IOError(Exception): pass |
paul@63 | 349 | class KeyError(Exception): pass |
paul@63 | 350 | class KeyboardInterrupt(Exception): pass |
paul@63 | 351 | class LookupError(Exception): pass |
paul@63 | 352 | class MemoryError(Exception): pass |
paul@63 | 353 | class NameError(Exception): pass |
paul@63 | 354 | class NotImplementedError(Exception): pass |
paul@63 | 355 | class OSError(Exception): pass |
paul@63 | 356 | class OverflowError(Exception): pass |
paul@63 | 357 | class PendingDeprecationWarning(Warning): pass |
paul@63 | 358 | class ReferenceError(Exception): pass |
paul@63 | 359 | class RuntimeError(Exception): pass |
paul@63 | 360 | class RuntimeWarning(Warning): pass |
paul@63 | 361 | class StandardError(Exception): pass |
paul@240 | 362 | class StopIteration(Exception): "Implementation of StopIteration." |
paul@63 | 363 | class SyntaxError(Exception): pass |
paul@63 | 364 | class SyntaxWarning(Warning): pass |
paul@63 | 365 | class SystemError(Exception): pass |
paul@63 | 366 | class SystemExit(Exception): pass |
paul@63 | 367 | class TabError(Exception): pass |
paul@63 | 368 | class TypeError(Exception): pass |
paul@63 | 369 | class UnboundLocalError(Exception): pass |
paul@63 | 370 | class UnicodeDecodeError(Exception): pass |
paul@63 | 371 | class UnicodeEncodeError(Exception): pass |
paul@63 | 372 | class UnicodeError(Exception): pass |
paul@63 | 373 | class UnicodeTranslateError(Exception): pass |
paul@63 | 374 | class UnicodeWarning(Warning): pass |
paul@63 | 375 | class UserWarning(Warning): pass |
paul@63 | 376 | class ValueError(Exception): pass |
paul@63 | 377 | class ZeroDivisionError(Exception): pass |
paul@61 | 378 | |
paul@63 | 379 | # Various types. |
paul@63 | 380 | |
paul@203 | 381 | #class ellipsis: pass |
paul@146 | 382 | class NoneType: pass |
paul@63 | 383 | class NotImplementedType: pass |
paul@61 | 384 | |
paul@63 | 385 | # General functions. |
paul@63 | 386 | # NOTE: Some of these are actually provided by classes in CPython. |
paul@63 | 387 | # NOTE: We may refuse to support some of these in practice, such as... |
paul@63 | 388 | # NOTE: super, reload. |
paul@63 | 389 | |
paul@63 | 390 | def __import__(name, globals=None, locals=None, fromlist=None, level=-1): pass |
paul@63 | 391 | def abs(number): pass |
paul@63 | 392 | def all(iterable): pass |
paul@63 | 393 | def any(iterable): pass |
paul@63 | 394 | def callable(obj): pass |
paul@63 | 395 | def chr(i): pass |
paul@63 | 396 | def classmethod(function): pass |
paul@63 | 397 | def cmp(x, y): pass |
paul@63 | 398 | def compile(source, filename, mode, flags=None, dont_inherit=None): pass |
paul@63 | 399 | def delattr(obj, name): pass |
paul@63 | 400 | def dir(obj=None): pass |
paul@63 | 401 | def divmod(x, y): pass |
paul@63 | 402 | def enumerate(iterable): pass |
paul@63 | 403 | def eval(source, globals=None, locals=None): pass |
paul@63 | 404 | def execfile(filename, globals=None, locals=None): pass |
paul@63 | 405 | def filter(function, sequence): pass |
paul@63 | 406 | def getattr(obj, name, default=None): pass |
paul@63 | 407 | def globals(): pass |
paul@63 | 408 | def hasattr(obj, name): pass |
paul@63 | 409 | def hash(obj): pass |
paul@213 | 410 | def help(*args): pass |
paul@63 | 411 | def hex(number): pass |
paul@63 | 412 | def id(obj): pass |
paul@63 | 413 | def input(prompt=None): pass |
paul@63 | 414 | def isinstance(obj, cls_or_tuple): pass |
paul@63 | 415 | def issubclass(obj, cls_or_tuple): pass |
paul@334 | 416 | |
paul@334 | 417 | def iter(collection): |
paul@334 | 418 | |
paul@334 | 419 | "Implementation of iter without callable plus sentinel support." |
paul@334 | 420 | |
paul@334 | 421 | return collection.__iter__() |
paul@246 | 422 | |
paul@246 | 423 | def len(obj): |
paul@246 | 424 | |
paul@246 | 425 | "Implementation of len." |
paul@246 | 426 | |
paul@246 | 427 | return obj.__len__() |
paul@246 | 428 | |
paul@63 | 429 | def locals(): pass |
paul@342 | 430 | |
paul@63 | 431 | def map(function, *args): pass |
paul@342 | 432 | |
paul@342 | 433 | def max(*args): |
paul@342 | 434 | |
paul@342 | 435 | "Implementation of max." |
paul@342 | 436 | |
paul@342 | 437 | highest = args[0] |
paul@342 | 438 | for arg in args[1:]: |
paul@342 | 439 | if arg > highest: |
paul@342 | 440 | highest = arg |
paul@342 | 441 | return highest |
paul@342 | 442 | |
paul@342 | 443 | def min(*args): |
paul@342 | 444 | |
paul@342 | 445 | "Implementation of min." |
paul@342 | 446 | |
paul@342 | 447 | lowest = args[0] |
paul@342 | 448 | for arg in args[1:]: |
paul@342 | 449 | if arg > lowest: |
paul@342 | 450 | lowest = arg |
paul@342 | 451 | return lowest |
paul@342 | 452 | |
paul@63 | 453 | def oct(number): pass |
paul@63 | 454 | def open(name, mode=None, buffering=None): pass |
paul@63 | 455 | def ord(c): pass |
paul@63 | 456 | def pow(x, y, z=None): pass |
paul@63 | 457 | def property(fget=None, fset=None, fdel=None, doc=None): pass |
paul@246 | 458 | |
paul@246 | 459 | def range(start_or_end, end=None, step=1): |
paul@246 | 460 | |
paul@246 | 461 | "Implementation of range." |
paul@246 | 462 | |
paul@246 | 463 | l = [] |
paul@246 | 464 | for i in xrange(start_or_end, end, step): |
paul@246 | 465 | l.append(i) |
paul@246 | 466 | return l |
paul@246 | 467 | |
paul@63 | 468 | def raw_input(prompt=None): pass |
paul@63 | 469 | def reduce(function, sequence, initial=None): pass |
paul@63 | 470 | def reload(module): pass |
paul@63 | 471 | def repr(obj): pass |
paul@63 | 472 | def reversed(sequence): pass |
paul@63 | 473 | def round(number, ndigits=None): pass |
paul@63 | 474 | def setattr(obj, name, value): pass |
paul@63 | 475 | def sorted(iterable, cmp=None, key=None, reverse=False): pass |
paul@63 | 476 | def staticmethod(function): pass |
paul@63 | 477 | def sum(sequence, start=0): pass |
paul@63 | 478 | def super(*args): pass |
paul@63 | 479 | def unichr(i): pass |
paul@63 | 480 | def vars(obj=None): pass |
paul@63 | 481 | def zip(*args): pass |
paul@63 | 482 | |
paul@167 | 483 | # Reference some names to ensure their existence. This should be everything |
paul@167 | 484 | # mentioned in a get_builtin or load_builtin call. Instances from this module |
paul@167 | 485 | # should be predefined constants. |
paul@167 | 486 | |
paul@167 | 487 | function |
paul@167 | 488 | AttributeError |
paul@345 | 489 | #StopIteration |
paul@167 | 490 | TypeError |
paul@346 | 491 | #IndexError |
paul@203 | 492 | |
paul@346 | 493 | #list |
paul@203 | 494 | tuple |
paul@203 | 495 | #xrange |
paul@203 | 496 | #ellipsis |
paul@203 | 497 | #bool |
paul@167 | 498 | |
paul@61 | 499 | # vim: tabstop=4 expandtab shiftwidth=4 |