regex search with a space as the fist character

2009-09-16 Thread Daniel Santos
Hello, >>> print re.compile('u ').search(" u box2", 1) <_sre.SRE_Match object at 0x7ff1d918> >>> print re.compile(' u ').search(" u box2", 1) None Why ? -- http://mail.python.org/mailman/listinfo/python-list

Re: list as an instance attribute

2009-09-14 Thread Daniel Santos
Here goes, I have a base class that is the following : class primitive: def __init__(self): self.name = "" self.transforms = [] def copyInternalState(self, sourceObj, copyName): return null def copy(self, copyName):