Skip to content
New issue

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.

Already on GitHub? Sign in to your account

sage.{cpython,data_structures,databases,ext,parallel,structure}: Update # needs #36067

Merged
merged 40 commits into from
Aug 27, 2023
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
a74f3a2
src/sage/structure/factory.pyx: Avoid using sage.rings.all in doctest
mkoeppe Mar 9, 2023
2ff901e
sage.parallel: More # optional
mkoeppe Mar 12, 2023
9763f23
sage.data_structures: More # optional
mkoeppe Mar 12, 2023
237c053
sage.parallel: Do not fail if sage.interfaces.quit is not available
mkoeppe Mar 12, 2023
b3f1afc
sage.parallel: More # optional
mkoeppe Mar 12, 2023
f2097d0
sage.structure: More # optional
mkoeppe Mar 13, 2023
72f0031
sage.parallel: More # optional
mkoeppe Mar 18, 2023
cc15c6e
More # optional
mkoeppe Apr 24, 2023
09ed088
sage.{sets,structure}: More # optional
mkoeppe Apr 26, 2023
f3eb209
More optional
mkoeppe Apr 28, 2023
e609b9a
src/sage/data_structures/stream.py: Add # optional
mkoeppe Jun 4, 2023
9852651
More # optional
mkoeppe Jun 9, 2023
50179cf
More # optional
mkoeppe Jun 11, 2023
8196a61
More # optional
mkoeppe Jun 12, 2023
668b469
More # optional
mkoeppe Jun 15, 2023
db5dca4
Add # optional
mkoeppe Jun 16, 2023
6f5bac4
More # optional
mkoeppe Jun 18, 2023
b4ea9da
More # optional
mkoeppe Jun 19, 2023
b610f07
pkgs: Lower sage.modules.module, sage.misc.search, sage.schemes.gener…
mkoeppe Jun 20, 2023
0a5c6ea
sage.structure: ./sage -fixdoctests --long --distribution 'sagemath-g…
mkoeppe Jun 28, 2023
58e390f
Update # optional/needs
mkoeppe Jul 1, 2023
829b06f
More # optional / # needs
mkoeppe Jul 1, 2023
33aa5ac
Update # optional / # needs
mkoeppe Jul 2, 2023
455e20d
./sage -fixdoctests --distribution sagemath-categories --only-tags --…
mkoeppe Jul 13, 2023
384091a
./sage -fixdoctests --distribution sagemath-categories --only-tags --…
mkoeppe Jul 13, 2023
5b0908b
Update # needs
mkoeppe Jul 13, 2023
ccecd75
src/sage/ext/fast_callable.pyx: Update # needs
mkoeppe Jul 13, 2023
64b28d8
sage.structure: Update # needs
mkoeppe Jul 14, 2023
a3b9d24
sage.parallel, sage.sets: Update # needs
mkoeppe Jul 14, 2023
9155c18
sage.structure: Update # needs
mkoeppe Jul 16, 2023
9ffc65d
sage.structure: Update # needs
mkoeppe Aug 2, 2023
85427c4
sage.structure: Update # needs
mkoeppe Aug 6, 2023
befd5b4
sage.structure: Update # needs
mkoeppe Aug 7, 2023
1d2c544
Update # needs
mkoeppe Aug 7, 2023
75aaf58
src/sage/ext: Update file-level doctest tag
mkoeppe Aug 7, 2023
7a65d8f
src/sage/databases: sage -fixdoctests --only-tags
mkoeppe Aug 8, 2023
4f0704b
src/sage/structure: sage -fixdoctests --only-tags
mkoeppe Aug 8, 2023
c400a62
Use more block tags
mkoeppe Aug 11, 2023
16cd708
Use more block tags
mkoeppe Aug 11, 2023
00f24ed
More block tags, docstring cosmetics
mkoeppe Aug 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
sage.structure: Update # needs
  • Loading branch information
Matthias Koeppe committed Aug 13, 2023
commit 9155c1897304068f61549f9751efeeae711d46c8
21 changes: 12 additions & 9 deletions src/sage/structure/parent.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ TESTS:

This came up in some subtle bug once::

sage: gp(2) + gap(3) # needs sage.libs.pari
sage: gp(2) + gap(3) # needs sage.libs.gap sage.libs.pari
5
"""
# ****************************************************************************
Expand Down Expand Up @@ -1685,16 +1685,18 @@ cdef class Parent(sage.structure.category_object.CategoryObject):
....: D[tuple(nk)] = v
....: return a.parent()(D)

sage: # needs sage.groups
sage: R.<x, y, z> = QQ['x, y, z']
sage: G = SymmetricGroup(3) # needs sage.groups
sage: act = SymmetricGroupAction(G, R) # needs sage.groups
sage: G = SymmetricGroup(3)
sage: act = SymmetricGroupAction(G, R)
sage: t = x + 2*y + 3*z

sage: act(G((1, 2)), t) # needs sage.groups
sage: # needs sage.groups
sage: act(G((1, 2)), t)
2*x + y + 3*z
sage: act(G((2, 3)), t) # needs sage.groups
sage: act(G((2, 3)), t)
x + 3*y + 2*z
sage: act(G((1, 2, 3)), t) # needs sage.groups
sage: act(G((1, 2, 3)), t)
3*x + y + 2*z

This should fail, since we have not registered the left
Expand All @@ -1707,9 +1709,10 @@ cdef class Parent(sage.structure.category_object.CategoryObject):

Now let's make it work::

sage: R._unset_coercions_used() # needs sage.groups
sage: R.register_action(act) # needs sage.groups
sage: G((1, 2)) * t # needs sage.groups
sage: # needs sage.groups
sage: R._unset_coercions_used()
sage: R.register_action(act)
sage: G((1, 2)) * t
2*x + y + 3*z
"""
if self._coercions_used:
Expand Down