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
b9a79c95
Kaydet (Commit)
b9a79c95
authored
Tem 29, 2006
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Follow TeX's conventions for hyphens
üst
b5a701b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
libcsv.tex
Doc/lib/libcsv.tex
+3
-3
No files found.
Doc/lib/libcsv.tex
Dosyayı görüntüle @
b9a79c95
...
...
@@ -55,7 +55,7 @@ The \module{csv} module defines the following functions:
Return a reader object which will iterate over lines in the given
{}
\var
{
csvfile
}
.
\var
{
csvfile
}
can be any object which supports the
iterator protocol and returns a string each time its
\method
{
next
}
method is called - file objects and list objects are both suitable.
method is called -
--
file objects and list objects are both suitable.
If
\var
{
csvfile
}
is a file object, it must be opened with
the 'b' flag on platforms where that makes a difference. An optional
{}
\var
{
dialect
}
parameter can be given
...
...
@@ -77,7 +77,7 @@ file in a way that preserves the newlines. The behavior before 2.5 would
introduce spurious characters into quoted fields, with no way for the user
to control that behavior. The previous behavior caused considerable
problems, particularly on platforms that did not use the unix line ending
conventions, or with files that originated on those platforms - users were
conventions, or with files that originated on those platforms -
--
users were
finding mysterious newlines where they didn't expect them]
{
2.5
}
\end{funcdesc}
...
...
@@ -414,7 +414,7 @@ csv.register_dialect('unixpwd', delimiter=':', quoting=csv.QUOTE_NONE)
reader = csv.reader(open("passwd", "rb"), 'unixpwd')
\end{verbatim}
A slightly more advanced use of the reader - catching and reporting errors:
A slightly more advanced use of the reader -
--
catching and reporting errors:
\begin{verbatim}
import csv, sys
...
...
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