# HG changeset patch # Parent 39b9b05c3085d5e51092494f4a41850d41008b1d Issue #17670: Provide an example of expandtabs() usage. diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -1532,6 +1532,9 @@ If *tabsize* is not given, a tab size of ``8`` characters is assumed. This doesn't understand other non-printing characters or escape sequences. + >>> '01\t456\t89'.expandtabs(4) + '01 456 89' + .. method:: str.find(sub[, start[, end]])