Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1"""Warnings and Exceptions that can be raised by special functions.""" 

2import warnings 

3 

4 

5class SpecialFunctionWarning(Warning): 

6 """Warning that can be emitted by special functions.""" 

7 pass 

8 

9 

10warnings.simplefilter("always", category=SpecialFunctionWarning) 

11 

12 

13class SpecialFunctionError(Exception): 

14 """Exception that can be raised by special functions.""" 

15 pass