doctest and exposing internals.
Gabriel Genellina
gagsl-py at yahoo.com.ar
Fri Oct 20 16:24:07 EDT 2006
At Friday 20/10/2006 16:29, Neil Cerutti wrote:
>The example of correct usage it what's wrong with the docstring.
>
>There's no interface for checking if an event is queued in Glk,
>so I resorted to exposing the internal state main.char_request in
>the doc string. What are the alternatives?
- what you have done
- modify the interfase to allow that kind of checking
- use a standard unit test
--
Gabriel Genellina
Softlab SRL
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
More information about the Python-list
mailing list