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
77353664
Kaydet (Commit)
77353664
authored
Eki 26, 2013
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge 3.3 (#19393)
üst
a577f1e0
89d8cd94
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
symtable.py
Lib/symtable.py
+1
-4
NEWS
Misc/NEWS
+3
-0
symtablemodule.c
Modules/symtablemodule.c
+1
-1
No files found.
Lib/symtable.py
Dosyayı görüntüle @
77353664
...
...
@@ -10,10 +10,7 @@ import weakref
__all__
=
[
"symtable"
,
"SymbolTable"
,
"Class"
,
"Function"
,
"Symbol"
]
def
symtable
(
code
,
filename
,
compile_type
):
raw
=
_symtable
.
symtable
(
code
,
filename
,
compile_type
)
for
top
in
raw
.
values
():
if
top
.
name
==
'top'
:
break
top
=
_symtable
.
symtable
(
code
,
filename
,
compile_type
)
return
_newSymbolTable
(
top
,
filename
)
class
SymbolTableFactory
:
...
...
Misc/NEWS
Dosyayı görüntüle @
77353664
...
...
@@ -26,6 +26,9 @@ Library
contextlib.suppress context managers, which also ensures they provide
reasonable help() output on instances
- Issue #19393: Fix symtable.symtable function to not be confused when there are
functions or classes named "top".
- Issue #18685: Restore re performance to pre-PEP 393 levels.
- Issue #19339: telnetlib module is now using time.monotonic() when available
...
...
Modules/symtablemodule.c
Dosyayı görüntüle @
77353664
...
...
@@ -34,7 +34,7 @@ symtable_symtable(PyObject *self, PyObject *args)
Py_DECREF
(
filename
);
if
(
st
==
NULL
)
return
NULL
;
t
=
st
->
st_blocks
;
t
=
(
PyObject
*
)
st
->
st_top
;
Py_INCREF
(
t
);
PyMem_Free
((
void
*
)
st
->
st_future
);
PySymtable_Free
(
st
);
...
...
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