Show More
@@ -15,20 +15,15 b' details on the PSF (Python Software Foundation) standard license, see:' | |||
|
15 | 15 | |
|
16 | 16 | http://www.python.org/2.2.3/license.html |
|
17 | 17 | |
|
18 |
$Id: Debugger.py 22 |
|
|
18 | $Id: Debugger.py 2902 2007-12-28 12:28:01Z vivainio $""" | |
|
19 | 19 | |
|
20 | 20 | #***************************************************************************** |
|
21 | 21 | # |
|
22 | # Since this file is essentially a modified copy of the pdb module which is | |
|
23 | # part of the standard Python distribution, I assume that the proper procedure | |
|
24 | # is to maintain its copyright as belonging to the Python Software Foundation | |
|
25 | # (in addition to my own, for all new code). | |
|
22 | # This file is licensed under the PSF license. | |
|
26 | 23 | # |
|
27 | 24 | # Copyright (C) 2001 Python Software Foundation, www.python.org |
|
28 | 25 | # Copyright (C) 2005-2006 Fernando Perez. <fperez@colorado.edu> |
|
29 | 26 | # |
|
30 | # Distributed under the terms of the BSD License. The full license is in | |
|
31 | # the file COPYING, distributed as part of this software. | |
|
32 | 27 | # |
|
33 | 28 | #***************************************************************************** |
|
34 | 29 |
@@ -1,12 +1,21 b'' | |||
|
1 | __all__ = ["generic"] | |
|
2 | ||
|
3 | from types import ClassType, InstanceType | |
|
4 | classtypes = type, ClassType | |
|
1 | #Name: simplegeneric | |
|
2 | #Version: 0.6 | |
|
3 | #Summary: Simple generic functions (similar to Python's own len(), pickle.dump(), etc.) | |
|
4 | #Home-page: http://cheeseshop.python.org/pypi/simplegeneric | |
|
5 | #Author: Phillip J. Eby | |
|
6 | #Author-email: peak@eby-sarna.com | |
|
7 | #License: PSF or ZPL | |
|
5 | 8 | |
|
6 | 9 | # This is version 0.6 of Philip J. Eby's simplegeneric module |
|
7 | 10 | # (http://cheeseshop.python.org/pypi/simplegeneric) patched to work |
|
8 | 11 | # with Python 2.3 (which doesn't support assigning to __name__) |
|
9 | 12 | |
|
13 | __all__ = ["generic"] | |
|
14 | ||
|
15 | ||
|
16 | from types import ClassType, InstanceType | |
|
17 | classtypes = type, ClassType | |
|
18 | ||
|
10 | 19 | def generic(func): |
|
11 | 20 | """Create a simple generic function""" |
|
12 | 21 |
General Comments 0
You need to be logged in to leave comments.
Login now