On 06/07/2012 11:23 PM, Lars Buitinck wrote: > 2012/6/7 Andreas Mueller<[email protected]>: >> - Some classes are "base classes" that should not be instantiated (like >> BaseLibSVM). >> But these classes are not really marked as such. Some classes are >> abstract base >> classes, but not all of them. For example BaseLibSVM has no abstract >> method. >> For these, I made "__init__" an abstract method. This also prevents >> users from >> instantiating them by accident. Do you think this is a good idea? > Good idea! I never did that since I thought it would make it > impossible to call the ABC's __init__ from a subclass constructor, but > that turns out to be untrue. > Yeah. I recently read about that. Coming from C++ that feels weird, though in this situation it helps us :)
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
