annotate exceptions.py @ 313:009ce84e9f52
behaviour is now the same as a list in pylearn, so if len(ds) = 10, ds[10] raise an IndexError, same thing for ds[[1,10]], and ds[0:14:1] returns 10 elements
author |
Thierry Bertin-Mahieux <bertinmt@iro.umontreal.ca> |
date |
Wed, 11 Jun 2008 13:53:39 -0400 |
parents |
ee11ed427ba8 |
children |
|
rev |
line source |
166
|
1 """
|
|
2 Common exceptions.
|
|
3 @todo: This file should be part of a common/ python package.
|
|
4 """
|
|
5
|
|
6 class AbstractFunction (Exception): """Derived class must override this function"""
|
|
7 class NotImplementedYet (NotImplementedError): """Work in progress, this should eventually be implemented"""
|