#13891: Default parameters for Graph.plot() and Graph.show()
---------------------------------+------------------------------------------
       Reporter:  ncohen         |         Owner:  jason, ncohen, rlm           
         
           Type:  enhancement    |        Status:  closed                       
         
       Priority:  major          |     Milestone:  sage-5.7                     
         
      Component:  graph theory   |    Resolution:  fixed                        
         
       Keywords:                 |   Work issues:                               
         
Report Upstream:  N/A            |     Reviewers:  Punarbasu Purkayastha, 
Sébastien Labbé
        Authors:  Nathann Cohen  |     Merged in:  sage-5.7.beta3               
         
   Dependencies:  #13862         |      Stopgaps:                               
         
---------------------------------+------------------------------------------

Comment (by slabbe):

 > I strongly disagree with this deprecation.

 I agree we should never deprecate it as I guess so much code are using
 useless arguments out there. Maybe the "DeprecationWarning" was not well
 chosen, just a "Warning" would have been ok without mentionning any future
 deprecation. So, what annoyed you in fact? The deprecation? or the warning
 that was printed 100 times?

 On my side, I would be happy to learn that the input I am giving to a
 function is just totally ignored. Why? Because this is just normal Python
 I am used to (we can also think of a mispell argument written by
 dyslexicy) :

 {{{
 sage: def f(a,b): return a+b
 sage: f(4,5)
 9
 sage: f(4,5,color='blue')
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)
 <ipython-input-15-d3f7a3aa970a> in <module>()
 ----> 1 f(Integer(4),Integer(5),color='blue')

 TypeError: f() got an unexpected keyword argument 'color'
 }}}

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