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

Allow IndexedGenerators to handle names #17039

Closed
tscrim opened this issue Sep 25, 2014 · 54 comments
Closed

Allow IndexedGenerators to handle names #17039

tscrim opened this issue Sep 25, 2014 · 54 comments

Comments

@tscrim
Copy link
Collaborator

tscrim commented Sep 25, 2014

So we can do things like

sage: C.<x,y,z> = CombinatorialFreeModule(QQ)

Depends on #17035
Depends on #20403
Depends on #20405

CC: @nthiery @nbruin @fchapoton @bsalisbury1

Component: misc

Keywords: variable names input

Author: Travis Scrimshaw

Branch/Commit: 73cf1a7

Reviewer: Jeroen Demeyer, Ben Salisbury

Issue created by migration from https://trac.sagemath.org/ticket/17039

@tscrim tscrim added this to the sage-6.4 milestone Sep 25, 2014
@tscrim tscrim self-assigned this Sep 25, 2014
@tscrim
Copy link
Collaborator Author

tscrim commented Sep 25, 2014

Dependencies: #17035

@tscrim
Copy link
Collaborator Author

tscrim commented Sep 25, 2014

Commit: d23726c

@tscrim
Copy link
Collaborator Author

tscrim commented Sep 25, 2014

comment:2

Done and up for review.


New commits:

f94c3f8Another optio for indexed generators.
5b546c2Fixed failing doctest.
d23726cAdded support for C. for CombinatorialFreeModule.

@tscrim
Copy link
Collaborator Author

tscrim commented Sep 25, 2014

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 6, 2015

Changed commit from d23726c to 06e7a3c

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 6, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

06e7a3cMerge branch 'public/misc/names_argument_indexed_generators-17039' of trac.sagemath.org:sage into public/misc/names_argument_indexed_generators-17039

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 26, 2015

Changed commit from 06e7a3c to 1aae120

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 26, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

1aae120Merge branch 'public/misc/names_argument_indexed_generators-17039' of trac.sagemath.org:sage into public/misc/names_argument_indexed_generators-17039

@tscrim tscrim modified the milestones: sage-6.4, sage-6.8 May 26, 2015
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 9, 2016

Changed commit from 1aae120 to e3175db

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 9, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

7a387faMerge branch 'public/misc/names_argument_indexed_generators-17039' of trac.sagemath.org:sage into public/misc/names_argument_indexed_generators-17039
e3175dbFixing doctest ordering.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 9, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

84792f6Merge branch 'public/misc/names_argument_indexed_generators-17039' of trac.sagemath.org:sage into public/misc/names_argument_indexed_generators-17039
ee0536eAdded (indexed) monoids to finitely generated monoids category.
63e54b0Merge branch 'public/monoids/free_monoids_finitely_generated-20405' into public/misc/names_argument_indexed_generators-17039
a0307f3Changed iterator for finitely generated semigroups.
c427ca9Change TODO list in backtrack to state we can deprecate TransitiveIdeal* now.
dfa5c75Merge branch 'public/semigroups/iterator_finitely_generated_semigroups-20403' into public/misc/names_argument_indexed_generators-17039
fc9a4f8Being more python3 compatible.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 9, 2016

Changed commit from e3175db to fc9a4f8

@tscrim
Copy link
Collaborator Author

tscrim commented Apr 9, 2016

Changed dependencies from #17035 to #17035 #20403 #20405

@tscrim tscrim modified the milestones: sage-6.8, sage-7.2 Apr 9, 2016
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 10, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

0c3452dChanging behavior of _first_ngens to support using gens().
c95e024Fixing trivial failing doctests due to new iterator.
52f7f98Merge branch 'public/monoids/free_monoids_finitely_generated-20405' into public/misc/names_argument_indexed_generators-17039

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 10, 2016

Changed commit from fc9a4f8 to 52f7f98

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 10, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

a27f383trac #20403 fixing one doctest
c20562etrac #20403 doc formatting
fabe683Merge branch 'public/semigroups/iterator_finitely_generated_semigroups-20403' of trac.sagemath.org:sage into public/misc/names_argument_indexed_generators-17039
e640249Last fix of doctests.
2d48ce1Merge branch 'public/monoids/free_monoids_finitely_generated-20405' into public/misc/names_argument_indexed_generators-17039
02df281Fixing doctests.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 10, 2016

Changed commit from 52f7f98 to 02df281

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 10, 2016

Changed commit from 02df281 to 94f081b

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 10, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

1c07d56Merge branch 'public/semigroups/iterator_finitely_generated_semigroups-20403' of trac.sagemath.org:sage into public/monoids/free_monoids_finitely_generated-20405
e7914d4Pulling changes from #17039 to fix doctest with this (#20405) + #20403.
94f081bMerge branch 'public/monoids/free_monoids_finitely_generated-20405' into public/misc/names_argument_indexed_generators-17039

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 10, 2016

Branch pushed to git repo; I updated commit sha1. Last 10 new commits:

