getting the value of an attribute from pdb

Miki miki.tebeka at gmail.com
Thu May 18 03:55:50 EDT 2006


Hello Gary,

>  (Pdb) p root.title
> <bound method Tk.wm_title of <Tkinter.Tk instance at 0xb717c16c>>
> (Pdb) p root.title[Tk.wm_title]

Looks like "title" is a function, try "p root.title()"

HTH,
Miki
http://pythonwise.blogspot.com/




More information about the Python-list mailing list