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
c7485064
Kaydet (Commit)
c7485064
authored
Nis 01, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#5636: fix next -> __next__ in csv reader docs.
üst
9ae3640b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
csv.rst
Doc/library/csv.rst
+3
-6
test_xmlrpc.py
Lib/test/test_xmlrpc.py
+5
-1
server.py
Lib/xmlrpc/server.py
+1
-1
No files found.
Doc/library/csv.rst
Dosyayı görüntüle @
c7485064
...
@@ -351,14 +351,13 @@ Reader Objects
...
@@ -351,14 +351,13 @@ Reader Objects
Reader objects (:class:`DictReader` instances and objects returned by the
Reader objects (:class:`DictReader` instances and objects returned by the
:func:`reader` function) have the following public methods:
:func:`reader` function) have the following public methods:
.. method:: csvreader.__next__()
.. method:: csvreader.next()
Return the next row of the reader's iterable object as a list, parsed according
Return the next row of the reader's iterable object as a list, parsed according
to the current dialect.
to the current dialect.
Usually you should call this as ``next(reader)``.
Reader objects have the following public attributes:
Reader objects have the following public attributes:
.. attribute:: csvreader.dialect
.. attribute:: csvreader.dialect
...
@@ -371,10 +370,8 @@ Reader objects have the following public attributes:
...
@@ -371,10 +370,8 @@ Reader objects have the following public attributes:
number of records returned, as records can span multiple lines.
number of records returned, as records can span multiple lines.
DictReader objects have the following public attribute:
DictReader objects have the following public attribute:
.. attribute:: csvreader.fieldnames
.. attribute:: csvreader.fieldnames
If not passed as a parameter when creating the object, this attribute is
If not passed as a parameter when creating the object, this attribute is
...
...
Lib/test/test_xmlrpc.py
Dosyayı görüntüle @
c7485064
...
@@ -598,7 +598,11 @@ class CGIHandlerTestCase(unittest.TestCase):
...
@@ -598,7 +598,11 @@ class CGIHandlerTestCase(unittest.TestCase):
sys
.
stdin
=
open
(
"xmldata.txt"
,
"r"
)
sys
.
stdin
=
open
(
"xmldata.txt"
,
"r"
)
sys
.
stdout
=
open
(
support
.
TESTFN
,
"w"
)
sys
.
stdout
=
open
(
support
.
TESTFN
,
"w"
)
self
.
cgi
.
handle_request
()
os
.
environ
[
'CONTENT_LENGTH'
]
=
str
(
len
(
data
))
try
:
self
.
cgi
.
handle_request
()
finally
:
del
os
.
environ
[
'CONTENT_LENGTH'
]
sys
.
stdin
.
close
()
sys
.
stdin
.
close
()
sys
.
stdout
.
close
()
sys
.
stdout
.
close
()
...
...
Lib/xmlrpc/server.py
Dosyayı görüntüle @
c7485064
...
@@ -590,7 +590,7 @@ class CGIXMLRPCRequestHandler(SimpleXMLRPCDispatcher):
...
@@ -590,7 +590,7 @@ class CGIXMLRPCRequestHandler(SimpleXMLRPCDispatcher):
# POST data is normally available through stdin
# POST data is normally available through stdin
try
:
try
:
length
=
int
(
os
.
environ
.
get
(
'CONTENT_LENGTH'
,
None
))
length
=
int
(
os
.
environ
.
get
(
'CONTENT_LENGTH'
,
None
))
except
ValueError
:
except
(
ValueError
,
TypeError
)
:
length
=
-
1
length
=
-
1
if
request_text
is
None
:
if
request_text
is
None
:
request_text
=
sys
.
stdin
.
read
(
length
)
request_text
=
sys
.
stdin
.
read
(
length
)
...
...
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