]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
cone/permutation_invariant.py: use xrange in two places.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 4 Nov 2018 05:53:11 +0000 (01:53 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 4 Nov 2018 05:53:11 +0000 (01:53 -0400)
mjo/cone/permutation_invariant.py

index faa39f76fbe9072c54f1ff29cebb563d1e8524cb..1c72565fb6532e7692904dc70db7907dab4c3ff1 100644 (file)
@@ -59,8 +59,8 @@ def is_permutation_invariant(K):
     The rearrangement cone is permutation-invariant::
 
         sage: all( is_permutation_invariant(rearrangement_cone(p,n))
-        ....:               for n in range(3, 6)
-        ....:               for p in range(1, n) )
+        ....:               for n in xrange(3, 6)
+        ....:               for p in xrange(1, n) )
         True
 
     As is the nonnegative orthant::