Message280905
| Author |
josh.r |
| Recipients |
josh.r |
| Date |
2016年11月16日.00:14:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1479255247.66.0.561361194061.issue28709@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Note: Uncommenting the line that forces Py_TPFLAGS_HEAPTYPE isn't enough, since it looks like the PyHeapTypeObject fields aren't initialized properly, causing seg faults if you access, for example, __name__/__qualname__ (or print the type's repr, which implicitly accesses same):
python -c "import testnewtype; Foo = testnewtype.makeseq('Foo', ['x', 'y']); print(Foo.__name__)"
The type behaves properly otherwise (you can make instances, access values on them), but crashing on repr is probably poor form. :-) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年11月16日 00:14:07 | josh.r | set | recipients:
+ josh.r |
| 2016年11月16日 00:14:07 | josh.r | set | messageid: <1479255247.66.0.561361194061.issue28709@psf.upfronthosting.co.za> |
| 2016年11月16日 00:14:07 | josh.r | link | issue28709 messages |
| 2016年11月16日 00:14:07 | josh.r | create |
|