[issue10768] Bug in scrolledtext

2010-12-28 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r87527. Terry, the reason why calling example() interactively failed is the strange way __doc__ is imported -- it is None in your case and that causes the Tkinter type error. I fixed this as well. -- nosy: +georg.brandl

[issue10768] Bug in scrolledtext

2010-12-25 Thread Pierre Quentel
Pierre Quentel pierre.quen...@gmail.com added the comment: The function example(), line 44 of the module - Pierre 2010/12/24 R. David Murray rep...@bugs.python.org R. David Murray rdmur...@bitdance.com added the comment: Where is this example? -- assignee: - d...@python

[issue10768] Bug in scrolledtext

2010-12-24 Thread Pierre Quentel
New submission from Pierre Quentel pierre.quen...@gmail.com: The scrolledtext example crashes with this message : TypeError: unsupported operand type(s) for +: 'dict_keys' and 'dict_keys' It works if keys() are converted to lists in line 33 : methods = list(vars(Pack).keys()) +

[issue10768] Bug in scrolledtext

2010-12-24 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: It probably also works if | is used instead of +, because in 3.2 dict_proxy.keys() are a dict_keys, not a list. See issue10630 . -- nosy: +durban ___ Python tracker rep...@bugs.python.org

[issue10768] Bug in scrolledtext

2010-12-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Where is this example? -- assignee: - d...@python components: +Documentation nosy: +d...@python, r.david.murray type: crash - behavior ___ Python tracker rep...@bugs.python.org

[issue10768] Bug in scrolledtext

2010-12-24 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: I don't think, that this is in an example (but probably there is an example somewhere, that crashes because of this). I found the code in Lib/tkinter/scrolledtext.py -- ___ Python tracker

[issue10768] Bug in scrolledtext

2010-12-24 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: d...@python - components: -Documentation keywords: +easy nosy: -d...@python stage: - unit test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10768

[issue10768] Bug in scrolledtext

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Since 'methods' is converted to a set in the next line, there is no need for lists. Instead, use | and delete the conversion. methods = vars(Pack).keys() + vars(Grid).keys() + vars(Place).keys() methods = set(methods).difference(text_meths)