doctest, unittest, or if __name__='__main__'
john_sips_tea at yahoo.com
john_sips_tea at yahoo.com
Wed Mar 22 10:23:58 EST 2006
> so you think that a "why all this creativity when you could just
> standardize on something ported from java, and throw away every-
> thing else" post is friendly ? really ?
Sorry for the sloppy writing. Thanks for clarifying. I wrote:
> If unittest is the standard way to write test code, why do we still
> have doctest? (I notice there's no mention in PEP 3000 of deprecating
> the doctest module).
when that should've been
> If one is the standard way to write test code, why do we still
> have the other one? (I notice there's no mention in PEP 3000 of
> deprecating either module).
Also, as an aside, I don't think there's anything inherently wrong
with porting something from Java (or Smalltalk, or any other
language). Such ported software may or may not be a good fit
for Python.
More information about the Python-list
mailing list