On Fri, 29 Jul 2016, Volker Braun wrote:
Usually its better to have separate methods, e.g. n.factor() instead of n.is_prime(certificate=True)
Techically 100=25*4 is one possible certificate to show that 100 is not a prime, whereas 100=2*2*5*5 is the factorization. As a better example think of Kuratowski minor(s) in a non-planar graph.
This has been discussed without clear end. I think that in many places certify/certificate -option is a good thing.
At the end of the day I don't really have a strong opinion either way as long as we do it consistently.
So we all agree that this should be consistent, even if it means deprecation. Good.
Really its a variable (keyword argument), so verb/noun naming should match whether it hold a function or an object.
Wrong language again? :=) (Finnish: kävely = a walk, kävellä = to walk, kävele! = walk!)
-- Jori Mäntysalo