#19296: Generating function in FindStat interface
-------------------------------------+-------------------------------------
Reporter: stumpc5 | Owner:
Type: enhancement | Status: needs_info
Priority: major | Milestone: sage-6.9
Component: packages: | Resolution:
optional | Merged in:
Keywords: FindStat, OEIS | Reviewers: Martin Rubey
Authors: Christian Stump | Work issues: document
Report Upstream: N/A | Commit:
Branch: | 4d6e9eb840d59a6b2b3b0446b1162d19eb6dc893
u/mantepse/generating_function_in_findstat_interface| Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by stumpc5):
Before I do the change: is
{{{
# this might go wrong:
try:
assert data != []
except:
raise ValueError("after discarding elements not in the range, and
keeping less than %s values, nothing remained to send to FindStat."
%FINDSTAT_MAX_VALUES)
}}}
any better than
{{{
if data == []:
raise ValueError("after discarding elements not in the range, and
keeping less than %s values, nothing remained to send to FindStat."
%FINDSTAT_MAX_VALUES)
}}}
I would otherwise do
{{{
if len(data) < FINDSTAT_MIN_VALUES:
raise ValueError("After discarding elements not in the range, too
little (=%s) values remained to send to FindStat." %FINDSTAT_MIN_VALUES)
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/19296#comment:77>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.