[Python-Dev] Creating curses package: OK?
Greg Stein
gstein@lyra.org
Sat, 10 Jun 2000 15:33:20 -0700
On Sat, Jun 10, 2000 at 06:25:14PM -0400, Andrew Kuchling wrote:
> On Sat, Jun 10, 2000 at 11:21:57PM +0300, Moshe Zadka wrote:
> >Maybe I'm confused here. I thought that was what AMK suggested, no?
>
> I did in fact suggest that, since the wrapper is small, and we ideally
> want every Python/curses application using it, so they don't leave the
> terminal in a wacky state if they raise an exception. But it's not a
> big deal and could easily go in wrapper.py, though __init__.py might
> still import it automatically.
Yes, I think we'd want it to import the stuff; just organizationally to
place the source code outside of __init__.py
I'd agree that real code should not go into __init__. It should preload some
standard modules, maybe expose some symbols, but otherwise no code.
Cheers,
-g
--
Greg Stein, http://www.lyra.org/