tkinter: not freeing memory like I'd expect

2006-03-30 Thread Benjamin Rutt
roaches? Or should I not expect memory to be released? -- Benjamin Rutt -- http://mail.python.org/mailman/listinfo/python-list

sys.stdin.readline() results in extra space send to stdout

2006-03-06 Thread Benjamin Rutt
t see why that extra space is getting there in the first version. Using the code module seems a little dirty, when sys.stdin is available. This is python 2.4 on a Linux platform. Thank you, -- Benjamin Rutt -- http://mail.python.org/mailman/listinfo/python-list

modify a long-running python script while it is running?

2005-12-19 Thread Benjamin Rutt
ing it safe for me to modify the script after I know it has started?"[1] Thank you, Footnotes: [1] how would I know that it is started? For example, at least one print statement I am expecting has been executed. -- Benjamin Rutt -- http://mail.python.org/mailman/listinfo/python-list

Re: is open(...).read() a resource leak?

2005-11-02 Thread Benjamin Rutt
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > Benjamin Rutt wrote: > >> If I did the following in an infinite loop, would the host system/user >> account soon run out of file descriptors? (I'm thinking no, since I'd >> imagine that a file object

is open(...).read() a resource leak?

2005-11-02 Thread Benjamin Rutt
/* tp_getattr */ 0, /* tp_setattr */ 0, /* tp_compare */ (reprfunc)file_repr,/* tp_repr */ 0, /* tp_as_number */ [...] Thanks, -- Benjamin Rutt -- http://mail.python.org/mailman/listinfo/python-list

disable Pmw.Counter?

2005-10-11 Thread Benjamin Rutt
Does anyone know how to disable a Pmw.Counter? (make it so it cannot be changed, but you can still call the get() function to see its current value?) Thanks, -- Benjamin Rutt -- http://mail.python.org/mailman/listinfo/python-list

extending and embedding python without distutils

2005-09-26 Thread Benjamin Rutt
.upak/installed/tcltk/lib -L/usr/X11R6/lib -ltk8.4 -ltcl8.4 -lX11 -lpthread -ldl -lutil The purpose of this posting is to see if anyone jumps in and says "hey, you missed a variable called ...". Thanks, -- Benjamin Rutt -- http://mail.python.org/mailman/listinfo/python-list

.pth files question

2005-09-02 Thread Benjamin Rutt
"/tmp/bar"? Thanks, -- Benjamin Rutt -- http://mail.python.org/mailman/listinfo/python-list

Re: question about introspection using inspect module

2005-07-07 Thread Benjamin Rutt
ting what in the code what is for the GUI, what is for the Web server, and what does the introspection. I have actually borrowed the ModuleScanner class already, to build the list of modules. It is just inspecting those modules further where I'm having trouble. thanks, -- Benjamin Rutt -- http://mail.python.org/mailman/listinfo/python-list

question about introspection using inspect module

2005-07-07 Thread Benjamin Rutt
27;somefunction', )] trying istraceback: [] I was trying to use inspect.getmembers(foo, ) with an appropriate predicate ("is" function). it looks like I am able to discover that 'someclass' is a class, and that 'somefunction' is a function (and also a routine, apparently). However, I cannot seem to discover that 'someglobal' is a global. How to do so? Thanks, -- Benjamin Rutt -- http://mail.python.org/mailman/listinfo/python-list

getting list of all available modules

2005-06-20 Thread Benjamin Rutt
cgitb mailcap smtplib [...] I want to do the same (get all such modules in a python list); how can I do so? Or where is the code for the REPL for help() itself so I can find out myself? This is to build a code introspection tool BTW. Thanks, -- Benjamin Rut

tkinter: call root.after from a thread?

2005-03-17 Thread Benjamin Rutt
root.after() would be safe? I'm doing this in a GUI without any problems, so far. Thanks, -- Benjamin Rutt -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter: always scroll to show last line of text

2005-03-13 Thread Benjamin Rutt
Martin Franklin <[EMAIL PROTECTED]> writes: > text.yview_pickplace("end") Thank you, works perfectly! -- Benjamin Rutt -- http://mail.python.org/mailman/listinfo/python-list

tkinter: always scroll to show last line of text

2005-03-13 Thread Benjamin Rutt
I have a tkinter 'Text' and 'Scrollbar' connected and working normally. When a new line of text is inserted (because I'm monitoring an output stream), I'd like the text and scrollbar to be scrolled to the bottom, so the latest line of text is always shown. How to

Re: pdb with emacs

2004-12-01 Thread Benjamin Rutt
this helps: #!/bin/sh exec python $HOME/opt/python-2.3/lib/python2.3/pdb.py "$@" -- Benjamin Rutt -- http://mail.python.org/mailman/listinfo/python-list