New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
split() description not fully accurate #42694
Comments
The page http://docs.python.org/lib/string-methods.html >>> trow = '1586\tsome-int-name\tNODES: 111_222\n'
>>> print trow
1234 some-int-name NODES: 111_222
>>> trow.split(None,2)
['1234', 'some-int-name', 'NODES: 111_222\n']
# end example. Notice that the trailing newline has not been stripped K.C. |
Logged In: YES Also, (oops) the example comes from the most recent version: $ python
|
Logged In: YES I've provided a patch for this: bpo-1414934. |
I prefer the docs as they currently read. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: