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
a2f8737f
Kaydet (Commit)
a2f8737f
authored
Nis 29, 2003
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add comment that urlopen opens local files without universal newlines
üst
a1af767c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
liburllib.tex
Doc/lib/liburllib.tex
+8
-8
No files found.
Doc/lib/liburllib.tex
Dosyayı görüntüle @
a2f8737f
...
...
@@ -21,14 +21,14 @@ It defines the following public functions:
\begin{funcdesc}
{
urlopen
}{
url
\optional
{
, data
\optional
{
, proxies
}}}
Open a network object denoted by a URL for reading. If the URL does
not have a scheme identifier, or if it has
\file
{
file:
}
as its scheme
identifier, this opens a local file
; otherwise it opens a socket to a
server somewhere on the network. If the connection cannot be made, or
if the server returns an error code, the
\exception
{
IOError
}
exception
is raised. If all went well, a file-like object is returned. This
supports the following methods:
\method
{
read()
}
,
\method
{
readline()
}
,
\method
{
read
lines()
}
,
\method
{
fileno()
}
,
\method
{
close
()
}
,
\method
{
info()
}
and
\method
{
geturl()
}
. It also has proper support for
the iterator protocol.
identifier, this opens a local file
(without universal newlines);
otherwise it opens a socket to a server somewhere on the network. If
the connection cannot be made, or if the server returns an error code,
the
\exception
{
IOError
}
exception is raised. If all went well, a
file-like object is returned. This supports the following methods:
\method
{
read
()
}
,
\method
{
readline()
}
,
\method
{
readlines()
}
,
\method
{
fileno
()
}
,
\method
{
close()
}
,
\method
{
info()
}
and
\method
{
geturl()
}
. It also has
proper support for
the iterator protocol.
Except for the
\method
{
info()
}
and
\method
{
geturl()
}
methods,
these methods have the same interface as for
...
...
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