Greg Ward wrote: > Weird. What the heck is 0xa0 doing in string.whitespace? Oh, = waitasec, > 0xa0 is non-breaking-space in ISO-8859-1. But no, string.whitespace = is > hardcoded to the US-ASCII whitespace chars, all of which are in > range(128) -- your locale shouldn't matter. $ tail Lib/string.py try: from strop import maketrans, lowercase, uppercase, whitespace letters =3D lowercase + uppercase except ImportError: pass $ tail Modules/strop.c DL_EXPORT(void) initstrop(void) { ... /* Create 'whitespace' object */ n =3D 0; for (c =3D 0; c < 256; c++) { if (isspace(c)) buf[n++] =3D c; } s =3D PyString_FromStringAndSize(buf, n); if (s) { PyDict_SetItemString(d, "whitespace", s); Py_DECREF(s); } ... </F>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4