10-08-2009 Ulrich Eckhardt <[email protected]> wrote:

So, the type is a part of the public API, but its constructor is not. Should
I mark the type as private (with a leading underscore) or not?

IMHO you shouldn't (i.e. name should be marked "public") because of
possible usage of e.g. "isinstance(foo, YourType)".

Cheers,
*j

--
Jan Kaliszewski (zuo) <[email protected]>
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to