# sympy/sympy

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

# Partition can't be ordered #9608

Open
opened this Issue Jul 2, 2015 · 0 comments

Projects
None yet
1 participant
Member

### aktech commented Jul 2, 2015

 ```In [13]: from sympy.combinatorics.partitions import Partition In [14]: a = Partition([1, 2, 3], [4]) In [15]: b = Partition([1, 2], [3, 4]) In [16]: args = [a, b]``` Below is the Traceback: ``````In [17]: args = list(ordered(args, Set._infimum_key)) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) in () ----> 1 args = list(ordered(args, Set._infimum_key)) /home/amit/Desktop/myrepo/sympy/sympy/core/compatibility.pyc in ordered(seq, keys, default, warn) 676 raise ValueError( 677 'not enough keys to break ties: %s' % u) --> 678 for v in d[k]: 679 yield v 680 d.pop(k) /home/amit/Desktop/myrepo/sympy/sympy/core/compatibility.pyc in ordered(seq, keys, default, warn) 676 raise ValueError( 677 'not enough keys to break ties: %s' % u) --> 678 for v in d[k]: 679 yield v 680 d.pop(k) /home/amit/Desktop/myrepo/sympy/sympy/core/compatibility.pyc in ordered(seq, keys, default, warn) 657 f = keys.pop(0) 658 for a in seq: --> 659 d[f(a)].append(a) 660 else: 661 if not default: TypeError: unhashable type: 'list' ``````

### aktech referenced this issue Jul 2, 2015

Merged

#### Fix Intersection's of FiniteSet with symbolic elements #9540

7 of 7 tasks complete

### skirpichev added a commit to diofant/diofant that referenced this issue Aug 2, 2015

``` Fix return value of sort_key for Partition's ```
`Closes sympy/sympy#9608`
``` cf41470 ```

### skirpichev added a commit to diofant/diofant that referenced this issue Oct 2, 2015

``` Fix return value of sort_key for Partition's ```
`Closes sympy/sympy#9608`
``` 30aeff2 ```

### skirpichev added a commit to diofant/diofant that referenced this issue Dec 16, 2015

``` Fix return value of sort_key for Partition's ```
`Closes sympy/sympy#9608`
``` 2e1aa61 ```

### skirpichev added a commit to diofant/diofant that referenced this issue Dec 17, 2015

``` Fix return value of sort_key for Partition's ```
`Closes sympy/sympy#9608`
``` 66a4df7 ```

### skirpichev added a commit to diofant/diofant that referenced this issue Jan 19, 2016

``` Fix return value of sort_key for Partition's ```
`Closes sympy/sympy#9608`
``` f03e9c1 ```

### skirpichev added a commit to diofant/diofant that referenced this issue Mar 30, 2016

``` Fix return value of sort_key for Partition's ```
`Closes sympy/sympy#9608`
``` 33ee84d ```
to join this conversation on GitHub. Already have an account? Sign in to comment