Terry J. Reedy added the comment:

Fixing 3.3 is more likely that 3.4. I can view RuntimeError as a bug less 
obnoxious than  crash, but others may differ. Ultimately, the release managers 
can decide. This is definitely appropriate for 3.4, so please add tests. If the 
patch is for 2.7, please do one for 3.3 or 3.4.

For 3.x, d.keys() is not an issue, but d.values() is.

>>> d = {}
>>> d[1] = d.keys()
>>> d
{1: dict_keys([1])}
>>> d[2] = d.values()
>>> d
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: maximum recursion depth exceeded while getting the repr of a list

----------
nosy: +terry.reedy
stage:  -> test needed
versions: +Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18533>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to