Project

General

Profile

« Previous | Next » 

Revision 4028

strings.py: Added none_str and helper class NonInternedStr to support sentinel str values

View differences:

lib/strings.py
5 5

  
6 6
import util
7 7

  
8
##### Sentinel values
9

  
10
class NonInternedStr(str):
11
    '''Each instance is unique and does not compare identical with `is`.'''
12
    pass
13

  
14
none_str = NonInternedStr()
15

  
8 16
##### Parsing
9 17

  
10 18
def concat(str0, str1, max_len):

Also available in: Unified diff