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
89ab1634
Kaydet (Commit)
89ab1634
authored
Ara 21, 1999
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document that the |mode| parameter to open() is optional and explain how
the default value is determined.
üst
96b5ee88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
libaifc.tex
Doc/lib/libaifc.tex
+9
-8
libwave.tex
Doc/lib/libwave.tex
+5
-2
No files found.
Doc/lib/libaifc.tex
Dosyayı görüntüle @
89ab1634
...
...
@@ -33,15 +33,16 @@ second's worth occupies 2*2*44100 bytes, i.e.\ 176,400 bytes.
Module
\module
{
aifc
}
defines the following function:
\begin{funcdesc}
{
open
}{
file
, mode
}
\begin{funcdesc}
{
open
}{
file
\optional
{
, mode
}
}
Open an AIFF or AIFF-C file and return an object instance with
methods that are described below. The argument file is either a
string naming a file or a file object. The mode is either the string
\code
{
'r'
}
when the file must be opened for reading, or
\code
{
'w'
}
when the file must be opened for writing. When used for writing, the
file object should be seekable, unless you know ahead of time how many
samples you are going to write in total and use
\method
{
writeframesraw()
}
and
\method
{
setnframes()
}
.
methods that are described below. The argument
\var
{
file
}
is either a
string naming a file or a file object.
\var
{
mode
}
must be
\code
{
'r'
}
or
\code
{
'rb'
}
when the file must be opened for reading, or
\code
{
'w'
}
or
\code
{
'wb'
}
when the file must be opened for writing. If omitted,
\code
{
\var
{
file
}
.mode
}
is used if it exists, otherwise
\code
{
'rb'
}
is
used. When used for writing, the file object should be seekable,
unless you know ahead of time how many samples you are going to write
in total and use
\method
{
writeframesraw()
}
and
\method
{
setnframes()
}
.
\end{funcdesc}
Objects returned by
\function
{
open()
}
when a file is opened for
...
...
Doc/lib/libwave.tex
Dosyayı görüntüle @
89ab1634
...
...
@@ -12,7 +12,7 @@ mono/stereo.
The
\module
{
wave
}
module defines the following function and exception:
\begin{funcdesc}
{
open
}{
file
, mode
}
\begin{funcdesc}
{
open
}{
file
\optional
{
, mode
}
}
If
\var
{
file
}
is a string, open the file by that name, other treat it
as a seekable file-like object.
\var
{
mode
}
can be any of
\begin{description}
...
...
@@ -23,7 +23,10 @@ Note that it does not allow read/write WAV files.
A
\var
{
mode
}
of
\code
{
'r'
}
or
\code
{
'rb'
}
returns a
\class
{
Wave
_
read
}
object, while a
\var
{
mode
}
of
\code
{
'w'
}
or
\code
{
'wb'
}
returns
a
\class
{
Wave
_
write
}
object.
a
\class
{
Wave
_
write
}
object. If
\var
{
mode
}
is omitted and a file-like
object is passed as
\var
{
file
}
,
\code
{
\var
{
file
}
.mode
}
is used as the
default value for
\var
{
mode
}
(the
\character
{
b
}
flag is still added if
necessary).
\end{funcdesc}
\begin{funcdesc}
{
openfp
}{
file, mode
}
...
...
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