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
df4518ca
Kaydet (Commit)
df4518ca
authored
Kas 18, 2014
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #22453: Removed non-documented macro PyObject_REPR().
üst
3aa979e0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
13 deletions
+16
-13
3.5.rst
Doc/whatsnew/3.5.rst
+4
-0
object.h
Include/object.h
+0
-3
NEWS
Misc/NEWS
+2
-0
compile.c
Python/compile.c
+10
-10
No files found.
Doc/whatsnew/3.5.rst
Dosyayı görüntüle @
df4518ca
...
@@ -441,3 +441,7 @@ Changes in the C API
...
@@ -441,3 +441,7 @@ Changes in the C API
* The :c:type:`PyMemAllocator` structure was renamed to
* The :c:type:`PyMemAllocator` structure was renamed to
:c:type:`PyMemAllocatorEx` and a new ``calloc`` field was added.
:c:type:`PyMemAllocatorEx` and a new ``calloc`` field was added.
* Removed non-documented macro :c:macro:`PyObject_REPR` which leaked references.
Use format character ``%R`` in :c:func:`PyUnicode_FromFormat`-like functions
to format the :func:`repr` of the object.
Include/object.h
Dosyayı görüntüle @
df4518ca
...
@@ -575,9 +575,6 @@ PyAPI_FUNC(PyObject *) PyObject_Dir(PyObject *);
...
@@ -575,9 +575,6 @@ PyAPI_FUNC(PyObject *) PyObject_Dir(PyObject *);
PyAPI_FUNC
(
int
)
Py_ReprEnter
(
PyObject
*
);
PyAPI_FUNC
(
int
)
Py_ReprEnter
(
PyObject
*
);
PyAPI_FUNC
(
void
)
Py_ReprLeave
(
PyObject
*
);
PyAPI_FUNC
(
void
)
Py_ReprLeave
(
PyObject
*
);
/* Helper for passing objects to printf and the like */
#define PyObject_REPR(obj) _PyUnicode_AsString(PyObject_Repr(obj))
/* Flag bits for printing: */
/* Flag bits for printing: */
#define Py_PRINT_RAW 1
/* No string quotes etc. */
#define Py_PRINT_RAW 1
/* No string quotes etc. */
...
...
Misc/NEWS
Dosyayı görüntüle @
df4518ca
...
@@ -1256,6 +1256,8 @@ Build
...
@@ -1256,6 +1256,8 @@ Build
C API
C API
-----
-----
- Issue #22453: Removed non-documented macro PyObject_REPR().
- Issue #18395: Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`,
- Issue #18395: Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`,
rename ``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document
rename ``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document
these functions.
these functions.
...
...
Python/compile.c
Dosyayı görüntüle @
df4518ca
...
@@ -1414,12 +1414,12 @@ get_ref_type(struct compiler *c, PyObject *name)
...
@@ -1414,12 +1414,12 @@ get_ref_type(struct compiler *c, PyObject *name)
PyOS_snprintf
(
buf
,
sizeof
(
buf
),
PyOS_snprintf
(
buf
,
sizeof
(
buf
),
"unknown scope for %.100s in %.100s(%s)
\n
"
"unknown scope for %.100s in %.100s(%s)
\n
"
"symbols: %s
\n
locals: %s
\n
globals: %s"
,
"symbols: %s
\n
locals: %s
\n
globals: %s"
,
Py
Bytes_AS_STRING
(
name
),
Py
Unicode_AsUTF8
(
name
),
Py
Bytes_AS_STRING
(
c
->
u
->
u_name
),
Py
Unicode_AsUTF8
(
c
->
u
->
u_name
),
Py
Object_REPR
(
c
->
u
->
u_ste
->
ste_id
),
Py
Unicode_AsUTF8
(
PyObject_Repr
(
c
->
u
->
u_ste
->
ste_id
)
),
Py
Object_REPR
(
c
->
u
->
u_ste
->
ste_symbols
),
Py
Unicode_AsUTF8
(
PyObject_Repr
(
c
->
u
->
u_ste
->
ste_symbols
)
),
Py
Object_REPR
(
c
->
u
->
u_varnames
),
Py
Unicode_AsUTF8
(
PyObject_Repr
(
c
->
u
->
u_varnames
)
),
Py
Object_REPR
(
c
->
u
->
u_names
)
Py
Unicode_AsUTF8
(
PyObject_Repr
(
c
->
u
->
u_names
)
)
);
);
Py_FatalError
(
buf
);
Py_FatalError
(
buf
);
}
}
...
@@ -1476,11 +1476,11 @@ compiler_make_closure(struct compiler *c, PyCodeObject *co, Py_ssize_t args, PyO
...
@@ -1476,11 +1476,11 @@ compiler_make_closure(struct compiler *c, PyCodeObject *co, Py_ssize_t args, PyO
fprintf
(
stderr
,
fprintf
(
stderr
,
"lookup %s in %s %d %d
\n
"
"lookup %s in %s %d %d
\n
"
"freevars of %s: %s
\n
"
,
"freevars of %s: %s
\n
"
,
Py
Object_REPR
(
name
),
Py
Unicode_AsUTF8
(
PyObject_Repr
(
name
)
),
Py
Bytes_AS_STRING
(
c
->
u
->
u_name
),
Py
Unicode_AsUTF8
(
c
->
u
->
u_name
),
reftype
,
arg
,
reftype
,
arg
,
_PyUnicode_AsString
(
co
->
co_name
),
PyUnicode_AsUTF8
(
co
->
co_name
),
Py
Object_REPR
(
co
->
co_freevars
));
Py
Unicode_AsUTF8
(
PyObject_Repr
(
co
->
co_freevars
)
));
Py_FatalError
(
"compiler_make_closure()"
);
Py_FatalError
(
"compiler_make_closure()"
);
}
}
ADDOP_I
(
c
,
LOAD_CLOSURE
,
arg
);
ADDOP_I
(
c
,
LOAD_CLOSURE
,
arg
);
...
...
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