sgzwiz / brython

Automatically exported from code.google.com/p/brython
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Missing .splitlines() #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Commited the fix to svn

Original comment by francois...@gmail.com on 23 Jan 2013 at 5:00