#15981: Python 3 preparation: Adapt dict-methods keys(), items(), values() etc.
--------------------------------+------------------------
       Reporter:  wluebbe       |        Owner:
           Type:  enhancement   |       Status:  new
       Priority:  major         |    Milestone:  sage-6.2
      Component:  distribution  |   Resolution:
       Keywords:  python3       |    Merged in:
        Authors:                |    Reviewers:
Report Upstream:  N/A           |  Work issues:
         Branch:                |       Commit:
   Dependencies:                |     Stopgaps:
--------------------------------+------------------------
Description changed by wluebbe:

Old description:

> Python 3 introduces new dict-methods and changes the behavior of
> existing. [[br]]
>
> Changes according to {{{lib2to3/fixes/fix_dict.py}}}:
> {{{
> d.keys() -> list(d.keys())
> d.items() -> list(d.items())
> d.values() -> list(d.values())
>
> d.iterkeys() -> iter(d.keys())
> d.iteritems() -> iter(d.items())
> d.itervalues() -> iter(d.values())
>
> d.viewkeys() -> d.keys()
> d.viewitems() -> d.items()
> d.viewvalues() -> d.values()
> }}}
> **TODO**: Clarify whether some generated changes need modifications to
> avoid unnecessary wrappings with list().
>
> This ticket is tracked as a dependency of meta-ticket ticket:15980.

New description:

 Python 3 introduces new dict-methods and changes the behavior of existing.
 [[br]]

 Changes according to {{{lib2to3/fixes/fix_dict.py}}}:
 {{{
 d.keys() -> list(d.keys())
 d.items() -> list(d.items())
 d.values() -> list(d.values())

 d.iterkeys() -> iter(d.keys())
 d.iteritems() -> iter(d.items())
 d.itervalues() -> iter(d.values())

 d.viewkeys() -> d.keys()
 d.viewitems() -> d.items()
 d.viewvalues() -> d.values()
 }}}
 **TODO**: Clarify whether some generated changes need modifications to
 avoid unnecessary wrappings with list().

 This ticket is tracked as a dependency of meta-ticket ticket:16052.

--

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