With or without leading underscore...
Jan Kaliszewski
zuo at chopin.edu.pl
Mon Aug 10 10:55:51 EDT 2009
10-08-2009 Ulrich Eckhardt <eckhardt at satorlaser.com> 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) <zuo at chopin.edu.pl>
More information about the Python-list
mailing list