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
d73be67c
Kaydet (Commit)
d73be67c
authored
Ara 18, 2010
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Minor wordsmithing and markup fix-ups.
üst
3094ed8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
22 deletions
+25
-22
3.2.rst
Doc/whatsnew/3.2.rst
+25
-22
No files found.
Doc/whatsnew/3.2.rst
Dosyayı görüntüle @
d73be67c
http://news.blogs.cnn.com/2010/12/17/final-lunar-eclipse-of-2010-set-for-early-morning-of-december-21/?hpt=T2http://news.blogs.cnn.com/2010/12/17/final-lunar-eclipse-of-2010-set-for-early-morning-of-december-21/?hpt=T2
****************************
****************************
What's New In Python 3.2
What's New In Python 3.2
****************************
****************************
...
@@ -1617,33 +1617,36 @@ Porting to Python 3.2
...
@@ -1617,33 +1617,36 @@ Porting to Python 3.2
This section lists previously described changes and other bugfixes that may
This section lists previously described changes and other bugfixes that may
require changes to your code:
require changes to your code:
* The :mod:`configparser` class :class:`SafeConfigParser` has been updated and
* The :mod:`configparser` module has a number of clean-ups. The major change is
renamed to :class:`ConfigParser` whereas the old :class:`ConfigParser` class
to replace the old :class:`ConfigParser` class with long-standing preferred
has been removed. This means a couple of minor incompatibilities:
alternative :class:`SafeConfigParser`. In addition there are a number of
smaller incompatibilites:
*
interpolation syntax is now validated on :meth:`get` and :meth:`set`
*
The interpolation syntax is now validated on
operations. In the default interpolation scheme, only two tokens with
:meth:`~configparser.ConfigParser.get` and
percent signs are valid: %(name)s and %%, the latter being an escaped
:meth:`~configparser.ConfigParser.set` operations. In the default
percent sign. If that is not welcome, consider using
interpolation scheme, only two tokens with percent signs are valid: ``%(name)s``
:class:`ExtendedInterpolation` or none at all
.
and ``%%``, the latter being an escaped percent sign
.
* :meth:`set` and :meth:`add_section` now check whether the given value type
* The :meth:`~configparser.ConfigParser.set` and
is a string. :mod:`configparser` was never designed to hold non-string
:meth:`~configparser.ConfigParser.add_section` methods now verify that
values internally.
values are actual strings. Formerly, unsupported types could be introduced
unintentionally.
* exception is raised on any section or option duplicates that appear when
* Duplicate sections or options now raise either
reading a single source. This exposes mistakes in user configuration.
:exc:`~configparser.DuplicateSectionError` or
:exc:`~configparser.DuplicateOptionError`. Formerly, duplicates would
silently overwrite a previous entry.
*
inline comments are now disabled by default which means the ``;``
character
*
Inline comments are now disabled by default so now the **;**
character
can be safe
uly used in values (``#`` was never allowed as inline comment)
.
can be safe
ly used in values
.
* comments now can be indented which means for ``;`` and ``#`` to appear at
* Comments now can be indented. Consequently, for **;** or **#** to appear at
the start of a line in multiline values, it has to be interpolated. This is
the start of a line in multiline values, it has to be interpolated. This
preferable because in INI files a character that is also a comment prefix
keep comment prefix characters in value from being mistaken as comments.
cannot be taken for a comment by mistake.
* ``""`` is now a valid value
, no longer automatically converted to an empty
* ``""`` is now a valid value
and is no longer automatically converted to an
string. For empty strings users can
use ``"option ="`` in a line.
empty string. For empty strings,
use ``"option ="`` in a line.
* The :mod:`nntplib` module was reworked extensively, meaning that its APIs
* The :mod:`nntplib` module was reworked extensively, meaning that its APIs
are often incompatible with the 3.1 APIs.
are often incompatible with the 3.1 APIs.
...
...
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