Re: a question in python curses modules

2008-02-15 Thread Marc 'BlackJack' Rintsch
On Fri, 15 Feb 2008 11:55:11 +0800, Marco wrote: Hi, I wanna write a simple curses program, but somethings confuse me, my code here: #!/usr/bin/python import os import sys import time import curses class CursesObject( object ): def __init__(self): self.STDSCR =

Re: a question in python curses modules

2008-02-15 Thread Sion Arrowsmith
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: When the interpreter shuts down it has to remove objects. Everything you need in a `__del__()` method must be referenced by that object to be sure that it is still there and not already garbage collected. *But* it's not guaranteed that

Re: a question in python curses modules

2008-02-15 Thread Marc 'BlackJack' Rintsch
On Fri, 15 Feb 2008 15:10:12 +, Sion Arrowsmith wrote: Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: When the interpreter shuts down it has to remove objects. Everything you need in a `__del__()` method must be referenced by that object to be sure that it is still there and not already

a question in python curses modules

2008-02-14 Thread Marco
Hi, I wanna write a simple curses program, but somethings confuse me, my code here: #!/usr/bin/python import os import sys import time import curses class CursesObject( object ): def __init__(self): self.STDSCR = curses.initscr() curses.noecho() curses.cbreak()