Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • U uPython-mirror
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TASTETASTE
  • uPython-mirror
  • Repository
Switch branch/tag
  • uPython-mirror
  • unix
  • mpconfigport.h
Find file BlameHistoryPermalink
  • Paul Sokolovsky's avatar
    modbuiltins: Add NotImplemented builtin constant. · 5ab5ac54
    Paul Sokolovsky authored May 04, 2015
    From https://docs.python.org/3/library/constants.html#NotImplemented :
    "Special value which should be returned by the binary special methods
    (e.g. __eq__(), __lt__(), __add__(), __rsub__(), etc.) to indicate
    that the operation is not implemented with respect to the other type;
    may be returned by the in-place binary special methods (e.g. __imul__(),
    __iand__(), etc.) for the same purpose. Its truth value is true."
    
    Some people however appear to abuse it to mean "no value" when None is
    a legitimate value (don't do that).
    5ab5ac54