Message253972
| Author |
serhiy.storchaka |
| Recipients |
abacabadabacaba, rhettinger, serhiy.storchaka |
| Date |
2015年11月03日.08:48:40 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1446540521.99.0.834145722465.issue25455@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|