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
1ef24e1b
Kaydet (Commit)
1ef24e1b
authored
May 09, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Note that when inplace=1 existing backup files will be removed silently.
Closes SF bug #420230.
üst
fb1f68ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
libfileinput.tex
Doc/lib/libfileinput.tex
+5
-2
No files found.
Doc/lib/libfileinput.tex
Dosyayı görüntüle @
1ef24e1b
...
...
@@ -47,7 +47,9 @@ The following function is the primary interface of this module:
inplace
\optional
{
, backup
}}}}
Create an instance of the
\class
{
FileInput
}
class. The instance
will be used as global state for the functions of this module, and
is also returned to use during iteration.
is also returned to use during iteration. The parameters to this
function will be passed along to the constructor of the
\class
{
FileInput
}
class.
\end{funcdesc}
...
...
@@ -118,7 +120,8 @@ module is available for subclassing as well:
\strong
{
Optional in-place filtering:
}
if the keyword argument
\code
{
\var
{
inplace
}
=1
}
is passed to
\function
{
input()
}
or to the
\class
{
FileInput
}
constructor, the file is moved to a backup file and
standard output is directed to the input file.
standard output is directed to the input file (if a file of the same
name as the backup file already exists, it will be replaced silently).
This makes it possible to write a filter that rewrites its input file
in place. If the keyword argument
\code
{
\var
{
backup
}
='.<some
extension>'
}
is also given, it specifies the extension for the backup
...
...
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