brennerm / PyTricks

Collection of less popular features and tricks for the Python programming language
MIT License
3.07k stars 503 forks source link

Add max split trick #10

Closed ana-balica closed 9 years ago

ana-balica commented 9 years ago

The not so known Python split() method has a second param that allow to split max times, leaving the rest of the string intact.

brennerm commented 9 years ago

Want to add yourself to the contibutors?

ana-balica commented 9 years ago

Yup. Updated this PR with an extra commit.

brennerm commented 9 years ago

Alright, thanks for your contribution!