569de0dMerge branch 'develop' into t/13580/map_reduce
b07dfe2Doc of the two implementationsof ActiveTaskCounter
beebcbc#13580: Added comment on timing in the doc
58eca2e#13580: Removed comment which is now in the doc
1badd8a#13580: Renamed ActiveTaskCounter(Posix)
46cbab913580: Fixed doctests to pass on Darwin
134c1fa13580: doc rereading
4c82d1bMerge branch 'u/hivert/ticket/13580' of trac.sagemath.org:sage into u/hivert/ticket/13580
67521ddMerge branch 'u/hivert/ticket/13580' into public/semigroups/iterator_finitely_generated_semigroups-20403
fc1eb23Merge branch 'public/misc/names_argument_indexed_generators-17039' of trac.sagemath.org:sage into public/misc/names_argument_indexed_generators-17039

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 10, 2016

Changed commit from 94f081b to fc1eb23

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 27, 2017

Branch pushed to git repo; I updated commit sha1. New commits:

ad23fbdMerge branch 'public/misc/names_argument_indexed_generators-17039' of git://trac.sagemath.org/sage into public/misc/names_argument_indexed_generators-17039
1c1cad1Use normalize_names.
627e5e0Removing code duplication.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 27, 2017

Changed commit from 627e5e0 to 06eae33

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 27, 2017

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

06eae33Removing code duplication.

@tscrim
Copy link
Collaborator Author

tscrim commented May 27, 2017

comment:23

Thank you for looking at this.

comment:18 Good point. IIRC, back when I did this, that was not separated as a standalone function but instead a method of CategoryObject. I also made some other changes to remove code duplication and improve the documentation.

comment:20 I don't want to do that because other keyword options that are used should not default to False, such as scalar_mult.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 27, 2017

Changed commit from 06eae33 to 76b3be2

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 27, 2017

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

76b3be2Removing code duplication.

@jdemeyer
Copy link

comment:25

Replying to @tscrim:

comment:20 I don't want to do that because other keyword options that are used should not default to False, such as scalar_mult.

I don't get your point. I am saying that you can replace

if 'bracket' not in kwds:
    kwds['bracket'] = False

by

kwds.setdefault('bracket', False)

You can do the same for string_quotes but I'm not saying that you must do this for every keyword if you don't want.

@jdemeyer
Copy link

comment:26

Replying to @tscrim:

comment:18 Good point. IIRC, back when I did this, that was not separated as a standalone function but instead a method of CategoryObject.

Yes, this was fixed in #19675.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 29, 2017

Branch pushed to git repo; I updated commit sha1. New commits:

8f7d3e6Use setdefault instead of manually checking.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 29, 2017

Changed commit from 76b3be2 to 8f7d3e6

@tscrim
Copy link
Collaborator Author

tscrim commented May 29, 2017

comment:28

Replying to @jdemeyer:

Replying to @tscrim:

comment:20 I don't want to do that because other keyword options that are used should not default to False, such as scalar_mult.

I don't get your point. I am saying that you can replace

if 'bracket' not in kwds:
    kwds['bracket'] = False

by

kwds.setdefault('bracket', False)

You can do the same for string_quotes but I'm not saying that you must do this for every keyword if you don't want.

I misread setdefault. I was thinking it made the dict behave like a defaultdict. I agree that this is a better way to go.

@tscrim
Copy link
Collaborator Author

tscrim commented Jun 3, 2017

comment:29

Patchbot is back to (essentially) green.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 12, 2017

Branch pushed to git repo; I updated commit sha1. New commits:

06f1536Merge branch 'public/misc/names_argument_indexed_generators-17039' of git://trac.sagemath.org/sage into public/misc/names_argument_indexed_generators-17039

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 12, 2017

Changed commit from 8f7d3e6 to 06f1536

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 23, 2017

Changed commit from 06f1536 to 451d60b

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 23, 2017

Branch pushed to git repo; I updated commit sha1. New commits:

451d60bMerge branch 'public/misc/names_argument_indexed_generators-17039' of git://trac.sagemath.org/sage into public/misc/names_argument_indexed_generators-17039

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 23, 2017

Branch pushed to git repo; I updated commit sha1. New commits:

73cf1a7Updating split_index_keywords.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 23, 2017

Changed commit from 451d60b to 73cf1a7

@tscrim
Copy link
Collaborator Author

tscrim commented Jun 23, 2017

comment:33

Rebased over beta12.

@bsalisbury1
Copy link

Reviewer: Ben Salisbury

@bsalisbury1
Copy link

comment:34

Changes look good and everything builds and passes on my machine.

@tscrim
Copy link
Collaborator Author

tscrim commented Jun 27, 2017

Changed reviewer from Ben Salisbury to Jeroen Demeyer, Ben Salisbury

@tscrim
Copy link
Collaborator Author

tscrim commented Jun 27, 2017

comment:35

Thank you.

@vbraun
Copy link
Member

vbraun commented Jun 29, 2017

Changed branch from public/misc/names_argument_indexed_generators-17039 to 73cf1a7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants