On 3/30/13 8:39 AM, Gary McConnell wrote:
One more thing Jason: the code you wrote, as far as I can see, does not
take account of "N", which I guess is your N=set(N1) of my "N1" - the
point is I guess that if I pass N1 to the function instead of your F
then it should be ok (ie it only searches within the subset N1 of the
full vector space); but (and this is how I got into this mess in the
first place!) I keep on getting messages about mutable vectors being
unhashable, no matter how I try to weave the list N1 into the search
function. Hence my klunky kode ...

So perhaps I have inadvertently created N1 in such a way that it will
not let me copy it; or is there another way to get that type of
assignment "N=set(N1)" to work?


Yes, you can pass in N1 instead of F --- all it does is iterate through that set.

I added this line to make the vectors immutable before storing them in the set: https://gist.github.com/jasongrout/5276508#file-findsets-py-L22

Thanks,

Jason


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to