str.isspace

isspace()

Return true if there are only whitespace characters in the string and there is at least one character, false otherwise.

For 8-bit strings, this method is locale-dependent.

 

A Django site. rendered by a django application. hosted by webfaction.