On Friday, 29 November 2013 19:49:32 UTC+1, Nathann Cohen wrote: > > Oh. And on top of everything, the documentation of RestrictedPartitions > (a deprecated class) says that the feature it implements is *NOT* available > through Partitions. > > So this thing has been deprecated while there was no other way to get the > result. > > Sooooooooo I guess it will stay there forever, deprecated. Good job. > > Nathann > > > Hi Nathan,
RestrictedPartions were depreciated in trac5478<http://trac.sagemath.org/ticket/5478>, incorrectly as you point out. See the previous discussion about this point in sage-combinat-devel<https://groups.google.com/forum/#!topicsearchin/sage-combinat-devel/RestrictedPartitions|sort:date/sage-combinat-devel/utAsQzZQKLo>, particularly starting from 30/8//2012. It's listed on trac12278<http://trac.sagemath.org/ticket/12278>as an issue to be fixed. Andrew > On 29 November 2013 17:17, Nathann Cohen <nathan...@gmail.com<javascript:> > > wrote: > >> Okay, this time it did not take long. Quote from the constructor of >> Partitions : >> >> if 'parts_in' in kwargs: >> return Partitions_parts_in(n, kwargs['parts_in']) >> elif 'starting' in kwargs: >> return Partitions_starting(n, kwargs['starting']) >> elif 'ending' in kwargs: >> return Partitions_ending(n, kwargs['ending']) >> >> From this code, we learn that we can build a partitions with a "starting" >> parameter, an "ending" parameter, OR a "parts_in" parameter, but that those >> arguments CAN NEVER BE COMBINED. >> >> Honestly, you cannot look at a code like that and not notice that >> something wrong is going on. >> >> I will create (as in #13742) a patch that screams when bad input is >> given. Actually I just did, it is #15467. >> >> Nathann >> >>> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "sage-combinat-devel" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/sage-combinat-devel/vyMs7PQ8KbA/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> sage-combinat-devel+unsubscr...@googlegroups.com <javascript:>. >> To post to this group, send email to >> sage-comb...@googlegroups.com<javascript:> >> . >> Visit this group at http://groups.google.com/group/sage-combinat-devel. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-combinat-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-combinat-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-combinat-devel. For more options, visit https://groups.google.com/groups/opt_out.