* Migrate set() and frozenset() from the sandbox.

* Install the unittests, docs, newsitem, include file, and makefile update.
* Exercise the new functions whereever sets.py was being used.

Includes the docs for libfuncs.tex.  Separate docs for the types are
forthcoming.
This commit is contained in:
Raymond Hettinger 2003-11-16 16:17:49 +00:00
parent d456849f19
commit a690a9967e
21 changed files with 2338 additions and 40 deletions

View file

@ -2,7 +2,6 @@ import unittest
from test.test_support import run_unittest, TESTFN
import glob
import os
from sets import Set
def mkdirs(fname):
if os.path.exists(fname) or fname == '':
@ -62,7 +61,7 @@ class GlobTests(unittest.TestCase):
return glob.glob(p)
def assertSequencesEqual_noorder(self, l1, l2):
self.assertEqual(Set(l1), Set(l2))
self.assertEqual(set(l1), set(l2))
def test_glob_literal(self):
eq = self.assertSequencesEqual_noorder