Changes between Version 1 and Version 4 of Ticket #26704


Ignore:
Timestamp:
11/14/18 16:02:25 (13 months ago)
Author:
vklein
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26704

    • Property Summary changed from Py3 : database.oeis replace __getslice__ by __getitem__ to Py3 : database.oeis implement __getitem__ to replace __getslice__
  • Ticket #26704 – Description

    v1 v4  
    11Fix database.oeis module for python3 :
    2 - Remove an useless test
    3 - Replace {{{__getslice__}}} method with {{{__getitem__}}} for {{{FancyTuple}}} object.
     2- Remove a useless test
     3- Define {{{__getitem__}}} method with for {{{FancyTuple}}} object. It replace {{{__getslice__}}} method in python3.
     4As {{{__getslice__}}} is still defined in tuple in python 2.7 we still need a {{{__getslice__}}} method in {{{FancyTuple}}} to override it.
     5
    46{{{__getslice__}}} is deprecated since python 2.6 and removed in python 3.x