How do I reliably split a string in Python, when it may not contain the pattern, or all n elements? How do I reliably split a string in Python, when it may not contain the pattern, or all n elements? python-3.x python-3.x