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
dacde0d6
Kaydet (Commit)
dacde0d6
authored
May 26, 2008
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
turn PyErr_WarnPy3k into a macro
üst
eeb2b21a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
12 deletions
+3
-12
warnings.h
Include/warnings.h
+2
-1
NEWS
Misc/NEWS
+1
-2
_warnings.c
Python/_warnings.c
+0
-9
No files found.
Include/warnings.h
Dosyayı görüntüle @
dacde0d6
...
@@ -9,7 +9,8 @@ PyAPI_FUNC(void) _PyWarnings_Init(void);
...
@@ -9,7 +9,8 @@ PyAPI_FUNC(void) _PyWarnings_Init(void);
PyAPI_FUNC
(
int
)
PyErr_WarnEx
(
PyObject
*
,
const
char
*
,
Py_ssize_t
);
PyAPI_FUNC
(
int
)
PyErr_WarnEx
(
PyObject
*
,
const
char
*
,
Py_ssize_t
);
PyAPI_FUNC
(
int
)
PyErr_WarnExplicit
(
PyObject
*
,
const
char
*
,
const
char
*
,
int
,
PyAPI_FUNC
(
int
)
PyErr_WarnExplicit
(
PyObject
*
,
const
char
*
,
const
char
*
,
int
,
const
char
*
,
PyObject
*
);
const
char
*
,
PyObject
*
);
PyAPI_FUNC
(
int
)
PyErr_WarnPy3k
(
const
char
*
,
Py_ssize_t
);
#define PyErr_WarnPy3k(msg, stacklevel) (Py_Py3kWarningFlag ? PyErr_WarnEx(PyExc_DeprecationWarning, msg, stacklevel) : 0)
/* DEPRECATED: Use PyErr_WarnEx() instead. */
/* DEPRECATED: Use PyErr_WarnEx() instead. */
#define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1)
#define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1)
...
...
Misc/NEWS
Dosyayı görüntüle @
dacde0d6
...
@@ -409,8 +409,7 @@ C API
...
@@ -409,8 +409,7 @@ C API
which provide the functions through their libm. The files also
which provide the functions through their libm. The files also
contains several helpers and constants for math.
contains several helpers and constants for math.
- Added a new convenience function, PyErr_WarnPy3k, for issuing Py3k
- Added a new convenience macro, PyErr_WarnPy3k, for issuing Py3k warnings.
warnings.
What's New in Python 2.6 alpha 2?
What's New in Python 2.6 alpha 2?
...
...
Python/_warnings.c
Dosyayı görüntüle @
dacde0d6
...
@@ -775,15 +775,6 @@ PyErr_WarnExplicit(PyObject *category, const char *text,
...
@@ -775,15 +775,6 @@ PyErr_WarnExplicit(PyObject *category, const char *text,
}
}
int
PyErr_WarnPy3k
(
const
char
*
text
,
Py_ssize_t
stacklevel
)
{
if
(
Py_Py3kWarningFlag
)
return
PyErr_WarnEx
(
PyExc_DeprecationWarning
,
text
,
stacklevel
);
return
0
;
}
PyDoc_STRVAR
(
warn_doc
,
PyDoc_STRVAR
(
warn_doc
,
"Issue a warning, or maybe ignore it or raise an exception."
);
"Issue a warning, or maybe ignore it or raise an exception."
);
...
...
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