Skip to content

The case sensitivity example enforces bad intuition. #32

@CharString

Description

@CharString

Names in Python are references to boxes, not variables. The is operator does not compare identity of names, it compares identity of values:

>>> a = 1
>>> A = 1
>>> print(a is not A)
False

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions