A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/005286.html below:

[Python-Dev] unicode alphanumerics

[Python-Dev] unicode alphanumerics [Python-Dev] unicode alphanumericsFredrik Lundh Fredrik Lundh" <effbot@telia.com
Sat, 1 Jul 2000 18:46:08 +0200
when looking through skip's coverage listing, I noted a bug in
SRE:

#define SRE_UNI_IS_ALNUM(ch) ((ch) < 256 ? isalnum((ch)) : 0)

this predicate is used for \w when a pattern is compiled using
the "unicode locale" (flag U), and should definitely not use 8-bit
locale stuff.

however, there's no such thing as a Py_UNICODE_ISALNUM
(or even a Py_UNICODE_ISALPHA).  what should I do?  how
about using:

    Py_UNICODE_ISLOWER ||   =20
    Py_UNICODE_ISUPPER ||
    Py_UNICODE_ISTITLE ||
    Py_UNICODE_ISDIGIT
   =20
</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