On Friday, February 5, 2016 at 6:47:19 PM UTC+1, Nils Bruin wrote:
>
> Note that this solution comes as a fairly significant penalty: you end up 
> copying/modifying the kwargs argument *all the time*.
>

Passing the keywords down individually also incurs some overhead, plus we 
are talking about fairly small dicts. Its unlikely to be of a performance 
concern IMHO

As Travis noted, Python *always* makes a shallow copy of **kwds when 
passing it down; This dictionary copy is unavoidable if you use **.

Another small difference between arg=optional and **kwds is that the latter 
is keyword only, whereas the former can also be a default value for a 
positional argument.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to