With or without leading underscore...

Jan Kaliszewski zuo at chopin.edu.pl
Mon Aug 10 16:55:51 CEST 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)".


Jan Kaliszewski (zuo) <zuo at chopin.edu.pl>

More information about the Python-list mailing list