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
40e95dfc
Kaydet (Commit)
40e95dfc
authored
Mar 30, 2014
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #21029: IDLE now colors print consistently as a keyword.
üst
3708349c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
ColorDelegator.py
Lib/idlelib/ColorDelegator.py
+3
-0
NEWS
Misc/NEWS
+4
-0
No files found.
Lib/idlelib/ColorDelegator.py
Dosyayı görüntüle @
40e95dfc
...
...
@@ -16,6 +16,9 @@ def make_pat():
kw
=
r"\b"
+
any
(
"KEYWORD"
,
keyword
.
kwlist
)
+
r"\b"
builtinlist
=
[
str
(
name
)
for
name
in
dir
(
__builtin__
)
if
not
name
.
startswith
(
'_'
)]
# We don't know whether "print" is a function or a keyword,
# so we always treat is as a keyword (the most common case).
builtinlist
.
remove
(
'print'
)
# self.file = file("file") :
# 1st 'file' colorized normal, 2nd as builtin, 3rd as string
builtin
=
r"([^.'\"\\#]\b|^)"
+
any
(
"BUILTIN"
,
builtinlist
)
+
r"\b"
...
...
Misc/NEWS
Dosyayı görüntüle @
40e95dfc
...
...
@@ -265,6 +265,10 @@ IDLE
-
Issue
#
20406
:
Use
Python
application
icons
for
Idle
window
title
bars
.
Patch
mostly
by
Serhiy
Storchaka
.
-
Issue
#
21029
:
Occurrences
of
"print"
are
now
consistently
colored
as
being
a
keyword
(
the
colorizer
doesn
't know if print functions are
enabled in the source).
- Issue #17721: Remove non-functional configuration dialog help button until we
make it actually gives some help when clicked. Patch by Guilherme Simões.
...
...
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