Skip to content

Implement range object #86

Description

@HyeockJinKim

Expected Result

>>> range(10)
range(0, 10)
>>> range(10) == range(10)
True
>>> str(range(10))
'range(0, 10)'

Actual Result

>>> range(10)
<range instance at 0xc0002c8380>
>>> range(10) == range(10)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
    FIXME line of source goes here
TypeError: "unsupported operand type(s) for ==: 'range' and 'range'"
>>> str(range(10))
'<range instance at 0xc0002c8c60>'

The __repr__, __str__, __eq__, and __ne__ functions of the range object are not implemented.

Activity

  1. HyeockJinKim commented on Sep 20, 2019

    @HyeockJinKim
    ContributorAuthor

    Can I try this issue?

  2. corona10 commented on Sep 20, 2019

    @corona10
    Collaborator

    Yes please

  3. added 3 commits that reference this issue on Sep 20, 2019
    43d93e3
    ddfbd53
    0ff757f
  4. added a commit that references this issue on Sep 22, 2019
    37cc47f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions