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
ab86521a
Kaydet (Commit)
ab86521a
authored
Nis 22, 2019
tarafından
Marcin Niemira
Kaydeden (comit)
Inada Naoki
Nis 22, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-36523: Add docstring to io.IOBase.writelines (GH-12683)
üst
662ebd2a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
_pyio.py
Lib/_pyio.py
+5
-0
2019-04-04-19-11-47.bpo-36523.sG1Tr4.rst
...xt/Documentation/2019-04-04-19-11-47.bpo-36523.sG1Tr4.rst
+1
-0
iobase.c.h
Modules/_io/clinic/iobase.c.h
+6
-2
iobase.c
Modules/_io/iobase.c
+6
-1
No files found.
Lib/_pyio.py
Dosyayı görüntüle @
ab86521a
...
...
@@ -551,6 +551,11 @@ class IOBase(metaclass=abc.ABCMeta):
return
lines
def
writelines
(
self
,
lines
):
"""Write a list of lines to the stream.
Line separators are not added, so it is usual for each of the lines
provided to have a line separator at the end.
"""
self
.
_checkClosed
()
for
line
in
lines
:
self
.
write
(
line
)
...
...
Misc/NEWS.d/next/Documentation/2019-04-04-19-11-47.bpo-36523.sG1Tr4.rst
0 → 100644
Dosyayı görüntüle @
ab86521a
Add docstring for io.IOBase.writelines().
Modules/_io/clinic/iobase.c.h
Dosyayı görüntüle @
ab86521a
...
...
@@ -242,7 +242,11 @@ exit:
PyDoc_STRVAR
(
_io__IOBase_writelines__doc__
,
"writelines($self, lines, /)
\n
"
"--
\n
"
"
\n
"
);
"
\n
"
"Write a list of lines to stream.
\n
"
"
\n
"
"Line separators are not added, so it is usual for each of the
\n
"
"lines provided to have a line separator at the end."
);
#define _IO__IOBASE_WRITELINES_METHODDEF \
{"writelines", (PyCFunction)_io__IOBase_writelines, METH_O, _io__IOBase_writelines__doc__},
...
...
@@ -311,4 +315,4 @@ _io__RawIOBase_readall(PyObject *self, PyObject *Py_UNUSED(ignored))
{
return
_io__RawIOBase_readall_impl
(
self
);
}
/*[clinic end generated code: output=6
0e43a7cbd9f314e
input=a9049054013a1b77]*/
/*[clinic end generated code: output=6
1b6ea7153ef9940
input=a9049054013a1b77]*/
Modules/_io/iobase.c
Dosyayı görüntüle @
ab86521a
...
...
@@ -751,11 +751,16 @@ _io__IOBase_readlines_impl(PyObject *self, Py_ssize_t hint)
_io._IOBase.writelines
lines: object
/
Write a list of lines to stream.
Line separators are not added, so it is usual for each of the
lines provided to have a line separator at the end.
[clinic start generated code]*/
static
PyObject
*
_io__IOBase_writelines
(
PyObject
*
self
,
PyObject
*
lines
)
/*[clinic end generated code: output=976eb0a9b60a6628 input=
432e729a8450b3cb
]*/
/*[clinic end generated code: output=976eb0a9b60a6628 input=
cac3fc8864183359
]*/
{
PyObject
*
iter
,
*
res
;
...
...
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