Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
f13c4ba1
Kaydet (Commit)
f13c4ba1
authored
Agu 02, 2005
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[ 1243192 ] Incorrect documentation of re.UNICODE
üst
67962ab1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
12 deletions
+31
-12
libre.tex
Doc/lib/libre.tex
+29
-12
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/lib/libre.tex
Dosyayı görüntüle @
f13c4ba1
...
...
@@ -342,17 +342,33 @@ with Python's string literals.
at the beginning or end of a word. This is just the opposite of
{}
\code
{
\e
b
}
, so is also subject to the settings of
\code
{
LOCALE
}
and
\code
{
UNICODE
}
.
\item
[\code{\e d}]
Matches any decimal digit; this is
equivalent to the set
\regexp
{
[0-9]
}
.
\item
[\code{\e d}]
When the
\constant
{
UNICODE
}
flag is not specified, matches
any decimal digit; this is equivalent to the set
\regexp
{
[0-9]
}
.
With
\constant
{
UNICODE
}
, it will match whatever is classified as a digit
in the Unicode character properties database.
\item
[\code{\e D}]
Matches any non-digit character; this is
equivalent to the set
\regexp
{
[
{
\textasciicircum
}
0-9]
}
.
\item
[\code{\e D}]
When the
\constant
{
UNICODE
}
flag is not specified, matches
any non-digit character; this is equivalent to the set
\regexp
{
[
{
\textasciicircum
}
0-9]
}
. With
\constant
{
UNICODE
}
, it will match
anything other than character marked as digits in the Unicode character
properties database.
\item
[\code{\e s}]
Matches any whitespace character; this is
\item
[\code{\e s}]
When the
\constant
{
LOCALE
}
and
\constant
{
UNICODE
}
flags are not specified, matches any whitespace character; this is
equivalent to the set
\regexp
{
[
\e
t
\e
n
\e
r
\e
f
\e
v]
}
.
\item
[\code{\e S}]
Matches any non-whitespace character; this is
equivalent to the set
\regexp
{
[
\textasciicircum\ \e
t
\e
n
\e
r
\e
f
\e
v]
}
.
With
\constant
{
LOCALE
}
, it will match this set plus whatever characters
are defined as space for the current locale. If
\constant
{
UNICODE
}
is set,
this will match the characters
\regexp
{
[
\e
t
\e
n
\e
r
\e
f
\e
v]
}
plus
whatever is classified as space in the Unicode character properties
database.
\item
[\code{\e S}]
When the
\constant
{
LOCALE
}
and
\constant
{
UNICODE
}
flags are not specified, matches any non-whitespace character; this is
equivalent to the set
\regexp
{
[
\textasciicircum\ \e
t
\e
n
\e
r
\e
f
\e
v]
}
With
\constant
{
LOCALE
}
, it will match any character not in this set,
and not defined as space in the current locale. If
\constant
{
UNICODE
}
is set, this will match anything other than
\regexp
{
[
\e
t
\e
n
\e
r
\e
f
\e
v]
}
and characters marked as space in the Unicode character properties database.
\item
[\code{\e w}]
When the
\constant
{
LOCALE
}
and
\constant
{
UNICODE
}
flags are not specified, matches any alphanumeric character and the
...
...
@@ -468,8 +484,8 @@ current locale.
\begin{datadesc}
{
L
}
\dataline
{
LOCALE
}
Make
\regexp
{
\e
w
}
,
\regexp
{
\e
W
}
,
\regexp
{
\e
b
}
,
and
\regexp
{
\e
B
}
dependent on the current locale.
Make
\regexp
{
\e
w
}
,
\regexp
{
\e
W
}
,
\regexp
{
\e
b
}
,
\regexp
{
\e
B
}
,
\regexp
{
\e
s
}
and
\regexp
{
\e
S
}
dependent on the current locale.
\end{datadesc}
\begin{datadesc}
{
M
}
...
...
@@ -493,8 +509,9 @@ anything \emph{except} a newline.
\begin{datadesc}
{
U
}
\dataline
{
UNICODE
}
Make
\regexp
{
\e
w
}
,
\regexp
{
\e
W
}
,
\regexp
{
\e
b
}
, and
\regexp
{
\e
B
}
dependent on the Unicode character properties database.
Make
\regexp
{
\e
w
}
,
\regexp
{
\e
W
}
,
\regexp
{
\e
b
}
,
\regexp
{
\e
B
}
,
\regexp
{
\e
d
}
,
\regexp
{
\e
D
}
,
\regexp
{
\e
s
}
and
\regexp
{
\e
S
}
dependent on the Unicode character properties database.
\versionadded
{
2.0
}
\end{datadesc}
...
...
Misc/NEWS
Dosyayı görüntüle @
f13c4ba1
...
...
@@ -433,6 +433,8 @@ Tests
Documentation
-------------
- Bug #1243192: re.UNICODE and re.LOCALE affect \d, \D, \s and \S.
- Bug #755617: Document the effects of os.chown() on Windows.
- Patch #1180012: The documentation for modulefinder is now in the library reference.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment