Sure, but even list has copy(). I meant settable property on the generator not on the generated permutation.
On Mon, Nov 17, 2014 at 12:44 PM, Ram Rachum email@example.com wrote:
Settable properties are a no-go because I wanted permutation spaces to be immutable. Since the cost of creating a new space is nil (permutations are created on-demand, not on space creation) there isn't a reason to mutate an existing space.
I don't think using a copy() method to would be very nice. But I guess it's a matter of taste.
On Mon, Nov 17, 2014 at 7:33 PM, Neil Girdhar firstname.lastname@example.org wrote:
Why did you go with "get_rapplied", "unrapplied", etc. instead of having a copy() method and using settable properties?
On Mon, Nov 17, 2014 at 10:50 AM, Ram Rachum email@example.com wrote:
I just wanted to give an update on this: I just released my own code that does this to PyPI: https://pypi.python.org/pypi/combi
On Tue, Jun 10, 2014 at 9:24 AM, Ram Rachum firstname.lastname@example.org wrote:
I'll email you if/when it's released :)
On Tue, Jun 10, 2014 at 9:04 AM, Neil Girdhar email@example.com wrote:
I really like this and hope that it eventually makes it into the stdlib. It's also a good argument for your other suggestion whereby some of the itertools to return Iterables rather than Iterators like range does.
On Wednesday, May 7, 2014 1:43:20 PM UTC-4, Ram Rachum wrote:
I'm probably going to implement it in my python_toolbox package. I already implemented 30% and it's really cool. It's at the point where I doubt that I want it in the stdlib because I've gotten so much awesome functionality into it and I'd hate to (a) have 80% of it stripped and (b) have the class names changed to be non-Pythonic :)
On Wed, May 7, 2014 at 8:40 PM, Tal Einat tale...@gmail.com wrote:
On Wed, May 7, 2014 at 8:21 PM, Ram Rachum ram.r...@gmail.com > wrote: > > Hi Tal, > > > > I'm using it for a project of my own (optimizing keyboard layout) > but I > > can't make the case that it's useful for the stdlib. I'd > understand if it > > would be omitted for not being enough of a common need. > > At the least, this (a function for getting a specific permutation by > lexicographical-order index) could make a nice cookbook recipe. > > - Tal >
Python-ideas mailing list Pythonfirstname.lastname@example.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/ --
You received this message because you are subscribed to a topic in the Google Groups "python-ideas" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-ideas/in2gUQMFUzA/unsubscribe . To unsubscribe from this group and all its topics, send an email to email@example.com. For more options, visit https://groups.google.com/d/optout.