#9907: Move generally usable decorators from plot.misc to misc.decorators
---------------------------+------------------------------------------------
   Reporter:  jsrn         |       Owner:  tdb                   
       Type:  enhancement  |      Status:  needs_work            
   Priority:  minor        |   Milestone:                        
  Component:  relocation   |    Keywords:  generality, decorators
     Author:  jsrn         |    Upstream:  N/A                   
   Reviewer:               |      Merged:                        
Work_issues:               |  
---------------------------+------------------------------------------------

Comment(by jsrn):

 Replying to [comment:9 mhansen]:
 > The pickle jar contains old pickles of objects that we want to ensure
 work in the future. For example, if you made the changes
 at [http://trac.sagemath.org/sage_trac/ticket/9907 9907] as the are, then
 possibly many pickles out in the wild would break. Instead of trying to
 update the pickle jar, the appropriate thing to do would be to add the
 following to sage/plot/misc.py
 >
 > {{{
 > #For backward compatibility -- see #9907.
 > from sage.misc.decorators import options, suboptions, rename_keyword
 >
 > }}}
 > That way, the old pickles will still work as they will still be able to
 find the decorators in sage.plot.misc.

 Ok, thanks -- I will update the patch for #9907. I was actually wondering
 a bit about backward compatibility, so good to know this is the system.
 Does the above fix then have a one-year lifetime like for keyword-
 deprecation? If so, should it be flagged somehow (e.g. with the comment
 containing the term "backward compatibility") so it can be found and
 removed one year from now?

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