This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients LambertDW, TFinley, mark.dickinson, rhettinger
Date 2009-01-07.21:16:29
SpamBayes Score 1.3255334e-06
Marked as misclassified No
Message-id <1231362992.37.0.0595471669706.issue4816@psf.upfronthosting.co.za>
In-reply-to
Content
Got Sage working again.  It also returns an empty list for r > n.  For r 
negative, Combinations returns an empty list and Permutation gives an 
error.

sage: Combinations(range(4), 6)
Combinations of [0, 1, 2, 3] of length 6
sage: Combinations(range(4), 6).list()
[]
sage: Permutations(range(4), 6).list()
[]
sage: Combinations(range(4), -1).list()
[]
sage: Permutations(range(4), -1).list()
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
[... traceback snipped ...]
History
Date User Action Args
2009-01-07 21:16:32mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, LambertDW, TFinley
2009-01-07 21:16:32mark.dickinsonsetmessageid: <1231362992.37.0.0595471669706.issue4816@psf.upfronthosting.co.za>
2009-01-07 21:16:31mark.dickinsonlinkissue4816 messages
2009-01-07 21:16:30mark.dickinsoncreate