You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is the expected behaviour. Remember that parse is intended to be the inverse of format, and there is no x such that format('{a:d}', x) returns a string that is left-padded with spaces. Therefore the corresponding call to parse must return None.
To match an arbitrary number of spaces in front, you could either use a regex of strip the string before passing it to parse.
BTW, parsedoes provide a result if you set the width specifier in the format string to any positive number at all:
The text was updated successfully, but these errors were encountered: