]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove outdated XXX comment. Mapping support was removed for 3.x.
authorRaymond Hettinger <python@rcn.com>
Mon, 6 Sep 2010 22:54:24 +0000 (22:54 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 6 Sep 2010 22:54:24 +0000 (22:54 +0000)
Lib/random.py

index 568de88e636dacae7dc6815f0c624b2a5d27a8ac..f919718a6db012725a2f8b485e574e4749edf697 100644 (file)
@@ -292,15 +292,6 @@ class Random(_random.Random):
         large population:   sample(xrange(10000000), 60)
         """
 
-        # XXX Although the documentation says `population` is "a sequence",
-        # XXX attempts are made to cater to any iterable with a __len__
-        # XXX method.  This has had mixed success.  Examples from both
-        # XXX sides:  sets work fine, and should become officially supported;
-        # XXX dicts are much harder, and have failed in various subtle
-        # XXX ways across attempts.  Support for mapping types should probably
-        # XXX be dropped (and users should pass mapping.keys() or .values()
-        # XXX explicitly).
-
         # Sampling without replacement entails tracking either potential
         # selections (the pool) in a list or previous selections in a set.