Project

General

Profile

« Previous | Next » 

Revision 2301

strings.py: Added DebugPrintable

View differences:

lib/strings.py
5 5

  
6 6
import util
7 7

  
8
##### Debug printing
9

  
10
class DebugPrintable:
11
    def __str__(self): return util.class_name(self)+repr(self.__dict__)
12
    
13
    def __repr__(self): return str(self)
14

  
8 15
##### Parsing
9 16

  
10 17
def split(sep, str_):

Also available in: Unified diff