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
3b0b90c8
Kaydet (Commit)
3b0b90c8
authored
Haz 08, 2018
tarafından
Andrés Delfino
Kaydeden (comit)
Ned Deily
Haz 08, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-33800: Fix default argument for parameter dict_type of ConfigParser/RawConfigParser (GH-7494)
üst
4f54867e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
configparser.rst
Doc/library/configparser.rst
+9
-2
No files found.
Doc/library/configparser.rst
Dosyayı görüntüle @
3b0b90c8
...
@@ -855,7 +855,7 @@ interpolation if an option used is not defined elsewhere. ::
...
@@ -855,7 +855,7 @@ interpolation if an option used is not defined elsewhere. ::
ConfigParser Objects
ConfigParser Objects
--------------------
--------------------
.. class:: ConfigParser(defaults=None, dict_type=
collections.OrderedD
ict, allow_no_value=False, delimiters=('=', ':'), comment_prefixes=('#', ';'), inline_comment_prefixes=None, strict=True, empty_lines_in_values=True, default_section=configparser.DEFAULTSECT, interpolation=BasicInterpolation(), converters={})
.. class:: ConfigParser(defaults=None, dict_type=
d
ict, allow_no_value=False, delimiters=('=', ':'), comment_prefixes=('#', ';'), inline_comment_prefixes=None, strict=True, empty_lines_in_values=True, default_section=configparser.DEFAULTSECT, interpolation=BasicInterpolation(), converters={})
The main configuration parser. When *defaults* is given, it is initialized
The main configuration parser. When *defaults* is given, it is initialized
into the dictionary of intrinsic defaults. When *dict_type* is given, it
into the dictionary of intrinsic defaults. When *dict_type* is given, it
...
@@ -917,6 +917,9 @@ ConfigParser Objects
...
@@ -917,6 +917,9 @@ ConfigParser Objects
providing consistent behavior across the parser: non-string
providing consistent behavior across the parser: non-string
keys and values are implicitly converted to strings.
keys and values are implicitly converted to strings.
.. versionchanged:: 3.7
The default *dict_type* is :class:`dict`, since it now preserves
insertion order.
.. method:: defaults()
.. method:: defaults()
...
@@ -1178,7 +1181,7 @@ ConfigParser Objects
...
@@ -1178,7 +1181,7 @@ ConfigParser Objects
RawConfigParser Objects
RawConfigParser Objects
-----------------------
-----------------------
.. class:: RawConfigParser(defaults=None, dict_type=
collections.OrderedD
ict, \
.. class:: RawConfigParser(defaults=None, dict_type=
d
ict, \
allow_no_value=False, *, delimiters=('=', ':'), \
allow_no_value=False, *, delimiters=('=', ':'), \
comment_prefixes=('#', ';'), \
comment_prefixes=('#', ';'), \
inline_comment_prefixes=None, strict=True, \
inline_comment_prefixes=None, strict=True, \
...
@@ -1191,6 +1194,10 @@ RawConfigParser Objects
...
@@ -1191,6 +1194,10 @@ RawConfigParser Objects
names, and values via its unsafe ``add_section`` and ``set`` methods,
names, and values via its unsafe ``add_section`` and ``set`` methods,
as well as the legacy ``defaults=`` keyword argument handling.
as well as the legacy ``defaults=`` keyword argument handling.
.. versionchanged:: 3.7
The default *dict_type* is :class:`dict`, since it now preserves
insertion order.
.. note::
.. note::
Consider using :class:`ConfigParser` instead which checks types of
Consider using :class:`ConfigParser` instead which checks types of
the values to be stored internally. If you don't want interpolation, you
the values to be stored internally. If you don't want interpolation, you
...
...
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