86
86
87
87
This came up in some subtle bug once::
88
88
89
- sage: gp( 2) + gap( 3) # needs sage. libs. pari
89
+ sage: gp( 2) + gap( 3) # needs sage. libs. gap sage . libs . pari
90
90
5
91
91
"""
92
92
# ****************************************************************************
@@ -1685,16 +1685,18 @@ cdef class Parent(sage.structure.category_object.CategoryObject):
1685
1685
.... : D[tuple(nk) ] = v
1686
1686
.... : return a. parent( ) ( D)
1687
1687
1688
+ sage: # needs sage. groups
1688
1689
sage: R. <x, y, z> = QQ['x, y, z' ]
1689
- sage: G = SymmetricGroup( 3) # needs sage . groups
1690
- sage: act = SymmetricGroupAction( G, R) # needs sage . groups
1690
+ sage: G = SymmetricGroup( 3)
1691
+ sage: act = SymmetricGroupAction( G, R)
1691
1692
sage: t = x + 2* y + 3* z
1692
1693
1693
- sage: act( G(( 1, 2)) , t) # needs sage. groups
1694
+ sage: # needs sage. groups
1695
+ sage: act( G(( 1, 2)) , t)
1694
1696
2* x + y + 3* z
1695
- sage: act( G(( 2, 3)) , t) # needs sage . groups
1697
+ sage: act( G(( 2, 3)) , t)
1696
1698
x + 3* y + 2* z
1697
- sage: act( G(( 1, 2, 3)) , t) # needs sage . groups
1699
+ sage: act( G(( 1, 2, 3)) , t)
1698
1700
3* x + y + 2* z
1699
1701
1700
1702
This should fail, since we have not registered the left
@@ -1707,9 +1709,10 @@ cdef class Parent(sage.structure.category_object.CategoryObject):
1707
1709
1708
1710
Now let's make it work::
1709
1711
1710
- sage: R. _unset_coercions_used( ) # needs sage. groups
1711
- sage: R. register_action( act) # needs sage. groups
1712
- sage: G(( 1, 2)) * t # needs sage. groups
1712
+ sage: # needs sage. groups
1713
+ sage: R. _unset_coercions_used( )
1714
+ sage: R. register_action( act)
1715
+ sage: G(( 1, 2)) * t
1713
1716
2* x + y + 3* z
1714
1717
"""
1715
1718
if self ._coercions_used:
0 commit comments