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
a35f8e05
Kaydet (Commit)
a35f8e05
authored
Eki 27, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #1552024: add decorator support to unparse.py demo script.
(backport from rev. 52488)
üst
a0a50fee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
unparse.py
Demo/parser/unparse.py
+3
-0
NEWS
Misc/NEWS
+8
-0
No files found.
Demo/parser/unparse.py
Dosyayı görüntüle @
a35f8e05
...
@@ -223,6 +223,9 @@ class Unparser:
...
@@ -223,6 +223,9 @@ class Unparser:
def
_FunctionDef
(
self
,
t
):
def
_FunctionDef
(
self
,
t
):
self
.
write
(
"
\n
"
)
self
.
write
(
"
\n
"
)
for
deco
in
t
.
decorators
:
self
.
fill
(
"@"
)
self
.
dispatch
(
deco
)
self
.
fill
(
"def "
+
t
.
name
+
"("
)
self
.
fill
(
"def "
+
t
.
name
+
"("
)
self
.
dispatch
(
t
.
args
)
self
.
dispatch
(
t
.
args
)
self
.
write
(
")"
)
self
.
write
(
")"
)
...
...
Misc/NEWS
Dosyayı görüntüle @
a35f8e05
...
@@ -57,6 +57,7 @@ Core and builtins
...
@@ -57,6 +57,7 @@ Core and builtins
-
fixed
a
bug
with
bsddb
.
DB
.
stat
:
the
flags
and
txn
keyword
arguments
-
fixed
a
bug
with
bsddb
.
DB
.
stat
:
the
flags
and
txn
keyword
arguments
were
transposed
.
were
transposed
.
Extension
Modules
Extension
Modules
-----------------
-----------------
...
@@ -83,6 +84,7 @@ Extension Modules
...
@@ -83,6 +84,7 @@ Extension Modules
- Make regex engine raise MemoryError if allocating memory fails.
- Make regex engine raise MemoryError if allocating memory fails.
Library
Library
-------
-------
...
@@ -124,6 +126,12 @@ Library
...
@@ -124,6 +126,12 @@ Library
the close_fds arg to subprocess.Popen is not supported).
the close_fds arg to subprocess.Popen is not supported).
Tools/Demos
-----------
- Patch #1552024: add decorator support to unparse.py demo script.
Tests
Tests
-----
-----
...
...
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