示例#1
0
def setReader(rdr, leftbrace):
    """Read and return a possibly empty set #{} from rdr.

    rdr -- a read/unread-able object
    leftbrace -- ignored"""
    s = readDelimitedList("}", rdr, True)
    return createWithCheck(s)
 def testCreateWithCheck_PASS(self):
     s3 = createWithCheck(["foo", 3.0, 9])
     self.assertEqual(len(s3), 3)
 def testCreateWithCheck_PASS(self):
     s3 = createWithCheck(["foo", 3.0, 9])
     self.assertEqual(len(s3), 3)