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
13890080
Kaydet (Commit)
13890080
authored
Haz 05, 2011
tarafından
Éric Araujo
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make example of file inclusion in setupcfg more obvious
üst
ed4fd704
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
setupcfg.rst
Doc/packaging/setupcfg.rst
+14
-15
No files found.
Doc/packaging/setupcfg.rst
Dosyayı görüntüle @
13890080
...
...
@@ -77,38 +77,37 @@ or more files which will be merged into the current files by adding new sections
and fields. If a file loaded by ``extends`` contains sections or keys that
already exist in the original file, they will not override the previous values.
file_one.ini::
Contents of :file:`one.cfg`::
[section1]
name
2 = "other value"
name
= value
[section2]
foo = baz
bas = bar
foo = foo from one.cfg
file_two.ini
::
Contents of :file:`two.cfg`
::
[DEFAULT]
extends =
file_one.ini
extends =
one.cfg
[section2]
foo = bar
foo = foo from two.cfg
baz = baz from two.cfg
Result
::
The result of parsing :file:`two.cfg` is equivalent to this file
::
[section1]
name
2 = "other value"
name
= value
[section2]
foo =
bar
ba
s = bar
foo =
foo from one.cfg
ba
z = baz from two.cfg
To point several files, the multi-line notation can be used
::
Example use of multi-line notation to include more than one file
::
[DEFAULT]
extends =
file_one.ini
file_two.ini
extends =
one.cfg
two.cfg
When several files are provided, they are processed sequentially, following the
precedence rules explained above. This means that the list of files should go
...
...
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