#15983: Python 3 preparation: Change names of some function attributes
-------------------------------------+-------------------------------------
       Reporter:  wluebbe            |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.2
      Component:  distribution       |   Resolution:
       Keywords:  python3            |    Merged in:
        Authors:                     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/wluebbe/ticket/15983             |  3b0d1f7ccde571da44651d10a94bf4c3fc448170
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by wluebbe):

 From the Python docs (http://docs.python.org/2/reference/datamodel.html):

 //Changed in version 2.6: The double-underscore attributes !__closure!__,
 !__code!__, !__defaults!__, and !__globals!__ were introduced as aliases
 for the corresponding func_* attributes for forwards compatibility with
 Python 3.//

 !__dict!__, !__doc!__ and !__name!__ were already available earlier.

 Looking at the code with {{{hasattr}}} it should probably be manually
 refactored, keeping in mind that the {{{__XX__}}} are always available as
 alias for the {{{func_XX}}}.

 Would you agree?

--
Ticket URL: <http://trac.sagemath.org/ticket/15983#comment:5>
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to