#16752: Cleanup in hypergeometric functions
-------------------------------------+-------------------------------------
       Reporter:  tscrim             |        Owner:  tscrim
           Type:  enhancement        |       Status:  needs_review
       Priority:  minor              |    Milestone:  sage-6.3
      Component:  misc               |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Travis Scrimshaw   |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  public/cleanup_from_hypergeometric_functions-16752|  
75133bbbdd284fda68236a4f62eb5fdd26865f5b
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by nbruin):

 String formatting via "%" is still perfectly valid in python 3, is more
 concise, and even faster:
 {{{
 sage: fn="a"
 sage: %timeit "{%r}" % fn
 10000000 loops, best of 3: 142 ns per loop
 sage: %timeit "{{{!r}}}".format(fn)
 1000000 loops, best of 3: 236 ns per loop
 }}}
 there's no benefit to replacing it with ".format" formatting unless we
 actually need facilities more easily expressed with it.

--
Ticket URL: <http://trac.sagemath.org/ticket/16752#comment:2>
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.

Reply via email to