#14136: P-partition enumerators in QSym
------------------------------------------------------+---------------------
       Reporter:  darij                               |         Owner:  
sage-combinat
           Type:  enhancement                         |        Status:  
needs_info   
       Priority:  minor                               |     Milestone:  
sage-5.10    
      Component:  combinatorics                       |    Resolution:          
     
       Keywords:  QSym, P-partitions, posets, days45  |   Work issues:          
     
Report Upstream:  N/A                                 |     Reviewers:          
     
        Authors:  darij                               |     Merged in:          
     
   Dependencies:                                      |      Stopgaps:          
     
------------------------------------------------------+---------------------

Comment (by nthiery):

 For the records, here is where the warning comes from. The BindableClass
 things
 uses a class BoundClass that inherit from functools.partial. And there
 seems to be an issue there:
 {{{
     sage: import warnings
     sage: warnings.simplefilter('error', DeprecationWarning)
     sage: import functools
     sage: def f(x): return x
     sage: g = functools.partial(f,1)
     sage: g()
     1
     sage: class mypartial(functools.partial):
     ....:     def __init__(self, f, i):
     ....:         functools.partial.__init__(self, f,i)
     sage: g = mypartial(f,1)
     Traceback (most recent call last)
     ...
     ----> 3                 functools.partial.__init__(self, f,i)
     DeprecationWarning: object.__init__() takes no parameters
     sage: g()
     1
 }}}

 I had never noticed this. Please explore what's the best workaround!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14136#comment:19>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to