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
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
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()) +
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
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
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
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
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)