Message185807
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. |
|
Date |
User |
Action |
Args |
2013-04-02 04:31:28 | roger.serwy | set | recipients:
+ roger.serwy, terry.reedy, asvetlov, Todd.Rovito, serhiy.storchaka |
2013-04-02 04:31:28 | roger.serwy | set | messageid: <1364877088.19.0.765197749479.issue16887@psf.upfronthosting.co.za> |
2013-04-02 04:31:28 | roger.serwy | link | issue16887 messages |
2013-04-02 04:31:27 | roger.serwy | create | |
|