python-docs-fr/whatsnew/3.1.po

692 lines
23 KiB
Plaintext
Raw Normal View History

2018-07-04 09:06:45 +00:00
# Copyright (C) 2001-2018, Python Software Foundation
2018-07-04 09:08:42 +00:00
# For licence information, see README file.
2016-10-30 09:46:26 +00:00
#
msgid ""
msgstr ""
2019-12-05 22:15:54 +00:00
"Project-Id-Version: Python 3\n"
2016-10-30 09:46:26 +00:00
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-01-15 22:33+0100\n"
"PO-Revision-Date: 2018-07-31 23:30+0200\n"
2016-10-30 09:46:26 +00:00
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
2018-07-04 09:14:25 +00:00
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
2017-05-23 22:40:56 +00:00
"Language: fr\n"
2016-10-30 09:46:26 +00:00
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: whatsnew/3.1.rst:3
2016-10-30 09:46:26 +00:00
msgid "What's New In Python 3.1"
msgstr "Nouveautés de Python 3.1"
#: whatsnew/3.1.rst:0
2018-05-01 22:20:18 +00:00
msgid "Author"
msgstr "Auteur"
2018-05-01 22:20:18 +00:00
#: whatsnew/3.1.rst:5
2016-10-30 09:46:26 +00:00
msgid "Raymond Hettinger"
msgstr "Raymond Hettinger"
2016-10-30 09:46:26 +00:00
#: whatsnew/3.1.rst:49
msgid ""
"This article explains the new features in Python 3.1, compared to 3.0. "
"Python 3.1 was released on June 27, 2009."
2016-10-30 09:46:26 +00:00
msgstr ""
#: whatsnew/3.1.rst:54
2016-10-30 09:46:26 +00:00
msgid "PEP 372: Ordered Dictionaries"
msgstr ""
#: whatsnew/3.1.rst:56
2016-10-30 09:46:26 +00:00
msgid ""
"Regular Python dictionaries iterate over key/value pairs in arbitrary order. "
"Over the years, a number of authors have written alternative implementations "
"that remember the order that the keys were originally inserted. Based on "
"the experiences from those implementations, a new :class:`collections."
"OrderedDict` class has been introduced."
msgstr ""
#: whatsnew/3.1.rst:62
2016-10-30 09:46:26 +00:00
msgid ""
"The OrderedDict API is substantially the same as regular dictionaries but "
"will iterate over keys and values in a guaranteed order depending on when a "
"key was first inserted. If a new entry overwrites an existing entry, the "
"original insertion position is left unchanged. Deleting an entry and "
"reinserting it will move it to the end."
msgstr ""
#: whatsnew/3.1.rst:68
2016-10-30 09:46:26 +00:00
msgid ""
"The standard library now supports use of ordered dictionaries in several "
"modules. The :mod:`configparser` module uses them by default. This lets "
"configuration files be read, modified, and then written back in their "
"original order. The *_asdict()* method for :func:`collections.namedtuple` "
"now returns an ordered dictionary with the values appearing in the same "
2018-06-28 13:32:56 +00:00
"order as the underlying tuple indices. The :mod:`json` module is being "
2016-10-30 09:46:26 +00:00
"built-out with an *object_pairs_hook* to allow OrderedDicts to be built by "
"the decoder. Support was also added for third-party tools like `PyYAML "
"<https://pyyaml.org/>`_."
2016-10-30 09:46:26 +00:00
msgstr ""
#: whatsnew/3.1.rst:80
2016-10-30 09:46:26 +00:00
msgid ":pep:`372` - Ordered Dictionaries"
msgstr ""
#: whatsnew/3.1.rst:80
2016-10-30 09:46:26 +00:00
msgid ""
"PEP written by Armin Ronacher and Raymond Hettinger. Implementation written "
"by Raymond Hettinger."
msgstr ""
#: whatsnew/3.1.rst:85
2016-10-30 09:46:26 +00:00
msgid "PEP 378: Format Specifier for Thousands Separator"
msgstr ""
#: whatsnew/3.1.rst:87
2016-10-30 09:46:26 +00:00
msgid ""
"The built-in :func:`format` function and the :meth:`str.format` method use a "
"mini-language that now includes a simple, non-locale aware way to format a "
"number with a thousands separator. That provides a way to humanize a "
"program's output, improving its professional appearance and readability::"
msgstr ""
#: whatsnew/3.1.rst:101
2016-10-30 09:46:26 +00:00
msgid ""
"The supported types are :class:`int`, :class:`float`, :class:`complex` and :"
"class:`decimal.Decimal`."
msgstr ""
#: whatsnew/3.1.rst:104
2016-10-30 09:46:26 +00:00
msgid ""
"Discussions are underway about how to specify alternative separators like "
"dots, spaces, apostrophes, or underscores. Locale-aware applications should "
"use the existing *n* format specifier which already has some support for "
"thousands separators."
msgstr ""
#: whatsnew/3.1.rst:112
2016-10-30 09:46:26 +00:00
msgid ":pep:`378` - Format Specifier for Thousands Separator"
msgstr ""
#: whatsnew/3.1.rst:112
2016-10-30 09:46:26 +00:00
msgid ""
"PEP written by Raymond Hettinger and implemented by Eric Smith and Mark "
"Dickinson."
msgstr ""
#: whatsnew/3.1.rst:117
2016-10-30 09:46:26 +00:00
msgid "Other Language Changes"
msgstr ""
#: whatsnew/3.1.rst:119
2016-10-30 09:46:26 +00:00
msgid "Some smaller changes made to the core Python language are:"
msgstr ""
#: whatsnew/3.1.rst:121
2016-10-30 09:46:26 +00:00
msgid ""
"Directories and zip archives containing a :file:`__main__.py` file can now "
"be executed directly by passing their name to the interpreter. The directory/"
"zipfile is automatically inserted as the first entry in sys.path. "
"(Suggestion and initial patch by Andy Chu; revised patch by Phillip J. Eby "
"and Nick Coghlan; :issue:`1739468`.)"
msgstr ""
#: whatsnew/3.1.rst:127
2016-10-30 09:46:26 +00:00
msgid ""
"The :func:`int` type gained a ``bit_length`` method that returns the number "
"of bits necessary to represent its argument in binary::"
msgstr ""
#: whatsnew/3.1.rst:141
2016-10-30 09:46:26 +00:00
msgid ""
"(Contributed by Fredrik Johansson, Victor Stinner, Raymond Hettinger, and "
"Mark Dickinson; :issue:`3439`.)"
msgstr ""
#: whatsnew/3.1.rst:144
2016-10-30 09:46:26 +00:00
msgid ""
"The fields in :func:`format` strings can now be automatically numbered::"
msgstr ""
#: whatsnew/3.1.rst:150
2016-10-30 09:46:26 +00:00
msgid ""
"Formerly, the string would have required numbered fields such as: ``'Sir {0} "
"of {1}'``."
msgstr ""
#: whatsnew/3.1.rst:153
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Eric Smith; :issue:`5237`.)"
msgstr "(Contribution par Eric Smith; :issue:`5237`.)"
#: whatsnew/3.1.rst:155
2016-10-30 09:46:26 +00:00
msgid ""
"The :func:`string.maketrans` function is deprecated and is replaced by new "
"static methods, :meth:`bytes.maketrans` and :meth:`bytearray.maketrans`. "
"This change solves the confusion around which types were supported by the :"
"mod:`string` module. Now, :class:`str`, :class:`bytes`, and :class:"
"`bytearray` each have their own **maketrans** and **translate** methods with "
"intermediate translation tables of the appropriate type."
msgstr ""
#: whatsnew/3.1.rst:162
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Georg Brandl; :issue:`5675`.)"
msgstr "(Contribution par Georg Brandl; :issue:`5675`.)"
#: whatsnew/3.1.rst:164
2016-10-30 09:46:26 +00:00
msgid ""
"The syntax of the :keyword:`with` statement now allows multiple context "
"managers in a single statement::"
msgstr ""
#: whatsnew/3.1.rst:172
2016-10-30 09:46:26 +00:00
msgid ""
"With the new syntax, the :func:`contextlib.nested` function is no longer "
"needed and is now deprecated."
msgstr ""
#: whatsnew/3.1.rst:175
2016-10-30 09:46:26 +00:00
msgid ""
"(Contributed by Georg Brandl and Mattias Brändström; `appspot issue 53094 "
"<https://codereview.appspot.com/53094>`_.)"
msgstr ""
#: whatsnew/3.1.rst:178
2016-10-30 09:46:26 +00:00
msgid ""
"``round(x, n)`` now returns an integer if *x* is an integer. Previously it "
"returned a float::"
msgstr ""
#: whatsnew/3.1.rst:184
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Mark Dickinson; :issue:`4707`.)"
msgstr "(Contribution par Mark Dickinson; :issue:`4707`.)"
#: whatsnew/3.1.rst:186
2016-10-30 09:46:26 +00:00
msgid ""
"Python now uses David Gay's algorithm for finding the shortest floating "
"point representation that doesn't change its value. This should help "
"mitigate some of the confusion surrounding binary floating point numbers."
msgstr ""
#: whatsnew/3.1.rst:191
2016-10-30 09:46:26 +00:00
msgid ""
"The significance is easily seen with a number like ``1.1`` which does not "
"have an exact equivalent in binary floating point. Since there is no exact "
"equivalent, an expression like ``float('1.1')`` evaluates to the nearest "
"representable value which is ``0x1.199999999999ap+0`` in hex or "
"``1.100000000000000088817841970012523233890533447265625`` in decimal. That "
"nearest value was and still is used in subsequent floating point "
"calculations."
msgstr ""
#: whatsnew/3.1.rst:199
2016-10-30 09:46:26 +00:00
msgid ""
"What is new is how the number gets displayed. Formerly, Python used a "
"simple approach. The value of ``repr(1.1)`` was computed as ``format(1.1, "
"'.17g')`` which evaluated to ``'1.1000000000000001'``. The advantage of "
"using 17 digits was that it relied on IEEE-754 guarantees to assure that "
"``eval(repr(1.1))`` would round-trip exactly to its original value. The "
"disadvantage is that many people found the output to be confusing (mistaking "
"intrinsic limitations of binary floating point representation as being a "
"problem with Python itself)."
msgstr ""
#: whatsnew/3.1.rst:208
2016-10-30 09:46:26 +00:00
msgid ""
"The new algorithm for ``repr(1.1)`` is smarter and returns ``'1.1'``. "
"Effectively, it searches all equivalent string representations (ones that "
"get stored with the same underlying float value) and returns the shortest "
"representation."
msgstr ""
#: whatsnew/3.1.rst:213
2016-10-30 09:46:26 +00:00
msgid ""
"The new algorithm tends to emit cleaner representations when possible, but "
"it does not change the underlying values. So, it is still the case that "
"``1.1 + 2.2 != 3.3`` even though the representations may suggest otherwise."
msgstr ""
#: whatsnew/3.1.rst:217
2016-10-30 09:46:26 +00:00
msgid ""
"The new algorithm depends on certain features in the underlying floating "
"point implementation. If the required features are not found, the old "
"algorithm will continue to be used. Also, the text pickle protocols assure "
"cross-platform portability by using the old algorithm."
msgstr ""
#: whatsnew/3.1.rst:222
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Eric Smith and Mark Dickinson; :issue:`1580`)"
msgstr "(Contribution par Eric Smith et Mark Dickinson; :issue:`1580`.)"
#: whatsnew/3.1.rst:225
2016-10-30 09:46:26 +00:00
msgid "New, Improved, and Deprecated Modules"
msgstr ""
#: whatsnew/3.1.rst:227
2016-10-30 09:46:26 +00:00
msgid ""
"Added a :class:`collections.Counter` class to support convenient counting of "
"unique items in a sequence or iterable::"
msgstr ""
#: whatsnew/3.1.rst:233
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Raymond Hettinger; :issue:`1696199`.)"
msgstr "(Contribution par Raymond Hettinger; :issue:`1696199`.)"
#: whatsnew/3.1.rst:235
2016-10-30 09:46:26 +00:00
msgid ""
"Added a new module, :mod:`tkinter.ttk` for access to the Tk themed widget "
"set. The basic idea of ttk is to separate, to the extent possible, the code "
"implementing a widget's behavior from the code implementing its appearance."
msgstr ""
#: whatsnew/3.1.rst:239
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Guilherme Polo; :issue:`2983`.)"
msgstr "(Contribution par Guilherme Polo; :issue:`2983`.)"
#: whatsnew/3.1.rst:241
2016-10-30 09:46:26 +00:00
msgid ""
"The :class:`gzip.GzipFile` and :class:`bz2.BZ2File` classes now support the "
"context management protocol::"
msgstr ""
#: whatsnew/3.1.rst:248
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Antoine Pitrou.)"
msgstr "(Contribution par Antoine Pitrou)"
#: whatsnew/3.1.rst:250
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`decimal` module now supports methods for creating a decimal object "
"from a binary :class:`float`. The conversion is exact but can sometimes be "
"surprising::"
msgstr ""
#: whatsnew/3.1.rst:257
2016-10-30 09:46:26 +00:00
msgid ""
"The long decimal result shows the actual binary fraction being stored for "
"*1.1*. The fraction has many digits because *1.1* cannot be exactly "
"represented in binary."
msgstr ""
#: whatsnew/3.1.rst:261
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Raymond Hettinger and Mark Dickinson.)"
msgstr ""
#: whatsnew/3.1.rst:263
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`itertools` module grew two new functions. The :func:`itertools."
"combinations_with_replacement` function is one of four for generating "
"combinatorics including permutations and Cartesian products. The :func:"
"`itertools.compress` function mimics its namesake from APL. Also, the "
"existing :func:`itertools.count` function now has an optional *step* "
"argument and can accept any type of counting sequence including :class:"
"`fractions.Fraction` and :class:`decimal.Decimal`::"
msgstr ""
#: whatsnew/3.1.rst:282
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Raymond Hettinger.)"
msgstr ""
#: whatsnew/3.1.rst:284
2016-10-30 09:46:26 +00:00
msgid ""
":func:`collections.namedtuple` now supports a keyword argument *rename* "
"which lets invalid fieldnames be automatically converted to positional names "
"in the form _0, _1, etc. This is useful when the field names are being "
"created by an external source such as a CSV header, SQL field list, or user "
"input::"
msgstr ""
#: whatsnew/3.1.rst:301
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Raymond Hettinger; :issue:`1818`.)"
msgstr "(Contribution par Raymond Hettinger; :issue:`1818`.)"
#: whatsnew/3.1.rst:303
2016-10-30 09:46:26 +00:00
msgid ""
"The :func:`re.sub`, :func:`re.subn` and :func:`re.split` functions now "
"accept a flags parameter."
msgstr ""
#: whatsnew/3.1.rst:306
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Gregory Smith.)"
msgstr ""
#: whatsnew/3.1.rst:308
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`logging` module now implements a simple :class:`logging."
"NullHandler` class for applications that are not using logging but are "
"calling library code that does. Setting-up a null handler will suppress "
"spurious warnings such as \"No handlers could be found for logger foo\"::"
msgstr ""
#: whatsnew/3.1.rst:316
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Vinay Sajip; :issue:`4384`)."
msgstr "(Contribution par Vinay Sajip ; :issue:`4384`)."
2016-10-30 09:46:26 +00:00
#: whatsnew/3.1.rst:318
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`runpy` module which supports the ``-m`` command line switch now "
"supports the execution of packages by looking for and executing a "
"``__main__`` submodule when a package name is supplied."
msgstr ""
#: whatsnew/3.1.rst:322
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Andi Vajda; :issue:`4195`.)"
msgstr "(Contribution par Andi Vajda; :issue:`4195`.)"
#: whatsnew/3.1.rst:324
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`pdb` module can now access and display source code loaded via :mod:"
"`zipimport` (or any other conformant :pep:`302` loader)."
msgstr ""
#: whatsnew/3.1.rst:327
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Alexander Belopolsky; :issue:`4201`.)"
msgstr "(Contribution par Alexander Belopolsky; :issue:`4201`.)"
#: whatsnew/3.1.rst:329
2016-10-30 09:46:26 +00:00
msgid ":class:`functools.partial` objects can now be pickled."
msgstr ""
#: whatsnew/3.1.rst:331
2016-10-30 09:46:26 +00:00
msgid ""
"(Suggested by Antoine Pitrou and Jesse Noller. Implemented by Jack "
"Diederich; :issue:`5228`.)"
msgstr ""
#: whatsnew/3.1.rst:334
2016-10-30 09:46:26 +00:00
msgid ""
"Add :mod:`pydoc` help topics for symbols so that ``help('@')`` works as "
"expected in the interactive environment."
msgstr ""
#: whatsnew/3.1.rst:337
2016-10-30 09:46:26 +00:00
msgid "(Contributed by David Laban; :issue:`4739`.)"
msgstr "(Contribution par David Laban; :issue:`4739`.)"
#: whatsnew/3.1.rst:339
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`unittest` module now supports skipping individual tests or classes "
"of tests. And it supports marking a test as an expected failure, a test that "
"is known to be broken, but shouldn't be counted as a failure on a "
"TestResult::"
msgstr ""
#: whatsnew/3.1.rst:354
2016-10-30 09:46:26 +00:00
msgid ""
"Also, tests for exceptions have been builtout to work with context managers "
"using the :keyword:`with` statement::"
msgstr ""
#: whatsnew/3.1.rst:361
2016-10-30 09:46:26 +00:00
msgid ""
"In addition, several new assertion methods were added including :func:"
"`assertSetEqual`, :func:`assertDictEqual`, :func:"
"`assertDictContainsSubset`, :func:`assertListEqual`, :func:"
"`assertTupleEqual`, :func:`assertSequenceEqual`, :func:"
"`assertRaisesRegexp`, :func:`assertIsNone`, and :func:`assertIsNotNone`."
msgstr ""
#: whatsnew/3.1.rst:368
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Benjamin Peterson and Antoine Pitrou.)"
msgstr "(Contribution par Benjamin Peterson et Antoine Pitrou)"
#: whatsnew/3.1.rst:370
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`io` module has three new constants for the :meth:`seek` method :"
"data:`SEEK_SET`, :data:`SEEK_CUR`, and :data:`SEEK_END`."
msgstr ""
#: whatsnew/3.1.rst:373
2016-10-30 09:46:26 +00:00
msgid "The :attr:`sys.version_info` tuple is now a named tuple::"
msgstr ""
#: whatsnew/3.1.rst:378
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Ross Light; :issue:`4285`.)"
msgstr "(Contribution par Ross Ligh; :issue:`4285`.)"
#: whatsnew/3.1.rst:380
2016-10-30 09:46:26 +00:00
msgid "The :mod:`nntplib` and :mod:`imaplib` modules now support IPv6."
msgstr ""
#: whatsnew/3.1.rst:382
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Derek Morr; :issue:`1655` and :issue:`1664`.)"
msgstr "(Contribution par Derek Morr; :issue:`1655` et :issue:`1664`)"
#: whatsnew/3.1.rst:384
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`pickle` module has been adapted for better interoperability with "
"Python 2.x when used with protocol 2 or lower. The reorganization of the "
"standard library changed the formal reference for many objects. For "
"example, ``__builtin__.set`` in Python 2 is called ``builtins.set`` in "
"Python 3. This change confounded efforts to share data between different "
"versions of Python. But now when protocol 2 or lower is selected, the "
"pickler will automatically use the old Python 2 names for both loading and "
"dumping. This remapping is turned-on by default but can be disabled with the "
"*fix_imports* option::"
msgstr ""
#: whatsnew/3.1.rst:400
2016-10-30 09:46:26 +00:00
msgid ""
"An unfortunate but unavoidable side-effect of this change is that protocol 2 "
"pickles produced by Python 3.1 won't be readable with Python 3.0. The latest "
"pickle protocol, protocol 3, should be used when migrating data between "
"Python 3.x implementations, as it doesn't attempt to remain compatible with "
"Python 2.x."
msgstr ""
#: whatsnew/3.1.rst:406
2016-10-30 09:46:26 +00:00
msgid ""
"(Contributed by Alexandre Vassalotti and Antoine Pitrou, :issue:`6137`.)"
msgstr ""
"(Contribution par Alexandre Vassalotti et Antoine Pitrou; :issue:`6137`.)"
#: whatsnew/3.1.rst:408
2016-10-30 09:46:26 +00:00
msgid ""
"A new module, :mod:`importlib` was added. It provides a complete, portable, "
"pure Python reference implementation of the :keyword:`import` statement and "
"its counterpart, the :func:`__import__` function. It represents a "
"substantial step forward in documenting and defining the actions that take "
"place during imports."
msgstr ""
#: whatsnew/3.1.rst:414
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Brett Cannon.)"
msgstr ""
#: whatsnew/3.1.rst:417
2020-02-14 10:18:53 +00:00
#, fuzzy
2016-10-30 09:46:26 +00:00
msgid "Optimizations"
2020-02-14 10:18:53 +00:00
msgstr "Optimisation"
2016-10-30 09:46:26 +00:00
#: whatsnew/3.1.rst:419
2016-10-30 09:46:26 +00:00
msgid "Major performance enhancements have been added:"
msgstr ""
#: whatsnew/3.1.rst:421
2016-10-30 09:46:26 +00:00
msgid ""
"The new I/O library (as defined in :pep:`3116`) was mostly written in Python "
"and quickly proved to be a problematic bottleneck in Python 3.0. In Python "
"3.1, the I/O library has been entirely rewritten in C and is 2 to 20 times "
"faster depending on the task at hand. The pure Python version is still "
"available for experimentation purposes through the ``_pyio`` module."
msgstr ""
#: whatsnew/3.1.rst:428
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Amaury Forgeot d'Arc and Antoine Pitrou.)"
msgstr "(Contribution par Amaury Forgeot d'Arc et Antoine Pitrou)"
2016-10-30 09:46:26 +00:00
#: whatsnew/3.1.rst:430
2016-10-30 09:46:26 +00:00
msgid ""
"Added a heuristic so that tuples and dicts containing only untrackable "
"objects are not tracked by the garbage collector. This can reduce the size "
"of collections and therefore the garbage collection overhead on long-running "
"programs, depending on their particular use of datatypes."
msgstr ""
#: whatsnew/3.1.rst:435
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Antoine Pitrou, :issue:`4688`.)"
msgstr "(Contribution par Antoine Pitrou; :issue:`4688`.)"
#: whatsnew/3.1.rst:437
2016-10-30 09:46:26 +00:00
msgid ""
"Enabling a configure option named ``--with-computed-gotos`` on compilers "
"that support it (notably: gcc, SunPro, icc), the bytecode evaluation loop is "
"compiled with a new dispatch mechanism which gives speedups of up to 20%, "
"depending on the system, the compiler, and the benchmark."
msgstr ""
#: whatsnew/3.1.rst:443
2016-10-30 09:46:26 +00:00
msgid ""
"(Contributed by Antoine Pitrou along with a number of other participants, :"
"issue:`4753`)."
msgstr ""
"(Contribution par Antoine Pitrou ainsi quun certain nombre dautres "
"participants ; :issue:`4753`)."
2016-10-30 09:46:26 +00:00
#: whatsnew/3.1.rst:446
2016-10-30 09:46:26 +00:00
msgid ""
"The decoding of UTF-8, UTF-16 and LATIN-1 is now two to four times faster."
msgstr ""
#: whatsnew/3.1.rst:449
2016-10-30 09:46:26 +00:00
msgid ""
"(Contributed by Antoine Pitrou and Amaury Forgeot d'Arc, :issue:`4868`.)"
msgstr ""
"(Contribution par Antoine Pitrou et Amaury Forgeot d'Arc; :issue:`4868`.)"
#: whatsnew/3.1.rst:451
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`json` module now has a C extension to substantially improve its "
"performance. In addition, the API was modified so that json works only "
"with :class:`str`, not with :class:`bytes`. That change makes the module "
"closely match the `JSON specification <https://json.org/>`_ which is defined "
2016-10-30 09:46:26 +00:00
"in terms of Unicode."
msgstr ""
#: whatsnew/3.1.rst:457
2016-10-30 09:46:26 +00:00
msgid ""
"(Contributed by Bob Ippolito and converted to Py3.1 by Antoine Pitrou and "
"Benjamin Peterson; :issue:`4136`.)"
msgstr ""
#: whatsnew/3.1.rst:460
2016-10-30 09:46:26 +00:00
msgid ""
"Unpickling now interns the attribute names of pickled objects. This saves "
"memory and allows pickles to be smaller."
msgstr ""
#: whatsnew/3.1.rst:463
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Jake McGuire and Antoine Pitrou; :issue:`5084`.)"
msgstr "(Contribution par Jake McGuire et Antoine Pitrou; :issue:`5084`.)"
#: whatsnew/3.1.rst:466
2016-10-30 09:46:26 +00:00
msgid "IDLE"
msgstr "IDLE"
#: whatsnew/3.1.rst:468
2016-10-30 09:46:26 +00:00
msgid ""
"IDLE's format menu now provides an option to strip trailing whitespace from "
"a source file."
msgstr ""
#: whatsnew/3.1.rst:471
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Roger D. Serwy; :issue:`5150`.)"
msgstr "(Contribution par Roger D. Serwy; :issue:`5150`.)"
#: whatsnew/3.1.rst:474
2016-10-30 09:46:26 +00:00
msgid "Build and C API Changes"
msgstr ""
#: whatsnew/3.1.rst:476
2016-10-30 09:46:26 +00:00
msgid "Changes to Python's build process and to the C API include:"
msgstr ""
#: whatsnew/3.1.rst:478
2016-10-30 09:46:26 +00:00
msgid ""
"Integers are now stored internally either in base ``2**15`` or in base "
"``2**30``, the base being determined at build time. Previously, they were "
"always stored in base ``2**15``. Using base ``2**30`` gives significant "
"performance improvements on 64-bit machines, but benchmark results on 32-bit "
"machines have been mixed. Therefore, the default is to use base ``2**30`` "
"on 64-bit machines and base ``2**15`` on 32-bit machines; on Unix, there's a "
"new configure option ``--enable-big-digits`` that can be used to override "
"this default."
2016-10-30 09:46:26 +00:00
msgstr ""
#: whatsnew/3.1.rst:487
2016-10-30 09:46:26 +00:00
msgid ""
"Apart from the performance improvements this change should be invisible to "
"end users, with one exception: for testing and debugging purposes there's a "
"new :attr:`sys.int_info` that provides information about the internal "
"format, giving the number of bits per digit and the size in bytes of the C "
"type used to store each digit::"
msgstr ""
#: whatsnew/3.1.rst:497
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Mark Dickinson; :issue:`4258`.)"
msgstr "(Contribution par Mark Dickinson; :issue:`4258`.)"
#: whatsnew/3.1.rst:499
2016-10-30 09:46:26 +00:00
msgid ""
"The :c:func:`PyLong_AsUnsignedLongLong()` function now handles a negative "
"*pylong* by raising :exc:`OverflowError` instead of :exc:`TypeError`."
msgstr ""
#: whatsnew/3.1.rst:502
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Mark Dickinson and Lisandro Dalcrin; :issue:`5175`.)"
msgstr "(Contribution par Mark Dickinson et Lisandro Dalcrin; :issue:`5175`)"
#: whatsnew/3.1.rst:504
2016-10-30 09:46:26 +00:00
msgid ""
"Deprecated :c:func:`PyNumber_Int`. Use :c:func:`PyNumber_Long` instead."
msgstr ""
#: whatsnew/3.1.rst:506
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Mark Dickinson; :issue:`4910`.)"
msgstr "(Contribution par Mark Dickinson; :issue:`4910`)"
#: whatsnew/3.1.rst:508
2016-10-30 09:46:26 +00:00
msgid ""
"Added a new :c:func:`PyOS_string_to_double` function to replace the "
"deprecated functions :c:func:`PyOS_ascii_strtod` and :c:func:"
"`PyOS_ascii_atof`."
msgstr ""
#: whatsnew/3.1.rst:511
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Mark Dickinson; :issue:`5914`.)"
msgstr "(Contribution par Mark Dickinson; :issue:`5914`)"
#: whatsnew/3.1.rst:513
2016-10-30 09:46:26 +00:00
msgid ""
"Added :c:type:`PyCapsule` as a replacement for the :c:type:`PyCObject` API. "
"The principal difference is that the new type has a well defined interface "
"for passing typing safety information and a less complicated signature for "
"calling a destructor. The old type had a problematic API and is now "
"deprecated."
msgstr ""
#: whatsnew/3.1.rst:519
2016-10-30 09:46:26 +00:00
msgid "(Contributed by Larry Hastings; :issue:`5630`.)"
msgstr "(Contribution par Larry Hastings; :issue:`5630`)"
#: whatsnew/3.1.rst:522
2016-10-30 09:46:26 +00:00
msgid "Porting to Python 3.1"
msgstr "Portage vers Python 3.1"
#: whatsnew/3.1.rst:524
2016-10-30 09:46:26 +00:00
msgid ""
"This section lists previously described changes and other bugfixes that may "
"require changes to your code:"
msgstr ""
#: whatsnew/3.1.rst:527
2016-10-30 09:46:26 +00:00
msgid ""
"The new floating point string representations can break existing doctests. "
"For example::"
msgstr ""
#: whatsnew/3.1.rst:550
2016-10-30 09:46:26 +00:00
msgid ""
"The automatic name remapping in the pickle module for protocol 2 or lower "
"can make Python 3.1 pickles unreadable in Python 3.0. One solution is to "
"use protocol 3. Another solution is to set the *fix_imports* option to "
"``False``. See the discussion above for more details."
msgstr ""