Message185807
| Author |
roger.serwy |
| Recipients |
Todd.Rovito, asvetlov, roger.serwy, serhiy.storchaka, terry.reedy |
| Date |
2013年04月02日.04:31:27 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1364877088.19.0.765197749479.issue16887@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Todd,
Tabify/Untabify are functions to deal with the great tabs vs. spaces debate (though PEP8 says that spaces are the way to go).
The tabify function needs a minimum of 2 spaces before it replaces it with a tab.
Its implementation in Lib/idlelib/EditorWindow.py under the tabify_region_event and untabify_region_event reveals a curiousity in its implementation. Tabify will replace spans of space characters with tabs, but still leave in extra space characters if needed. Untabify simply expands all tabs to a fixed number of spaces. |
|