Message117632
| Author |
terry.reedy |
| Recipients |
amaury.forgeotdarc, bpb, eric.araujo, fdrake, jackdied, ncw, rhettinger, terry.reedy |
| Date |
2010年09月29日.17:30:51 |
| SpamBayes Score |
2.1362634e-11 |
| Marked as misclassified |
No |
| Message-id |
<1285781454.8.0.0188897387932.issue5131@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
>IMHO pprint should be able to make a decent job of all the built in types
Agreed, already true as far as I know, and irrelevant. This issue is not about built-in types in the builtins module, as documented Lib Ref chapter 5 *Built-in Types*. Collections is an Python-coded stdlib module that happens to import a couple of its classes from _collections, written in C for speed.
I agree with Raymond that pprint needs a generic solution better than special-casing one class after another. Your idea of using ABCs intriguing. |
|