[Zope-Coders] Re: [Zope-Checkins] CVS: Zope/lib/python/AccessControl/securitySuite - SecurityBase.py:1.5 regressionSecurity.py:1.3

Jeremy Hylton jeremy@zope.com
Thu, 18 Oct 2001 12:18:35 -0400 (EDT)


>>>>> "SH" == Shane Hathaway <shane@digicool.com> writes:

  SH> - Corrected role comparison.  "None" means anonymous, an empty
  SH>   tuple means private, and private objects are not accessible
  SH>   even by managers.

It seems like it would be clearer to have explicit "anonymous" and
"private" objects rather than trying to remember what the special
meanings of two builtin types are.

class Anonymous:
    pass

class Private:
    pass

You could use either the class object or a singleton instance.

Jeremy