edualgo / eduAlgo

A simple python package having modules of different algorithms to use in educational purposes.
https://edualgo.github.io/documentation/
MIT License
99 stars 54 forks source link

Consider using identity comparison with singleton #192

Closed VenkatsQuest closed 2 years ago

VenkatsQuest commented 2 years ago

Comparisons to the singleton objects, like True, False, and None, should be done with identity, not equality. Use is or is not.

Identity checks are faster than equality checks.

ghost commented 2 years ago

Changes to your CodeSee Architecture Map:

View a CodeSee Map of these changes

Review in an interactive map

View more CodeSee Maps

Legend

CodeSee Map Legend