This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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.
History
Date User Action Args
2013-04-02 04:31:28roger.serwysetrecipients: + roger.serwy, terry.reedy, asvetlov, Todd.Rovito, serhiy.storchaka
2013-04-02 04:31:28roger.serwysetmessageid: <1364877088.19.0.765197749479.issue16887@psf.upfronthosting.co.za>
2013-04-02 04:31:28roger.serwylinkissue16887 messages
2013-04-02 04:31:27roger.serwycreate