1. 24 Apr, 2014 1 commit
  2. 22 Apr, 2014 25 commits
  3. 21 Apr, 2014 9 commits
  4. 20 Apr, 2014 3 commits
    • Release Manager's avatar
      Trac #16181: inject_shorthands broken since 6.2beta8 · d2d18689
      Release Manager authored
      {{{
      sage: NSym = NonCommutativeSymmetricFunctions(QQ)
      sage: NSym.inject_shorthands()
      Injecting S as shorthand for Non-Commutative Symmetric Functions over
      the Rational Field in the Complete basis
      ------------------------------------------------------------------------
      ---
      KeyError                                  Traceback (most recent call
      last)
      <ipython-input-2-458277a04544> in <module>()
      ----> 1 NSym.inject_shorthands()
      
      /home/darij/gitsage6.2/local/lib/python2.7/site-
      packages/sage/categories/sets_cat.pyc in inject_shorthands(self,
      verbose)
         1318                     if verbose:
         1319                         print 'Injecting %s as shorthand for
      %s'%(shorthand, realization)
      -> 1320                     inject_variable(shorthand, realization)
         1321
         1322             def realizations(self):
      
      /home/darij/gitsage6.2/local/lib/python2.7/site-
      packages/sage/misc/misc.pyc in inject_variable(name, value)
         2356     # inject_variable is called not only from the interpreter,
      but
         2357     # also from functions in various modules.
      -> 2358     G = get_main_globals()
         2359     if name in G:
         2360         warn("redefining global value `%s`"%name,
      RuntimeWarning, stacklevel = 2)
      
      /home/darij/gitsage6.2/local/lib/python2.7/site-
      packages/sage/misc/misc.pyc in get_main_globals()
         2312     while True:
         2313         G = sys._getframe(depth).f_globals
      -> 2314         if G["__name__"] == "__main__" and G["__package__"] is
      None:
         2315             break
         2316         depth += 1
      
      KeyError: '__package__'
      }}}
      
      Same for Sym and QSym.
      
      The `get_main_globals` method hasn't been changed since 2011, so I
      suspect something else is at fault. The attached branch gets rid of the
      bug, but I don't understand the code at hand and so it is not really
      merge-ready. Needs_review is to increase visibility.
      
      URL: http://trac.sagemath.org/16181
      Reported by: darij
      Ticket author(s): Darij Grinberg
      Reviewer(s): Travis Scrimshaw
      d2d18689
    • Release Manager's avatar
      Trac #15657: Allow parsing of arguments for cached_function and cached_method · d978cbb8
      Release Manager authored
      Because it will be handy to normalize and/or ignore arguments for these
      functions and method. See #1314 for an example.
      
      URL: http://trac.sagemath.org/15657
      Reported by: tscrim
      Ticket author(s): Julian Rueth
      Reviewer(s): Travis Scrimshaw
      d978cbb8
    • Release Manager's avatar
      Trac #15003: calling factorials of RIF · e5b6bfaa
      Release Manager authored
      One can calculate factorials of RIF-Elements with
      {{{
      sage: factorial(RIF(2.3,5.7))
      1.?e3
      }}}
      but calling it by
      {{{
      sage: (RIF(2.3,5.7)).factorial()
      Traceback (click to the left of this block for traceback)
      ...
      AttributeError: 'sage.rings.real_mpfi.RealIntervalFieldElement' object
      has no attribute 'factorial'
      }}}
      does not work. This is in contrast to {{{.log()}}}, {{{.sqrt()}}}, etc.,
      where it works.
      
      URL: http://trac.sagemath.org/15003
      Reported by: dkrenn
      Ticket author(s): Amit Jamadagni, Jeroen Demeyer
      Reviewer(s): Ralf Stephan, Jeroen Demeyer
      e5b6bfaa
  5. 19 Apr, 2014 2 commits