Merge remote-tracking branch 'origin/master' into 3.0

This commit is contained in:
Satwik Kansal
2019-07-08 02:33:38 +05:30
4 changed files with 13 additions and 11 deletions

1
README.md vendored
View File

@@ -290,7 +290,6 @@ Makes sense, right?
```
#### 💡 Explanation:
- It might appear at first that the default seperator for split is a single space `' '`, but as per the [docs](https://docs.python.org/2.7/library/stdtypes.html#str.split),
> If sep is not specified or is None, a different splitting algorithm is applied: runs of consecutive whitespace are regarded as a single separator, and the result will contain no empty strings at the start or end if the string has leading or trailing whitespace. Consequently, splitting an empty string or a string consisting of just whitespace with a None separator returns `[]`.
> If sep is given, consecutive delimiters are not grouped together and are deemed to delimit empty strings (for example, `'1,,2'.split(',')` returns `['1', '', '2']`). Splitting an empty string with a specified separator returns `['']`.