What steps will reproduce the problem?
1. "a\nb".splitlines()
What is the expected output?
Expected output is list of strings split by \n.
What do you see instead?
"a\nb".__getattr__(...) is not a function
Please provide any additional information below.
Alias to .split("\n") would be nice:
def splitlines(s):
return s.split("\n")
But as method, not function.
Original issue reported on code.google.com by bystrousak@kitakitsune.org on 24 Dec 2012 at 10:39
Original issue reported on code.google.com by
bystrousak@kitakitsune.org
on 24 Dec 2012 at 10:39