Skip to content

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

@keenonkites

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions