#11244: In python-2.7 deprecation warnings are not shown to the user by default
----------------------------------------------------------+-----------------
   Reporter:  fbissey                                     |          Owner:  
jason          
       Type:  defect                                      |         Status:  
needs_work     
   Priority:  major                                       |      Milestone:  
sage-4.7.1     
  Component:  misc                                        |       Keywords:     
            
Work_issues:  fix warnings in sage/combinat/partition.py  |       Upstream:  
N/A            
   Reviewer:                                              |         Author:  
François Bissey
     Merged:                                              |   Dependencies:     
            
----------------------------------------------------------+-----------------
Changes (by fbissey):

  * status:  needs_review => needs_work


Comment:

 There are more deprecation warnings issued by the standard python
 mechanism rather than sage's mechanism
 {{{
 sage-4.7.alpha1 $ grep -r DeprecationWarning\,\ stacklevel *
 sage/matrix/constructor.py:                    warnings.warn("invocation
 of block_matrix with just a list whose length is a perfect square is
 deprecated. See the documentation for details.", DeprecationWarning,
 stacklevel=2)
 sage/combinat/partition.py:    warnings.warn('RestrictedPartitions is
 deprecated; use Partitions with the parts_in keyword instead.',
 DeprecationWarning, stacklevel=2)
 sage/combinat/partition.py:        warnings.warn('RestrictedPartitions_nsk
 is deprecated; use Partitions with the parts_in keyword instead.',
 DeprecationWarning, stacklevel=2)
 sage/groups/perm_gps/permgroup.py:        warnings.warn('quotient_group()
 is deprecated; use quotient() instead.', DeprecationWarning, stacklevel=2)
 sage/graphs/base/graph_backends.py:                    DeprecationWarning,
 stacklevel=2)
 sage/graphs/base/graph_backends.py:                    DeprecationWarning,
 stacklevel=2)
 sage/misc/misc.py:    warn(message, DeprecationWarning, stacklevel=3)
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11244#comment:7>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to