Commits

Maciej Fijalkowski committed 7a071ab

don't use object(). Ever

  • Participants
  • Parent commits be3ce3c
  • Branches kill-someobject

Comments (0)

Files changed (1)

pypy/module/cpyext/api.py

         target.chmod(0444) # make the file read-only, to make sure that nobody
                            # edits it by mistake
 
-_NOT_SPECIFIED = object()
-CANNOT_FAIL = object()
+class NotSpecified(object):
+    pass
+_NOT_SPECIFIED = NotSpecified()
+class CannotFail(object):
+    pass
+CANNOT_FAIL = CannotFail()
 
 # The same function can be called in three different contexts:
 # (1) from C code