Skip to content

Bug Class Range: Range(0) gives wrong (empty) Range whereas Range('0') works properly #83

Description

@keenonkites

Hi,

I've discovered a Bug in the Range Class:

  • Range(0) gives an empty range

Range('0') works properly.

I could nail down the problem in the following lines:
def __new__(cls, spec=''):
spec = spec or ''

I was able to fix it by:
def __new__(cls, spec=None):
if spec == None:
spec = ''

Cheers
Patrik

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions