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
42ec031f
Kaydet (Commit)
42ec031f
authored
Şub 11, 2014
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge 3.3 (#20588)
üst
04e24288
c2f665e7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
NEWS
Misc/NEWS
+2
-0
asdl_c.py
Parser/asdl_c.py
+6
-2
Python-ast.c
Python/Python-ast.c
+6
-2
No files found.
Misc/NEWS
Dosyayı görüntüle @
42ec031f
...
...
@@ -13,6 +13,8 @@ Core and Builtins
- Issue #19255: The builtins module is restored to initial value before
cleaning other modules. The sys and builtins modules are cleaned last.
- Issue #20588: Make Python-ast.c C89 compliant.
- Issue #20437: Fixed 22 potential bugs when deleting objects references.
- Issue #20500: Displaying an exception at interpreter shutdown no longer
...
...
Parser/asdl_c.py
Dosyayı görüntüle @
42ec031f
...
...
@@ -1203,10 +1203,14 @@ PyObject* PyAST_mod2obj(mod_ty t)
mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode)
{
mod_ty res;
PyObject *req_type[] = {(PyObject*)Module_type, (PyObject*)Expression_type,
(PyObject*)Interactive_type};
PyObject *req_type[3];
char *req_name[] = {"Module", "Expression", "Interactive"};
int isinstance;
req_type[0] = (PyObject*)Module_type;
req_type[1] = (PyObject*)Expression_type;
req_type[2] = (PyObject*)Interactive_type;
assert(0 <= mode && mode <= 2);
if (!init_types())
...
...
Python/Python-ast.c
Dosyayı görüntüle @
42ec031f
...
...
@@ -7023,10 +7023,14 @@ PyObject* PyAST_mod2obj(mod_ty t)
mod_ty
PyAST_obj2mod
(
PyObject
*
ast
,
PyArena
*
arena
,
int
mode
)
{
mod_ty
res
;
PyObject
*
req_type
[]
=
{(
PyObject
*
)
Module_type
,
(
PyObject
*
)
Expression_type
,
(
PyObject
*
)
Interactive_type
};
PyObject
*
req_type
[
3
];
char
*
req_name
[]
=
{
"Module"
,
"Expression"
,
"Interactive"
};
int
isinstance
;
req_type
[
0
]
=
(
PyObject
*
)
Module_type
;
req_type
[
1
]
=
(
PyObject
*
)
Expression_type
;
req_type
[
2
]
=
(
PyObject
*
)
Interactive_type
;
assert
(
0
<=
mode
&&
mode
<=
2
);
if
(
!
init_types
())
...
...
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