sgzwiz / brython

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

split function error #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. x='aZjhkhZyuy'
2. print(x.split('h',1))
3.

What is the expected output? 
['aZj','khZyuy']

What do you see instead?
['aZj']

Please use labels and text to provide additional information.
split function in javascript when provided with a "max split" value only returns
maxsplit number of elements (this in this 1).

Original issue reported on code.google.com by billy.earney@gmail.com on 5 Mar 2013 at 10:56

GoogleCodeExporter commented 9 years ago

Original comment by billy.earney@gmail.com on 6 Mar 2013 at 12:01