#4203: [with patch, needs work] Make a suboption decorator to complement #4201
-------------------------+--------------------------------------------------
 Reporter:  jason        |        Owner:  mhansen 
     Type:  enhancement  |       Status:  assigned
 Priority:  major        |    Milestone:  sage-3.2
Component:  graphics     |   Resolution:          
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by anakha):

  * summary:  [with patch, positive review] Make a suboption decorator to
              complement #4201 => [with patch, needs work]
              Make a suboption decorator to complement #4201

Comment:

 I got this with a quick test.

 {{{
 sage: @suboptions('test')
 def f(**kwds):
 ....:     print kwds
 ....:
 sage: f(test_size=2)
 {'test_options': {'ize': 2}}
 }}}

 str.lstrip removes all characters given from the front of the string:

 {{{
 sage: 'baba_baca'.lstrip('ab_')
 'ca'
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4203#comment:5>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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