Changes between Initial Version and Version 1 of Ticket #13072, comment 16


Ignore:
Timestamp:
08/29/12 19:49:49 (8 years ago)
Author:
jhpalmieri
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13072, comment 16

    initial v1  
    11Regarding `RestrictedPartitions`: see #12278. Should it be deprecated at all? In particular, what's the replacement for something like `RestrictedPartitions(5,[3,2,1], 3)`? The best I can come up with is
    2 
    3     [p for p in Partitions(5, parts_in=[3,2,1]) if len(p) == 3]
    4 
     2{{{
     3[p for p in Partitions(5, parts_in=[3,2,1]) if len(p) == 3]
     4}}}
    55but surely this isn't ideal.