Message253972
Recursive partial objects are legitimate. Here is a patch that makes partial's repr to support recursive partial objects. Also added a test for pickling.
Cases for Element and file-like objects are questionable. Recursive Element.tag and TextIOWrapper.name don't make a sense, and I don't think we should special support (and encourage) these cases. To avoid stack overflow we can add a restriction for tag to be str or None, but file's name attribute can be dynamic. We can omit name from repr if it is not None, str, bytes or int. |
|
Date |
User |
Action |
Args |
2015-11-03 08:48:42 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, abacabadabacaba |
2015-11-03 08:48:41 | serhiy.storchaka | set | messageid: <1446540521.99.0.834145722465.issue25455@psf.upfronthosting.co.za> |
2015-11-03 08:48:41 | serhiy.storchaka | link | issue25455 messages |
2015-11-03 08:48:41 | serhiy.storchaka | create | |
|