> expandtabs is used frequently in IDLE and even pyclbr.py now. Curiously, > though, they almost never want the tab-expanded string, but rather its len. looked in stropmodule.c lately: static PyObject * strop_expandtabs(self, args) ... /* First pass: determine size of output string */ ... /* Second pass: create output string and fill it */ ... (btw, I originally wrote that code for pythonworks ;-) how about an "expandtabslength" method? or maybe we should add lazy evaluation of strings! </F>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4