Message230614
| Author |
georg.brandl |
| Recipients |
Arfrever, amaury.forgeotdarc, benjamin.peterson, docs@python, eryksun, georg.brandl, pitrou, techdragon |
| Date |
2014年11月04日.10:48:27 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1415098107.38.0.787833315701.issue22790@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Basically beacuse with the current patch, this is because object_dir also does merge_class_dict, to get class attributes. This means that attributes like __qualname__ would show up in dir(instance), but are not actually available on the instance.
Fixing this requires a more substantial rewrite, but is certainly the right way if this is accepted at all. |
|