1
0
Fork 0

merge pot files.

This commit is contained in:
Julien Palard 2017-09-12 13:40:22 +02:00
parent 787ef97f29
commit 6839802243
21 changed files with 19763 additions and 21928 deletions

View File

@ -681,19 +681,30 @@ msgid ""
"has dropped to zero and its value hasn't been set to *NULL*."
msgstr ""
#: ../Doc/extending/newtypes.rst:767
#: ../Doc/extending/newtypes.rst:761
msgid ""
"Python provides a :c:func:`Py_CLEAR` that automates the careful decrementing "
"of reference counts. With :c:func:`Py_CLEAR`, the :c:func:`Noddy_clear` "
"function can be simplified::"
msgstr ""
#: ../Doc/extending/newtypes.rst:779
#: ../Doc/extending/newtypes.rst:773
msgid ""
"Note that :c:func:`Noddy_dealloc` may call arbitrary functions through "
"``__del__`` method or weakref callback. It means circular GC can be "
"triggered inside the function. Since GC assumes reference count is not "
"zero, we need to untrack the object from GC by calling :c:func:"
"`PyObject_GC_UnTrack` before clearing members. Here is reimplemented "
"deallocator which uses :c:func:`PyObject_GC_UnTrack` and :c:func:"
"`Noddy_clear`."
msgstr ""
#: ../Doc/extending/newtypes.rst:790
msgid ""
"Finally, we add the :const:`Py_TPFLAGS_HAVE_GC` flag to the class flags::"
msgstr ""
#: ../Doc/extending/newtypes.rst:783
#: ../Doc/extending/newtypes.rst:794
msgid ""
"That's pretty much it. If we had written custom :c:member:`~PyTypeObject."
"tp_alloc` or :c:member:`~PyTypeObject.tp_free` slots, we'd need to modify "
@ -701,11 +712,11 @@ msgid ""
"automatically provided."
msgstr ""
#: ../Doc/extending/newtypes.rst:789
#: ../Doc/extending/newtypes.rst:800
msgid "Subclassing other types"
msgstr ""
#: ../Doc/extending/newtypes.rst:791
#: ../Doc/extending/newtypes.rst:802
msgid ""
"It is possible to create new extension types that are derived from existing "
"types. It is easiest to inherit from the built in types, since an extension "
@ -713,7 +724,7 @@ msgid ""
"share these :class:`PyTypeObject` structures between extension modules."
msgstr ""
#: ../Doc/extending/newtypes.rst:796
#: ../Doc/extending/newtypes.rst:807
msgid ""
"In this example we will create a :class:`Shoddy` type that inherits from the "
"built-in :class:`list` type. The new type will be completely compatible with "
@ -721,33 +732,33 @@ msgid ""
"increases an internal counter. ::"
msgstr ""
#: ../Doc/extending/newtypes.rst:814
#: ../Doc/extending/newtypes.rst:825
msgid ""
"As you can see, the source code closely resembles the :class:`Noddy` "
"examples in previous sections. We will break down the main differences "
"between them. ::"
msgstr ""
#: ../Doc/extending/newtypes.rst:822
#: ../Doc/extending/newtypes.rst:833
msgid ""
"The primary difference for derived type objects is that the base type's "
"object structure must be the first value. The base type will already include "
"the :c:func:`PyObject_HEAD` at the beginning of its structure."
msgstr ""
#: ../Doc/extending/newtypes.rst:826
#: ../Doc/extending/newtypes.rst:837
msgid ""
"When a Python object is a :class:`Shoddy` instance, its *PyObject\\** "
"pointer can be safely cast to both *PyListObject\\** and *Shoddy\\**. ::"
msgstr ""
#: ../Doc/extending/newtypes.rst:838
#: ../Doc/extending/newtypes.rst:849
msgid ""
"In the :attr:`__init__` method for our type, we can see how to call through "
"to the :attr:`__init__` method of the base type."
msgstr ""
#: ../Doc/extending/newtypes.rst:841
#: ../Doc/extending/newtypes.rst:852
msgid ""
"This pattern is important when writing a type with custom :attr:`new` and :"
"attr:`dealloc` methods. The :attr:`new` method should not actually create "
@ -756,7 +767,7 @@ msgid ""
"tp_new`."
msgstr ""
#: ../Doc/extending/newtypes.rst:846
#: ../Doc/extending/newtypes.rst:857
msgid ""
"When filling out the :c:func:`PyTypeObject` for the :class:`Shoddy` type, "
"you see a slot for :c:func:`tp_base`. Due to cross platform compiler issues, "
@ -764,7 +775,7 @@ msgid ""
"done later in the module's :c:func:`init` function. ::"
msgstr ""
#: ../Doc/extending/newtypes.rst:869
#: ../Doc/extending/newtypes.rst:880
msgid ""
"Before calling :c:func:`PyType_Ready`, the type structure must have the :c:"
"member:`~PyTypeObject.tp_base` slot filled in. When we are deriving a new "
@ -773,36 +784,36 @@ msgid ""
"type will be inherited."
msgstr ""
#: ../Doc/extending/newtypes.rst:874
#: ../Doc/extending/newtypes.rst:885
msgid ""
"After that, calling :c:func:`PyType_Ready` and adding the type object to the "
"module is the same as with the basic :class:`Noddy` examples."
msgstr ""
#: ../Doc/extending/newtypes.rst:881
#: ../Doc/extending/newtypes.rst:892
msgid "Type Methods"
msgstr ""
#: ../Doc/extending/newtypes.rst:883
#: ../Doc/extending/newtypes.rst:894
msgid ""
"This section aims to give a quick fly-by on the various type methods you can "
"implement and what they do."
msgstr ""
#: ../Doc/extending/newtypes.rst:886
#: ../Doc/extending/newtypes.rst:897
msgid ""
"Here is the definition of :c:type:`PyTypeObject`, with some fields only used "
"in debug builds omitted:"
msgstr ""
#: ../Doc/extending/newtypes.rst:892
#: ../Doc/extending/newtypes.rst:903
msgid ""
"Now that's a *lot* of methods. Don't worry too much though - if you have a "
"type you want to define, the chances are very good that you will only "
"implement a handful of these."
msgstr ""
#: ../Doc/extending/newtypes.rst:896
#: ../Doc/extending/newtypes.rst:907
msgid ""
"As you probably expect by now, we're going to go over this and give more "
"information about the various handlers. We won't go in the order they are "
@ -813,14 +824,14 @@ msgid ""
"then change the values to suit your new type. ::"
msgstr ""
#: ../Doc/extending/newtypes.rst:906
#: ../Doc/extending/newtypes.rst:917
msgid ""
"The name of the type - as mentioned in the last section, this will appear in "
"various places, almost entirely for diagnostic purposes. Try to choose "
"something that will be helpful in such a situation! ::"
msgstr ""
#: ../Doc/extending/newtypes.rst:912
#: ../Doc/extending/newtypes.rst:923
msgid ""
"These fields tell the runtime how much memory to allocate when new objects "
"of this type are created. Python has some built-in support for variable "
@ -829,23 +840,23 @@ msgid ""
"later. ::"
msgstr ""
#: ../Doc/extending/newtypes.rst:919
#: ../Doc/extending/newtypes.rst:930
msgid ""
"Here you can put a string (or its address) that you want returned when the "
"Python script references ``obj.__doc__`` to retrieve the doc string."
msgstr ""
#: ../Doc/extending/newtypes.rst:922
#: ../Doc/extending/newtypes.rst:933
msgid ""
"Now we come to the basic type methods---the ones most extension types will "
"implement."
msgstr ""
#: ../Doc/extending/newtypes.rst:927
#: ../Doc/extending/newtypes.rst:938
msgid "Finalization and De-allocation"
msgstr ""
#: ../Doc/extending/newtypes.rst:939
#: ../Doc/extending/newtypes.rst:950
msgid ""
"This function is called when the reference count of the instance of your "
"type is reduced to zero and the Python interpreter wants to reclaim it. If "
@ -854,7 +865,7 @@ msgid ""
"of this function::"
msgstr ""
#: ../Doc/extending/newtypes.rst:956
#: ../Doc/extending/newtypes.rst:967
msgid ""
"One important requirement of the deallocator function is that it leaves any "
"pending exceptions alone. This is important since deallocators are "
@ -869,7 +880,7 @@ msgid ""
"c:func:`PyErr_Fetch` and :c:func:`PyErr_Restore` functions::"
msgstr ""
#: ../Doc/extending/newtypes.rst:995
#: ../Doc/extending/newtypes.rst:1006
msgid ""
"There are limitations to what you can safely do in a deallocator function. "
"First, if your type supports garbage collection (using :c:member:"
@ -882,43 +893,43 @@ msgid ""
"tp_dealloc` again, causing a double free and a crash."
msgstr ""
#: ../Doc/extending/newtypes.rst:1004
#: ../Doc/extending/newtypes.rst:1015
msgid ""
"Starting with Python 3.4, it is recommended not to put any complex "
"finalization code in :c:member:`~PyTypeObject.tp_dealloc`, and instead use "
"the new :c:member:`~PyTypeObject.tp_finalize` type method."
msgstr ""
#: ../Doc/extending/newtypes.rst:1009
#: ../Doc/extending/newtypes.rst:1020
msgid ":pep:`442` explains the new finalization scheme."
msgstr ""
#: ../Doc/extending/newtypes.rst:1016
#: ../Doc/extending/newtypes.rst:1027
msgid "Object Presentation"
msgstr ""
#: ../Doc/extending/newtypes.rst:1018
#: ../Doc/extending/newtypes.rst:1029
msgid ""
"In Python, there are two ways to generate a textual representation of an "
"object: the :func:`repr` function, and the :func:`str` function. (The :func:"
"`print` function just calls :func:`str`.) These handlers are both optional."
msgstr ""
#: ../Doc/extending/newtypes.rst:1027
#: ../Doc/extending/newtypes.rst:1038
msgid ""
"The :c:member:`~PyTypeObject.tp_repr` handler should return a string object "
"containing a representation of the instance for which it is called. Here is "
"a simple example::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1038
#: ../Doc/extending/newtypes.rst:1049
msgid ""
"If no :c:member:`~PyTypeObject.tp_repr` handler is specified, the "
"interpreter will supply a representation that uses the type's :c:member:"
"`~PyTypeObject.tp_name` and a uniquely-identifying value for the object."
msgstr ""
#: ../Doc/extending/newtypes.rst:1042
#: ../Doc/extending/newtypes.rst:1053
msgid ""
"The :c:member:`~PyTypeObject.tp_str` handler is to :func:`str` what the :c:"
"member:`~PyTypeObject.tp_repr` handler described above is to :func:`repr`; "
@ -929,15 +940,15 @@ msgid ""
"the :c:member:`~PyTypeObject.tp_repr` handler is used instead."
msgstr ""
#: ../Doc/extending/newtypes.rst:1049
#: ../Doc/extending/newtypes.rst:1060
msgid "Here is a simple example::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1061
#: ../Doc/extending/newtypes.rst:1072
msgid "Attribute Management"
msgstr ""
#: ../Doc/extending/newtypes.rst:1063
#: ../Doc/extending/newtypes.rst:1074
msgid ""
"For every object which can support attributes, the corresponding type must "
"provide the functions that control how the attributes are resolved. There "
@ -947,7 +958,7 @@ msgid ""
"handler is *NULL*."
msgstr ""
#: ../Doc/extending/newtypes.rst:1069
#: ../Doc/extending/newtypes.rst:1080
msgid ""
"Python supports two pairs of attribute handlers; a type that supports "
"attributes only needs to implement the functions for one pair. The "
@ -956,7 +967,7 @@ msgid ""
"use whichever pair makes more sense for the implementation's convenience. ::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1081
#: ../Doc/extending/newtypes.rst:1092
msgid ""
"If accessing attributes of an object is always a simple operation (this will "
"be explained shortly), there are generic implementations which can be used "
@ -967,35 +978,35 @@ msgid ""
"mechanism that is available."
msgstr ""
#: ../Doc/extending/newtypes.rst:1092
#: ../Doc/extending/newtypes.rst:1103
msgid "Generic Attribute Management"
msgstr ""
#: ../Doc/extending/newtypes.rst:1094
#: ../Doc/extending/newtypes.rst:1105
msgid ""
"Most extension types only use *simple* attributes. So, what makes the "
"attributes simple? There are only a couple of conditions that must be met:"
msgstr ""
#: ../Doc/extending/newtypes.rst:1097
#: ../Doc/extending/newtypes.rst:1108
msgid ""
"The name of the attributes must be known when :c:func:`PyType_Ready` is "
"called."
msgstr ""
#: ../Doc/extending/newtypes.rst:1100
#: ../Doc/extending/newtypes.rst:1111
msgid ""
"No special processing is needed to record that an attribute was looked up or "
"set, nor do actions need to be taken based on the value."
msgstr ""
#: ../Doc/extending/newtypes.rst:1103
#: ../Doc/extending/newtypes.rst:1114
msgid ""
"Note that this list does not place any restrictions on the values of the "
"attributes, when the values are computed, or how relevant data is stored."
msgstr ""
#: ../Doc/extending/newtypes.rst:1106
#: ../Doc/extending/newtypes.rst:1117
msgid ""
"When :c:func:`PyType_Ready` is called, it uses three tables referenced by "
"the type object to create :term:`descriptor`\\s which are placed in the "
@ -1007,18 +1018,18 @@ msgid ""
"*NULL* as well, allowing the base type to handle attributes."
msgstr ""
#: ../Doc/extending/newtypes.rst:1114
#: ../Doc/extending/newtypes.rst:1125
msgid "The tables are declared as three fields of the type object::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1120
#: ../Doc/extending/newtypes.rst:1131
msgid ""
"If :c:member:`~PyTypeObject.tp_methods` is not *NULL*, it must refer to an "
"array of :c:type:`PyMethodDef` structures. Each entry in the table is an "
"instance of this structure::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1131
#: ../Doc/extending/newtypes.rst:1142
msgid ""
"One entry should be defined for each method provided by the type; no entries "
"are needed for methods inherited from a base type. One additional entry is "
@ -1026,7 +1037,7 @@ msgid ""
"attr:`ml_name` field of the sentinel must be *NULL*."
msgstr ""
#: ../Doc/extending/newtypes.rst:1136
#: ../Doc/extending/newtypes.rst:1147
msgid ""
"The second table is used to define attributes which map directly to data "
"stored in the instance. A variety of primitive C types are supported, and "
@ -1034,7 +1045,7 @@ msgid ""
"defined as::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1148
#: ../Doc/extending/newtypes.rst:1159
msgid ""
"For each entry in the table, a :term:`descriptor` will be constructed and "
"added to the type which will be able to extract a value from the instance "
@ -1045,53 +1056,53 @@ msgid ""
"accessed."
msgstr ""
#: ../Doc/extending/newtypes.rst:1155
#: ../Doc/extending/newtypes.rst:1166
msgid ""
"The following flag constants are defined in :file:`structmember.h`; they may "
"be combined using bitwise-OR."
msgstr ""
#: ../Doc/extending/newtypes.rst:1159
#: ../Doc/extending/newtypes.rst:1170
msgid "Constant"
msgstr ""
#: ../Doc/extending/newtypes.rst:1159
#: ../Doc/extending/newtypes.rst:1170
msgid "Meaning"
msgstr "Signification"
#: ../Doc/extending/newtypes.rst:1161
#: ../Doc/extending/newtypes.rst:1172
msgid ":const:`READONLY`"
msgstr ""
#: ../Doc/extending/newtypes.rst:1161
#: ../Doc/extending/newtypes.rst:1172
msgid "Never writable."
msgstr ""
#: ../Doc/extending/newtypes.rst:1163
#: ../Doc/extending/newtypes.rst:1174
msgid ":const:`READ_RESTRICTED`"
msgstr ""
#: ../Doc/extending/newtypes.rst:1163
#: ../Doc/extending/newtypes.rst:1174
msgid "Not readable in restricted mode."
msgstr ""
#: ../Doc/extending/newtypes.rst:1165
#: ../Doc/extending/newtypes.rst:1176
msgid ":const:`WRITE_RESTRICTED`"
msgstr ""
#: ../Doc/extending/newtypes.rst:1165
#: ../Doc/extending/newtypes.rst:1176
msgid "Not writable in restricted mode."
msgstr ""
#: ../Doc/extending/newtypes.rst:1167
#: ../Doc/extending/newtypes.rst:1178
msgid ":const:`RESTRICTED`"
msgstr ""
#: ../Doc/extending/newtypes.rst:1167
#: ../Doc/extending/newtypes.rst:1178
msgid "Not readable or writable in restricted mode."
msgstr ""
#: ../Doc/extending/newtypes.rst:1176
#: ../Doc/extending/newtypes.rst:1187
msgid ""
"An interesting advantage of using the :c:member:`~PyTypeObject.tp_members` "
"table to build descriptors that are used at runtime is that any attribute "
@ -1101,17 +1112,17 @@ msgid ""
"`__doc__` attribute."
msgstr ""
#: ../Doc/extending/newtypes.rst:1182
#: ../Doc/extending/newtypes.rst:1193
msgid ""
"As with the :c:member:`~PyTypeObject.tp_methods` table, a sentinel entry "
"with a :attr:`name` value of *NULL* is required."
msgstr ""
#: ../Doc/extending/newtypes.rst:1196
#: ../Doc/extending/newtypes.rst:1207
msgid "Type-specific Attribute Management"
msgstr ""
#: ../Doc/extending/newtypes.rst:1198
#: ../Doc/extending/newtypes.rst:1209
msgid ""
"For simplicity, only the :c:type:`char\\*` version will be demonstrated "
"here; the type of the name parameter is the only difference between the :c:"
@ -1122,18 +1133,18 @@ msgid ""
"functionality, you'll understand what needs to be done."
msgstr ""
#: ../Doc/extending/newtypes.rst:1206
#: ../Doc/extending/newtypes.rst:1217
msgid ""
"The :c:member:`~PyTypeObject.tp_getattr` handler is called when the object "
"requires an attribute look-up. It is called in the same situations where "
"the :meth:`__getattr__` method of a class would be called."
msgstr ""
#: ../Doc/extending/newtypes.rst:1210
#: ../Doc/extending/newtypes.rst:1221
msgid "Here is an example::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1226
#: ../Doc/extending/newtypes.rst:1237
msgid ""
"The :c:member:`~PyTypeObject.tp_setattr` handler is called when the :meth:"
"`__setattr__` or :meth:`__delattr__` method of a class instance would be "
@ -1143,11 +1154,11 @@ msgid ""
"should be set to *NULL*. ::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1240
#: ../Doc/extending/newtypes.rst:1251
msgid "Object Comparison"
msgstr ""
#: ../Doc/extending/newtypes.rst:1246
#: ../Doc/extending/newtypes.rst:1257
msgid ""
"The :c:member:`~PyTypeObject.tp_richcompare` handler is called when "
"comparisons are needed. It is analogous to the :ref:`rich comparison "
@ -1155,7 +1166,7 @@ msgid ""
"`PyObject_RichCompare` and :c:func:`PyObject_RichCompareBool`."
msgstr ""
#: ../Doc/extending/newtypes.rst:1251
#: ../Doc/extending/newtypes.rst:1262
msgid ""
"This function is called with two Python objects and the operator as "
"arguments, where the operator is one of ``Py_EQ``, ``Py_NE``, ``Py_LE``, "
@ -1166,23 +1177,23 @@ msgid ""
"should be tried, or *NULL* if an exception was set."
msgstr ""
#: ../Doc/extending/newtypes.rst:1259
#: ../Doc/extending/newtypes.rst:1270
msgid ""
"Here is a sample implementation, for a datatype that is considered equal if "
"the size of an internal pointer is equal::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1289
#: ../Doc/extending/newtypes.rst:1300
msgid "Abstract Protocol Support"
msgstr ""
#: ../Doc/extending/newtypes.rst:1291
#: ../Doc/extending/newtypes.rst:1302
msgid ""
"Python supports a variety of *abstract* 'protocols;' the specific interfaces "
"provided to use these interfaces are documented in :ref:`abstract`."
msgstr ""
#: ../Doc/extending/newtypes.rst:1295
#: ../Doc/extending/newtypes.rst:1306
msgid ""
"A number of these abstract interfaces were defined early in the development "
"of the Python implementation. In particular, the number, mapping, and "
@ -1197,7 +1208,7 @@ msgid ""
"slot, but a slot may still be unfilled.) ::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1310
#: ../Doc/extending/newtypes.rst:1321
msgid ""
"If you wish your object to be able to act like a number, a sequence, or a "
"mapping object, then you place the address of a structure that implements "
@ -1208,13 +1219,13 @@ msgid ""
"distribution. ::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1319
#: ../Doc/extending/newtypes.rst:1330
msgid ""
"This function, if you choose to provide it, should return a hash number for "
"an instance of your data type. Here is a moderately pointless example::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1335
#: ../Doc/extending/newtypes.rst:1346
msgid ""
"This function is called when an instance of your data type is \"called\", "
"for example, if ``obj1`` is an instance of your data type and the Python "
@ -1222,23 +1233,23 @@ msgid ""
"handler is invoked."
msgstr ""
#: ../Doc/extending/newtypes.rst:1339
#: ../Doc/extending/newtypes.rst:1350
msgid "This function takes three arguments:"
msgstr ""
#: ../Doc/extending/newtypes.rst:1341
#: ../Doc/extending/newtypes.rst:1352
msgid ""
"*arg1* is the instance of the data type which is the subject of the call. If "
"the call is ``obj1('hello')``, then *arg1* is ``obj1``."
msgstr ""
#: ../Doc/extending/newtypes.rst:1344
#: ../Doc/extending/newtypes.rst:1355
msgid ""
"*arg2* is a tuple containing the arguments to the call. You can use :c:func:"
"`PyArg_ParseTuple` to extract the arguments."
msgstr ""
#: ../Doc/extending/newtypes.rst:1347
#: ../Doc/extending/newtypes.rst:1358
msgid ""
"*arg3* is a dictionary of keyword arguments that were passed. If this is non-"
"*NULL* and you support keyword arguments, use :c:func:"
@ -1247,12 +1258,12 @@ msgid ""
"`TypeError` with a message saying that keyword arguments are not supported."
msgstr ""
#: ../Doc/extending/newtypes.rst:1353
#: ../Doc/extending/newtypes.rst:1364
msgid ""
"Here is a desultory example of the implementation of the call function. ::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1384
#: ../Doc/extending/newtypes.rst:1395
msgid ""
"These functions provide support for the iterator protocol. Any object which "
"wishes to support iteration over its contents (which may be generated during "
@ -1263,7 +1274,7 @@ msgid ""
"the case of an error, they should set an exception and return *NULL*."
msgstr ""
#: ../Doc/extending/newtypes.rst:1392
#: ../Doc/extending/newtypes.rst:1403
msgid ""
"For an object which represents an iterable collection, the ``tp_iter`` "
"handler must return an iterator object. The iterator object is responsible "
@ -1276,7 +1287,7 @@ msgid ""
"objects are an example of such an iterator."
msgstr ""
#: ../Doc/extending/newtypes.rst:1402
#: ../Doc/extending/newtypes.rst:1413
msgid ""
"Iterator objects should implement both handlers. The ``tp_iter`` handler "
"should return a new reference to the iterator (this is the same as the "
@ -1289,11 +1300,11 @@ msgid ""
"return *NULL*."
msgstr ""
#: ../Doc/extending/newtypes.rst:1415
#: ../Doc/extending/newtypes.rst:1426
msgid "Weak Reference Support"
msgstr ""
#: ../Doc/extending/newtypes.rst:1417
#: ../Doc/extending/newtypes.rst:1428
msgid ""
"One of the goals of Python's weak-reference implementation is to allow any "
"type to participate in the weak reference mechanism without incurring the "
@ -1301,7 +1312,7 @@ msgid ""
"numbers)."
msgstr ""
#: ../Doc/extending/newtypes.rst:1421
#: ../Doc/extending/newtypes.rst:1432
msgid ""
"For an object to be weakly referencable, the extension must include a :c:"
"type:`PyObject\\*` field in the instance structure for the use of the weak "
@ -1312,28 +1323,28 @@ msgid ""
"structure::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1435
#: ../Doc/extending/newtypes.rst:1446
msgid "The statically-declared type object for instances is defined this way::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1452
#: ../Doc/extending/newtypes.rst:1463
msgid ""
"The type constructor is responsible for initializing the weak reference list "
"to *NULL*::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1464
#: ../Doc/extending/newtypes.rst:1475
msgid ""
"The only further addition is that the destructor needs to call the weak "
"reference manager to clear any weak references. This is only required if "
"the weak reference list is non-*NULL*::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1483
#: ../Doc/extending/newtypes.rst:1494
msgid "More Suggestions"
msgstr ""
#: ../Doc/extending/newtypes.rst:1485
#: ../Doc/extending/newtypes.rst:1496
msgid ""
"Remember that you can omit most of these functions, in which case you "
"provide ``0`` as a value. There are type definitions for each of the "
@ -1341,7 +1352,7 @@ msgid ""
"include directory that comes with the source distribution of Python."
msgstr ""
#: ../Doc/extending/newtypes.rst:1490
#: ../Doc/extending/newtypes.rst:1501
msgid ""
"In order to learn how to implement any specific method for your new data "
"type, do the following: Download and unpack the Python source distribution. "
@ -1350,24 +1361,24 @@ msgid ""
"will find examples of the function you want to implement."
msgstr ""
#: ../Doc/extending/newtypes.rst:1496
#: ../Doc/extending/newtypes.rst:1507
msgid ""
"When you need to verify that an object is an instance of the type you are "
"implementing, use the :c:func:`PyObject_TypeCheck` function. A sample of its "
"use might be something like the following::"
msgstr ""
#: ../Doc/extending/newtypes.rst:1506
#: ../Doc/extending/newtypes.rst:1517
msgid "Footnotes"
msgstr "Notes"
#: ../Doc/extending/newtypes.rst:1507
#: ../Doc/extending/newtypes.rst:1518
msgid ""
"This is true when we know that the object is a basic type, like a string or "
"a float."
msgstr ""
#: ../Doc/extending/newtypes.rst:1510
#: ../Doc/extending/newtypes.rst:1521
msgid ""
"We relied on this in the :c:member:`~PyTypeObject.tp_dealloc` handler in "
"this example, because our type doesn't support garbage collection. Even if a "
@ -1376,7 +1387,7 @@ msgid ""
"advanced and not covered here."
msgstr ""
#: ../Doc/extending/newtypes.rst:1515
#: ../Doc/extending/newtypes.rst:1526
msgid ""
"We now know that the first and last members are strings, so perhaps we could "
"be less careful about decrementing their reference counts, however, we "
@ -1386,7 +1397,7 @@ msgid ""
"objects."
msgstr ""
#: ../Doc/extending/newtypes.rst:1521
#: ../Doc/extending/newtypes.rst:1532
msgid ""
"Even in the third version, we aren't guaranteed to avoid cycles. Instances "
"of string subclasses are allowed and string subclasses could allow cycles "

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-27 19:40+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: 2017-05-28 17:54+0200\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: \n"
@ -378,10 +378,11 @@ msgstr ""
"fonctionner immédiatement sur la plupart des plateformes UNIX."
#: ../Doc/faq/general.rst:169
#, fuzzy
msgid ""
"Consult the `Getting Started section of the Python Developer's Guide "
"<https://docs.python.org/devguide/setup.html>`__ for more information on "
"getting the source code and compiling it."
"<https://devguide.python.org/setup/>`__ for more information on getting the "
"source code and compiling it."
msgstr ""
"Consultez `la section Premiers pas du Guide des Développeurs Python <https://"
"docs.python.org/devguide/setup.html>`__ pour plus d'informations sur comment "
@ -493,9 +494,10 @@ msgstr ""
"python.org/; un flux RSS de *news* est disponible."
#: ../Doc/faq/general.rst:225
#, fuzzy
msgid ""
"You can also access the development version of Python through Git. See `The "
"Python Developer's Guide <https://docs.python.org/devguide/>`_ for details."
"Python Developer's Guide <https://devguide.python.org/>`_ for details."
msgstr ""
"Vous pouvez aussi accéder aux de Python en dévloppement grâce à Git. Voir "
"`Le Guide du Développeur Python <https://docs.python.org/devguide/>`_ pour "
@ -531,9 +533,10 @@ msgstr ""
"@template=forgotten>`_."
#: ../Doc/faq/general.rst:241
#, fuzzy
msgid ""
"For more information on how Python is developed, consult `the Python "
"Developer's Guide <https://docs.python.org/devguide/>`_."
"Developer's Guide <https://devguide.python.org/>`_."
msgstr ""
"Pour davantages d'informations sur comment Python est développé, consultez "
"`le Guide du Développeur Python <https://docs.python.org/devguide/>`_."

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-02 22:11+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -2138,7 +2138,7 @@ msgstr ""
msgid ""
"Despite the cycle collector, it's still a good idea to define an explicit "
"``close()`` method on objects to be called whenever you're done with them. "
"The ``close()`` method can then remove attributes that refer to subobjecs. "
"The ``close()`` method can then remove attributes that refer to subobjects. "
"Don't call :meth:`__del__` directly -- :meth:`__del__` should call "
"``close()`` and ``close()`` should make sure that it can be called more than "
"once for the same object."

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-10 00:49+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -702,8 +702,8 @@ msgid ""
"Python interface. Often this isn't because they're difficult to implement, "
"but because no one has needed them yet. Also, Python doesn't yet support "
"the menu library associated with ncurses. Patches adding support for these "
"would be welcome; see `the Python Developer's Guide <https://docs.python.org/"
"devguide/>`_ to learn more about submitting patches to Python."
"would be welcome; see `the Python Developer's Guide <https://devguide.python."
"org/>`_ to learn more about submitting patches to Python."
msgstr ""
#: ../Doc/howto/curses.rst:544

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-10 00:49+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -717,11 +717,11 @@ msgid ""
"the data needed by the handler to create the socket::"
msgstr ""
#: ../Doc/howto/logging-cookbook.rst:1286
#: ../Doc/howto/logging-cookbook.rst:1285
msgid "Subclassing QueueListener - a ZeroMQ example"
msgstr ""
#: ../Doc/howto/logging-cookbook.rst:1288
#: ../Doc/howto/logging-cookbook.rst:1287
msgid ""
"You can also subclass :class:`QueueListener` to get messages from other "
"kinds of queues, for example a ZeroMQ 'subscribe' socket. Here's an example::"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-02 22:11+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -43,14 +43,32 @@ msgid ""
msgstr ""
#: ../Doc/library/abc.rst:27
msgid "This module provides the following classes:"
msgstr "Le module fournit les classes suivantes :"
msgid ""
"This module provides the metaclass :class:`ABCMeta` for defining ABCs and a "
"helper class :class:`ABC` to alternatively define ABCs through inheritance:"
msgstr ""
#: ../Doc/library/abc.rst:31
#: ../Doc/library/abc.rst:32
msgid ""
"A helper class that has :class:`ABCMeta` as its metaclass. With this class, "
"an abstract base class can be created by simply deriving from :class:`ABC` "
"avoiding sometimes confusing metaclass usage, for example::"
msgstr ""
#: ../Doc/library/abc.rst:41
msgid ""
"Note that the type of :class:`ABC` is still :class:`ABCMeta`, therefore "
"inheriting from :class:`ABC` requires the usual precautions regarding "
"metaclass usage, as multiple inheritance may lead to metaclass conflicts. "
"One may also define an abstract base class by passing the metaclass keyword "
"and using :class:`ABCMeta` directly, for example::"
msgstr ""
#: ../Doc/library/abc.rst:57
msgid "Metaclass for defining Abstract Base Classes (ABCs)."
msgstr ""
#: ../Doc/library/abc.rst:33
#: ../Doc/library/abc.rst:59
msgid ""
"Use this metaclass to create an ABC. An ABC can be subclassed directly, and "
"then acts as a mix-in class. You can also register unrelated concrete "
@ -62,36 +80,36 @@ msgid ""
"even via :func:`super`). [#]_"
msgstr ""
#: ../Doc/library/abc.rst:42
#: ../Doc/library/abc.rst:68
msgid ""
"Classes created with a metaclass of :class:`ABCMeta` have the following "
"method:"
msgstr ""
#: ../Doc/library/abc.rst:46
#: ../Doc/library/abc.rst:72
msgid ""
"Register *subclass* as a \"virtual subclass\" of this ABC. For example::"
msgstr ""
#: ../Doc/library/abc.rst:59
#: ../Doc/library/abc.rst:85
msgid "Returns the registered subclass, to allow usage as a class decorator."
msgstr ""
#: ../Doc/library/abc.rst:62
#: ../Doc/library/abc.rst:88
msgid ""
"To detect calls to :meth:`register`, you can use the :func:`get_cache_token` "
"function."
msgstr ""
#: ../Doc/library/abc.rst:66
#: ../Doc/library/abc.rst:92
msgid "You can also override this method in an abstract base class:"
msgstr ""
#: ../Doc/library/abc.rst:70
#: ../Doc/library/abc.rst:96
msgid "(Must be defined as a class method.)"
msgstr "(Doit être définie en temps que méthode de classe.)"
#: ../Doc/library/abc.rst:72
#: ../Doc/library/abc.rst:98
msgid ""
"Check whether *subclass* is considered a subclass of this ABC. This means "
"that you can customize the behavior of ``issubclass`` further without the "
@ -100,7 +118,7 @@ msgid ""
"method of the ABC.)"
msgstr ""
#: ../Doc/library/abc.rst:78
#: ../Doc/library/abc.rst:104
msgid ""
"This method should return ``True``, ``False`` or ``NotImplemented``. If it "
"returns ``True``, the *subclass* is considered a subclass of this ABC. If it "
@ -109,12 +127,12 @@ msgid ""
"subclass check is continued with the usual mechanism."
msgstr ""
#: ../Doc/library/abc.rst:88
#: ../Doc/library/abc.rst:114
msgid ""
"For a demonstration of these concepts, look at this example ABC definition::"
msgstr ""
#: ../Doc/library/abc.rst:117
#: ../Doc/library/abc.rst:143
msgid ""
"The ABC ``MyIterable`` defines the standard iterable method, :meth:"
"`~iterator.__iter__`, as an abstract method. The implementation given here "
@ -123,7 +141,7 @@ msgid ""
"be overridden in non-abstract derived classes."
msgstr ""
#: ../Doc/library/abc.rst:123
#: ../Doc/library/abc.rst:149
msgid ""
"The :meth:`__subclasshook__` class method defined here says that any class "
"that has an :meth:`~iterator.__iter__` method in its :attr:`~object."
@ -131,7 +149,7 @@ msgid ""
"`~class.__mro__` list) is considered a ``MyIterable`` too."
msgstr ""
#: ../Doc/library/abc.rst:128
#: ../Doc/library/abc.rst:154
msgid ""
"Finally, the last line makes ``Foo`` a virtual subclass of ``MyIterable``, "
"even though it does not define an :meth:`~iterator.__iter__` method (it uses "
@ -140,29 +158,15 @@ msgid ""
"available as a method of ``Foo``, so it is provided separately."
msgstr ""
#: ../Doc/library/abc.rst:137
msgid ""
"A helper class that has :class:`ABCMeta` as its metaclass. With this class, "
"an abstract base class can be created by simply deriving from :class:`ABC`, "
"avoiding sometimes confusing metaclass usage."
msgstr ""
#: ../Doc/library/abc.rst:141
msgid ""
"Note that the type of :class:`ABC` is still :class:`ABCMeta`, therefore "
"inheriting from :class:`ABC` requires the usual precautions regarding "
"metaclass usage, as multiple inheritance may lead to metaclass conflicts."
msgstr ""
#: ../Doc/library/abc.rst:148
#: ../Doc/library/abc.rst:163
msgid "The :mod:`abc` module also provides the following decorators:"
msgstr ""
#: ../Doc/library/abc.rst:152
#: ../Doc/library/abc.rst:167
msgid "A decorator indicating abstract methods."
msgstr "Un décorateur marquant les méthodes abstraites."
#: ../Doc/library/abc.rst:154
#: ../Doc/library/abc.rst:169
msgid ""
"Using this decorator requires that the class's metaclass is :class:`ABCMeta` "
"or is derived from it. A class that has a metaclass derived from :class:"
@ -172,7 +176,7 @@ msgid ""
"declare abstract methods for properties and descriptors."
msgstr ""
#: ../Doc/library/abc.rst:161
#: ../Doc/library/abc.rst:176
msgid ""
"Dynamically adding abstract methods to a class, or attempting to modify the "
"abstraction status of a method or class once it is created, are not "
@ -181,14 +185,14 @@ msgid ""
"`register` method are not affected."
msgstr ""
#: ../Doc/library/abc.rst:167
#: ../Doc/library/abc.rst:182
msgid ""
"When :func:`abstractmethod` is applied in combination with other method "
"descriptors, it should be applied as the innermost decorator, as shown in "
"the following usage examples::"
msgstr ""
#: ../Doc/library/abc.rst:201
#: ../Doc/library/abc.rst:216
msgid ""
"In order to correctly interoperate with the abstract base class machinery, "
"the descriptor must identify itself as abstract using :attr:"
@ -197,7 +201,7 @@ msgid ""
"Python's built-in property does the equivalent of::"
msgstr ""
#: ../Doc/library/abc.rst:216
#: ../Doc/library/abc.rst:231
msgid ""
"Unlike Java abstract methods, these abstract methods may have an "
"implementation. This implementation can be called via the :func:`super` "
@ -206,48 +210,48 @@ msgid ""
"inheritance."
msgstr ""
#: ../Doc/library/abc.rst:226
#: ../Doc/library/abc.rst:241
msgid ""
"A subclass of the built-in :func:`classmethod`, indicating an abstract "
"classmethod. Otherwise it is similar to :func:`abstractmethod`."
msgstr ""
#: ../Doc/library/abc.rst:229
#: ../Doc/library/abc.rst:244
msgid ""
"This special case is deprecated, as the :func:`classmethod` decorator is now "
"correctly identified as abstract when applied to an abstract method::"
msgstr ""
#: ../Doc/library/abc.rst:240
#: ../Doc/library/abc.rst:255
msgid ""
"It is now possible to use :class:`classmethod` with :func:`abstractmethod`, "
"making this decorator redundant."
msgstr ""
#: ../Doc/library/abc.rst:247
#: ../Doc/library/abc.rst:262
msgid ""
"A subclass of the built-in :func:`staticmethod`, indicating an abstract "
"staticmethod. Otherwise it is similar to :func:`abstractmethod`."
msgstr ""
#: ../Doc/library/abc.rst:250
#: ../Doc/library/abc.rst:265
msgid ""
"This special case is deprecated, as the :func:`staticmethod` decorator is "
"now correctly identified as abstract when applied to an abstract method::"
msgstr ""
#: ../Doc/library/abc.rst:261
#: ../Doc/library/abc.rst:276
msgid ""
"It is now possible to use :class:`staticmethod` with :func:`abstractmethod`, "
"making this decorator redundant."
msgstr ""
#: ../Doc/library/abc.rst:268
#: ../Doc/library/abc.rst:283
msgid ""
"A subclass of the built-in :func:`property`, indicating an abstract property."
msgstr ""
#: ../Doc/library/abc.rst:271
#: ../Doc/library/abc.rst:286
msgid ""
"Using this function requires that the class's metaclass is :class:`ABCMeta` "
"or is derived from it. A class that has a metaclass derived from :class:"
@ -256,53 +260,56 @@ msgid ""
"of the normal 'super' call mechanisms."
msgstr ""
#: ../Doc/library/abc.rst:277
#: ../Doc/library/abc.rst:292
msgid ""
"This special case is deprecated, as the :func:`property` decorator is now "
"correctly identified as abstract when applied to an abstract method::"
msgstr ""
#: ../Doc/library/abc.rst:287
#: ../Doc/library/abc.rst:302
msgid ""
"The above example defines a read-only property; you can also define a read-"
"write abstract property by appropriately marking one or more of the "
"underlying methods as abstract::"
msgstr ""
#: ../Doc/library/abc.rst:301
#: ../Doc/library/abc.rst:316
msgid ""
"If only some components are abstract, only those components need to be "
"updated to create a concrete property in a subclass::"
msgstr ""
#: ../Doc/library/abc.rst:310
#: ../Doc/library/abc.rst:325
msgid ""
"It is now possible to use :class:`property`, :meth:`property.getter`, :meth:"
"`property.setter` and :meth:`property.deleter` with :func:`abstractmethod`, "
"making this decorator redundant."
msgstr ""
#: ../Doc/library/abc.rst:316
#: ../Doc/library/abc.rst:331
msgid "The :mod:`abc` module also provides the following functions:"
msgstr ""
#: ../Doc/library/abc.rst:320
#: ../Doc/library/abc.rst:335
msgid "Returns the current abstract base class cache token."
msgstr ""
#: ../Doc/library/abc.rst:322
#: ../Doc/library/abc.rst:337
msgid ""
"The token is an opaque object (that supports equality testing) identifying "
"the current version of the abstract base class cache for virtual subclasses. "
"The token changes with every call to :meth:`ABCMeta.register` on any ABC."
msgstr ""
#: ../Doc/library/abc.rst:330
#: ../Doc/library/abc.rst:345
msgid "Footnotes"
msgstr "Notes"
#: ../Doc/library/abc.rst:331
#: ../Doc/library/abc.rst:346
msgid ""
"C++ programmers should note that Python's virtual base class concept is not "
"the same as C++'s."
msgstr ""
#~ msgid "This module provides the following classes:"
#~ msgstr "Le module fournit les classes suivantes :"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-02 22:11+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -33,14 +33,7 @@ msgid ""
"the ability to compress the audio data."
msgstr ""
#: ../Doc/library/aifc.rst:23
msgid ""
"Some operations may only work under IRIX; these will raise :exc:"
"`ImportError` when attempting to import the :mod:`cl` module, which is only "
"available on IRIX."
msgstr ""
#: ../Doc/library/aifc.rst:27
#: ../Doc/library/aifc.rst:21
msgid ""
"Audio files have a number of parameters that describe the audio data. The "
"sampling rate or frame rate is the number of times per second the sound is "
@ -51,7 +44,7 @@ msgid ""
"samplesize * framerate`` bytes."
msgstr ""
#: ../Doc/library/aifc.rst:35
#: ../Doc/library/aifc.rst:29
msgid ""
"For example, CD quality audio has a sample size of two bytes (16 bits), uses "
"two channels (stereo) and has a frame rate of 44,100 frames/second. This "
@ -59,11 +52,11 @@ msgid ""
"2\\*2\\*44100 bytes (176,400 bytes)."
msgstr ""
#: ../Doc/library/aifc.rst:40
#: ../Doc/library/aifc.rst:34
msgid "Module :mod:`aifc` defines the following function:"
msgstr "Le module :mod:`aifc` définit les fonctions suivantes :"
#: ../Doc/library/aifc.rst:45
#: ../Doc/library/aifc.rst:39
msgid ""
"Open an AIFF or AIFF-C file and return an object instance with methods that "
"are described below. The argument *file* is either a string naming a file "
@ -77,53 +70,53 @@ msgid ""
"keyword:`with` block completes, the :meth:`~aifc.close` method is called."
msgstr ""
#: ../Doc/library/aifc.rst:56
#: ../Doc/library/aifc.rst:50
msgid "Support for the :keyword:`with` statement was added."
msgstr ""
#: ../Doc/library/aifc.rst:59
#: ../Doc/library/aifc.rst:53
msgid ""
"Objects returned by :func:`.open` when a file is opened for reading have the "
"following methods:"
msgstr ""
#: ../Doc/library/aifc.rst:65
#: ../Doc/library/aifc.rst:59
msgid "Return the number of audio channels (1 for mono, 2 for stereo)."
msgstr ""
#: ../Doc/library/aifc.rst:70
#: ../Doc/library/aifc.rst:64
msgid "Return the size in bytes of individual samples."
msgstr "Donne la taille en octets des échantillons, individuellement."
#: ../Doc/library/aifc.rst:75
#: ../Doc/library/aifc.rst:69
msgid "Return the sampling rate (number of audio frames per second)."
msgstr ""
#: ../Doc/library/aifc.rst:80
#: ../Doc/library/aifc.rst:74
msgid "Return the number of audio frames in the file."
msgstr "Donne le nombre de trames (*frames*) audio du fichier."
#: ../Doc/library/aifc.rst:85
#: ../Doc/library/aifc.rst:79
msgid ""
"Return a bytes array of length 4 describing the type of compression used in "
"the audio file. For AIFF files, the returned value is ``b'NONE'``."
msgstr ""
#: ../Doc/library/aifc.rst:92
#: ../Doc/library/aifc.rst:86
msgid ""
"Return a bytes array convertible to a human-readable description of the type "
"of compression used in the audio file. For AIFF files, the returned value "
"is ``b'not compressed'``."
msgstr ""
#: ../Doc/library/aifc.rst:99
#: ../Doc/library/aifc.rst:93
msgid ""
"Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth, "
"framerate, nframes, comptype, compname)``, equivalent to output of the :meth:"
"`get\\*` methods."
msgstr ""
#: ../Doc/library/aifc.rst:106
#: ../Doc/library/aifc.rst:100
msgid ""
"Return a list of markers in the audio file. A marker consists of a tuple of "
"three elements. The first is the mark ID (an integer), the second is the "
@ -131,40 +124,40 @@ msgid ""
"third is the name of the mark (a string)."
msgstr ""
#: ../Doc/library/aifc.rst:114
#: ../Doc/library/aifc.rst:108
msgid ""
"Return the tuple as described in :meth:`getmarkers` for the mark with the "
"given *id*."
msgstr ""
#: ../Doc/library/aifc.rst:120
#: ../Doc/library/aifc.rst:114
msgid ""
"Read and return the next *nframes* frames from the audio file. The returned "
"data is a string containing for each frame the uncompressed samples of all "
"channels."
msgstr ""
#: ../Doc/library/aifc.rst:127
#: ../Doc/library/aifc.rst:121
msgid ""
"Rewind the read pointer. The next :meth:`readframes` will start from the "
"beginning."
msgstr ""
#: ../Doc/library/aifc.rst:133
#: ../Doc/library/aifc.rst:127
msgid "Seek to the specified frame number."
msgstr "Va à la trame de numéro donné."
#: ../Doc/library/aifc.rst:138
#: ../Doc/library/aifc.rst:132
msgid "Return the current frame number."
msgstr "Donne le numéro de la trame courante."
#: ../Doc/library/aifc.rst:143
#: ../Doc/library/aifc.rst:137
msgid ""
"Close the AIFF file. After calling this method, the object can no longer be "
"used."
msgstr ""
#: ../Doc/library/aifc.rst:146
#: ../Doc/library/aifc.rst:140
msgid ""
"Objects returned by :func:`.open` when a file is opened for writing have all "
"the above methods, except for :meth:`readframes` and :meth:`setpos`. In "
@ -174,40 +167,40 @@ msgid ""
"parameters except for the number of frames must be filled in."
msgstr ""
#: ../Doc/library/aifc.rst:156
#: ../Doc/library/aifc.rst:150
msgid ""
"Create an AIFF file. The default is that an AIFF-C file is created, unless "
"the name of the file ends in ``'.aiff'`` in which case the default is an "
"AIFF file."
msgstr ""
#: ../Doc/library/aifc.rst:162
#: ../Doc/library/aifc.rst:156
msgid ""
"Create an AIFF-C file. The default is that an AIFF-C file is created, "
"unless the name of the file ends in ``'.aiff'`` in which case the default is "
"an AIFF file."
msgstr ""
#: ../Doc/library/aifc.rst:169
#: ../Doc/library/aifc.rst:163
msgid "Specify the number of channels in the audio file."
msgstr "Définit le nombre de canaux du fichier audio."
#: ../Doc/library/aifc.rst:174
#: ../Doc/library/aifc.rst:168
msgid "Specify the size in bytes of audio samples."
msgstr "Définit la taille en octets des échantillons audio."
#: ../Doc/library/aifc.rst:179
#: ../Doc/library/aifc.rst:173
msgid "Specify the sampling frequency in frames per second."
msgstr ""
#: ../Doc/library/aifc.rst:184
#: ../Doc/library/aifc.rst:178
msgid ""
"Specify the number of frames that are to be written to the audio file. If "
"this parameter is not set, or not set correctly, the file needs to support "
"seeking."
msgstr ""
#: ../Doc/library/aifc.rst:195
#: ../Doc/library/aifc.rst:189
msgid ""
"Specify the compression type. If not specified, the audio data will not be "
"compressed. In AIFF files, compression is not possible. The name parameter "
@ -217,42 +210,42 @@ msgid ""
"``b'ALAW'``, ``b'G722'``."
msgstr ""
#: ../Doc/library/aifc.rst:205
#: ../Doc/library/aifc.rst:199
msgid ""
"Set all the above parameters at once. The argument is a tuple consisting of "
"the various parameters. This means that it is possible to use the result of "
"a :meth:`getparams` call as argument to :meth:`setparams`."
msgstr ""
#: ../Doc/library/aifc.rst:212
#: ../Doc/library/aifc.rst:206
msgid ""
"Add a mark with the given id (larger than 0), and the given name at the "
"given position. This method can be called at any time before :meth:`close`."
msgstr ""
#: ../Doc/library/aifc.rst:218
#: ../Doc/library/aifc.rst:212
msgid ""
"Return the current write position in the output file. Useful in combination "
"with :meth:`setmark`."
msgstr ""
#: ../Doc/library/aifc.rst:224
#: ../Doc/library/aifc.rst:218
msgid ""
"Write data to the output file. This method can only be called after the "
"audio file parameters have been set."
msgstr ""
#: ../Doc/library/aifc.rst:227 ../Doc/library/aifc.rst:236
#: ../Doc/library/aifc.rst:221 ../Doc/library/aifc.rst:230
msgid "Any :term:`bytes-like object` is now accepted."
msgstr "N'importe quel :term:`bytes-like object` est maintenant accepté."
#: ../Doc/library/aifc.rst:233
#: ../Doc/library/aifc.rst:227
msgid ""
"Like :meth:`writeframes`, except that the header of the audio file is not "
"updated."
msgstr ""
#: ../Doc/library/aifc.rst:242
#: ../Doc/library/aifc.rst:236
msgid ""
"Close the AIFF file. The header of the file is updated to reflect the "
"actual size of the audio data. After calling this method, the object can no "

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-01 13:21+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -1185,42 +1185,7 @@ msgstr ""
msgid ""
"IDLE contains an extension facility. Preferences for extensions can be "
"changed with Configure Extensions. See the beginning of config-extensions."
"def in the idlelib directory for further information. The default "
"extensions are currently:"
msgstr ""
#: ../Doc/library/idle.rst:678
msgid "FormatParagraph"
msgstr ""
#: ../Doc/library/idle.rst:680
msgid "AutoExpand"
msgstr ""
#: ../Doc/library/idle.rst:682
msgid "ZoomHeight"
msgstr ""
#: ../Doc/library/idle.rst:684
msgid "ScriptBinding"
msgstr ""
#: ../Doc/library/idle.rst:686
msgid "CallTips"
msgstr ""
#: ../Doc/library/idle.rst:688
msgid "ParenMatch"
msgstr ""
#: ../Doc/library/idle.rst:690
msgid "AutoComplete"
msgstr ""
#: ../Doc/library/idle.rst:692
msgid "CodeContext"
msgstr ""
#: ../Doc/library/idle.rst:694
msgid "RstripExtension"
"def in the idlelib directory for further information. The only current "
"default extension is zoomheight. It exists as an extension primarily to be "
"an example and for testing purposes."
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-27 19:40+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: 2017-08-10 01:00+0200\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: \n"
@ -57,8 +57,7 @@ msgstr ""
#: ../Doc/library/importlib.rst:38
msgid ""
"`Packages specification <http://legacy.python.org/doc/essays/packages."
"html>`__"
"`Packages specification <https://www.python.org/doc/essays/packages/>`__"
msgstr ""
#: ../Doc/library/importlib.rst:36

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-29 14:32+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: 2017-08-29 14:37+0200\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: \n"
@ -1252,15 +1252,13 @@ msgstr "Affiche des informations de debug à propos de l'expression compilée."
#: ../Doc/library/re.rst:545
msgid ""
"Perform case-insensitive matching; expressions like ``[A-Z]`` will match "
"lowercase letters, too. This is not affected by the current locale and "
"works for Unicode characters as expected."
"Perform case-insensitive matching; expressions like ``[A-Z]`` will also "
"match lowercase letters. The current locale does not change the effect of "
"this flag. Full Unicode matching (such as ``Ü`` matching ``ü``) also works "
"unless the :const:`re.ASCII` flag is also used to disable non-ASCII matches."
msgstr ""
"Réalise une analyse insensible à la classe ; les expressions comme ``[A-Z]`` "
"valideront aussi les lettres minuscules. Cela n'est pas affecté par la "
"locale courante et fonctionne comme convenu avec les caractères Unicode."
#: ../Doc/library/re.rst:553
#: ../Doc/library/re.rst:555
msgid ""
"Make ``\\w``, ``\\W``, ``\\b``, ``\\B``, ``\\s`` and ``\\S`` dependent on "
"the current locale. The use of this flag is discouraged as the locale "
@ -1276,7 +1274,7 @@ msgstr ""
"en Python 3 pour les motifs Unicode (str). Cette option ne peut être "
"utilisée qu'avec les motifs 8-bit."
#: ../Doc/library/re.rst:559
#: ../Doc/library/re.rst:561
msgid ""
":const:`re.LOCALE` can be used only with bytes patterns and is not "
"compatible with :const:`re.ASCII`."
@ -1284,7 +1282,7 @@ msgstr ""
":const:`re.LOCALE`` ne peut être utilisée qu'avec les motifs 8-bit et n'est "
"pas compatible avec :const:`re.ASCII`."
#: ../Doc/library/re.rst:567
#: ../Doc/library/re.rst:569
msgid ""
"When specified, the pattern character ``'^'`` matches at the beginning of "
"the string and at the beginning of each line (immediately following each "
@ -1301,7 +1299,7 @@ msgstr ""
"au début de la chaîne, et ``'$'`` uniquement à la fin de la chaîne, ou "
"immédiatement avant le saut de ligne (s'il y a) à la fin de la chaîne."
#: ../Doc/library/re.rst:578
#: ../Doc/library/re.rst:580
msgid ""
"Make the ``'.'`` special character match any character at all, including a "
"newline; without this flag, ``'.'`` will match anything *except* a newline."
@ -1310,7 +1308,7 @@ msgstr ""
"de ligne ; sans cette option, ``'.'`` correspondrait à tout caractère à "
"l'exception du saut de ligne."
#: ../Doc/library/re.rst:585
#: ../Doc/library/re.rst:587
msgid ""
"This flag allows you to write regular expressions that look nicer and are "
"more readable by allowing you to visually separate logical sections of the "
@ -1329,7 +1327,7 @@ msgstr ""
"caractères ou précédé d'un *backslash* non échappé, tous les caractères "
"depuis le ``#`` le plus à gauche jusqu'à la fin de la ligne sont ignorés."
#: ../Doc/library/re.rst:593
#: ../Doc/library/re.rst:595
msgid ""
"This means that the two following regular expression objects that match a "
"decimal number are functionally equal::"
@ -1337,7 +1335,7 @@ msgstr ""
"Cela signifie que les deux expressions rationnelles suivantes qui valident "
"un nombre décimal sont fonctionnellement égales : ::"
#: ../Doc/library/re.rst:606
#: ../Doc/library/re.rst:608
msgid ""
"Scan through *string* looking for the first location where the regular "
"expression *pattern* produces a match, and return a corresponding :ref:"
@ -1351,7 +1349,7 @@ msgstr ""
"dans la chaîne ne valide le motif ; notez que cela est différent de trouver "
"une correspondance avec une chaîne vide à un certain endroit de la chaîne."
#: ../Doc/library/re.rst:615
#: ../Doc/library/re.rst:617
msgid ""
"If zero or more characters at the beginning of *string* match the regular "
"expression *pattern*, return a corresponding :ref:`match object <match-"
@ -1364,7 +1362,7 @@ msgstr ""
"motif ; notez que cela est différent d'une correspondance avec une chaîne "
"vide."
#: ../Doc/library/re.rst:620
#: ../Doc/library/re.rst:622
msgid ""
"Note that even in :const:`MULTILINE` mode, :func:`re.match` will only match "
"at the beginning of the string and not at the beginning of each line."
@ -1372,7 +1370,7 @@ msgstr ""
"Notez que même en mode :const:`MULTILINE`, :func:`re.match` ne validera "
"qu'au début de la chaîne et non au début de chaque ligne."
#: ../Doc/library/re.rst:623
#: ../Doc/library/re.rst:625
msgid ""
"If you want to locate a match anywhere in *string*, use :func:`search` "
"instead (see also :ref:`search-vs-match`)."
@ -1380,7 +1378,7 @@ msgstr ""
"Si vous voulez trouver une correspondance n'importe où dans *string*, "
"utilisez plutôt :func:`search` (voir aussi :ref:`search-vs-match`)."
#: ../Doc/library/re.rst:629
#: ../Doc/library/re.rst:631
msgid ""
"If the whole *string* matches the regular expression *pattern*, return a "
"corresponding :ref:`match object <match-objects>`. Return ``None`` if the "
@ -1392,7 +1390,7 @@ msgstr ""
"Renvoie ``None`` si la chaîne ne correspond pas au motif ; notez que cela "
"est différent d'une correspondance avec une chaîne vide."
#: ../Doc/library/re.rst:639
#: ../Doc/library/re.rst:641
msgid ""
"Split *string* by the occurrences of *pattern*. If capturing parentheses "
"are used in *pattern*, then the text of all groups in the pattern are also "
@ -1407,7 +1405,7 @@ msgstr ""
"séparations, et le reste de la chaîne sera renvoyé comme le dernier élément "
"de la liste. : ::"
#: ../Doc/library/re.rst:654
#: ../Doc/library/re.rst:656
msgid ""
"If there are capturing groups in the separator and it matches at the start "
"of the string, the result will start with an empty string. The same holds "
@ -1417,7 +1415,7 @@ msgstr ""
"correspondance au début de la chaîne, le résultat commencera par une chaîne "
"vide. La même chose se produit pour la fin de la chaîne :"
#: ../Doc/library/re.rst:661
#: ../Doc/library/re.rst:663
msgid ""
"That way, separator components are always found at the same relative indices "
"within the result list."
@ -1425,7 +1423,7 @@ msgstr ""
"De cette manière, les séparateurs sont toujours trouvés aux mêmes indices "
"relatifs dans la liste résultante."
#: ../Doc/library/re.rst:666
#: ../Doc/library/re.rst:668
msgid ""
":func:`split` doesn't currently split a string on an empty pattern match. "
"For example:"
@ -1433,7 +1431,7 @@ msgstr ""
":func:`split` ne sépare actuellement pas une chaîne sur une correspondance "
"vide. Par exemple :"
#: ../Doc/library/re.rst:672
#: ../Doc/library/re.rst:674
msgid ""
"Even though ``'x*'`` also matches 0 'x' before 'a', between 'b' and 'c', and "
"after 'c', currently these matches are ignored. The correct behavior (i.e. "
@ -1449,7 +1447,7 @@ msgstr ""
"Python, mais comme cela constitue un changement incompatible avec les "
"précédentes, une :exc:`FutureWarning` sera levée pendant la transition."
#: ../Doc/library/re.rst:679
#: ../Doc/library/re.rst:681
msgid ""
"Patterns that can only match empty strings currently never split the "
"string. Since this doesn't match the expected behavior, a :exc:`ValueError` "
@ -1460,12 +1458,12 @@ msgstr ""
"comportement voulu, une :exc:`ValueError` sera levée à partir de Python "
"3.5 : ::"
#: ../Doc/library/re.rst:689 ../Doc/library/re.rst:761
#: ../Doc/library/re.rst:781
#: ../Doc/library/re.rst:691 ../Doc/library/re.rst:763
#: ../Doc/library/re.rst:783
msgid "Added the optional flags argument."
msgstr "Ajout de l'argument optionnel *flags*"
#: ../Doc/library/re.rst:692
#: ../Doc/library/re.rst:694
msgid ""
"Splitting on a pattern that could match an empty string now raises a "
"warning. Patterns that can only match empty strings are now rejected."
@ -1474,7 +1472,7 @@ msgstr ""
"maintenant un avertissement. Les motifs qui ne peuvent correspondre qu'à "
"des chaînes vides sont maintenant rejetés."
#: ../Doc/library/re.rst:698
#: ../Doc/library/re.rst:700
msgid ""
"Return all non-overlapping matches of *pattern* in *string*, as a list of "
"strings. The *string* is scanned left-to-right, and matches are returned in "
@ -1492,7 +1490,7 @@ msgstr ""
"inclues dans le résultat sauf si elles touchent le début d'une autre "
"correspondance."
#: ../Doc/library/re.rst:708
#: ../Doc/library/re.rst:710
msgid ""
"Return an :term:`iterator` yielding :ref:`match objects <match-objects>` "
"over all non-overlapping matches for the RE *pattern* in *string*. The "
@ -1507,7 +1505,7 @@ msgstr ""
"dans l'ordre où elles sont trouvées. Les correspondances vides sont inclues "
"dans le résultat sauf si elles touchent le début d'une autre correspondance."
#: ../Doc/library/re.rst:717
#: ../Doc/library/re.rst:719
msgid ""
"Return the string obtained by replacing the leftmost non-overlapping "
"occurrences of *pattern* in *string* by the replacement *repl*. If the "
@ -1528,7 +1526,7 @@ msgstr ""
"intactes. Les références arrières, telles que ``\\6``, sont remplacées par "
"la sous-chaîne correspondant au groupe 6 dans le motif. Par exemple :"
#: ../Doc/library/re.rst:731
#: ../Doc/library/re.rst:733
msgid ""
"If *repl* is a function, it is called for every non-overlapping occurrence "
"of *pattern*. The function takes a single match object argument, and "
@ -1538,13 +1536,13 @@ msgstr ""
"chevauchante de *pattern*. La fonction prend comme argument un objet de "
"correspondance, et renvoie la chaîne de remplacement. Par exemple :"
#: ../Doc/library/re.rst:743
#: ../Doc/library/re.rst:745
msgid "The pattern may be a string or an RE object."
msgstr ""
"Le motif peut être une chaîne de caractères ou un objet expression "
"rationnelle."
#: ../Doc/library/re.rst:745
#: ../Doc/library/re.rst:747
msgid ""
"The optional argument *count* is the maximum number of pattern occurrences "
"to be replaced; *count* must be a non-negative integer. If omitted or zero, "
@ -1559,7 +1557,7 @@ msgstr ""
"précédente correspondance, ainsi ``sub('x*', '-', 'abc')`` renvoie ``'-a-b-"
"c-'``."
#: ../Doc/library/re.rst:751
#: ../Doc/library/re.rst:753
msgid ""
"In string-type *repl* arguments, in addition to the character escapes and "
"backreferences described above, ``\\g<name>`` will use the substring matched "
@ -1581,12 +1579,12 @@ msgstr ""
"par un caractère littéral ``'0'``. La référence arrière ``\\g<0>`` est "
"remplacée par la sous-chaîne entière validée par l'expression rationnelle."
#: ../Doc/library/re.rst:764 ../Doc/library/re.rst:784
#: ../Doc/library/re.rst:996
#: ../Doc/library/re.rst:766 ../Doc/library/re.rst:786
#: ../Doc/library/re.rst:998
msgid "Unmatched groups are replaced with an empty string."
msgstr "Les groupes sans correspondance sont remplacés par une chaîne vide."
#: ../Doc/library/re.rst:767
#: ../Doc/library/re.rst:769
msgid ""
"Unknown escapes in *pattern* consisting of ``'\\'`` and an ASCII letter now "
"are errors."
@ -1594,7 +1592,7 @@ msgstr ""
"Les séquences d'échappement inconnues dans *pattern* formées par ``'\\'`` et "
"une lettre ASCII sont maintenant des erreurs."
#: ../Doc/library/re.rst:773
#: ../Doc/library/re.rst:775
msgid ""
"Deprecated since version 3.5, will be removed in version 3.7: Unknown "
"escapes in repl consisting of '\\' and an ASCII letter now raise a "
@ -1605,7 +1603,7 @@ msgstr ""
"maintenant un avertissement de dépréciation et seront interdites en Python "
"3.7."
#: ../Doc/library/re.rst:773
#: ../Doc/library/re.rst:775
msgid ""
"Unknown escapes in *repl* consisting of ``'\\'`` and an ASCII letter now "
"raise a deprecation warning and will be forbidden in Python 3.7."
@ -1614,7 +1612,7 @@ msgstr ""
"lettre ASCII lèvent maintenant un avertissement de dépréciation et seront "
"interdites en Python 3.7."
#: ../Doc/library/re.rst:778
#: ../Doc/library/re.rst:780
msgid ""
"Perform the same operation as :func:`sub`, but return a tuple ``(new_string, "
"number_of_subs_made)``."
@ -1622,7 +1620,7 @@ msgstr ""
"Réalise la même opération que :func:`sub`, mais renvoie un *tuple* "
"``(nouvelle_chaîne, nombre_de_substitutions_réalisées)``."
#: ../Doc/library/re.rst:790
#: ../Doc/library/re.rst:792
msgid ""
"Escape all the characters in *pattern* except ASCII letters, numbers and "
"``'_'``. This is useful if you want to match an arbitrary literal string "
@ -1633,15 +1631,15 @@ msgstr ""
"quelconque chaîne littérale qui pourrait contenir des métacaractères "
"d'expressions rationnelles. Par exemple : ::"
#: ../Doc/library/re.rst:805
#: ../Doc/library/re.rst:807
msgid "The ``'_'`` character is no longer escaped."
msgstr "Le caractère ``'_'`` n'est plus échappé."
#: ../Doc/library/re.rst:811
#: ../Doc/library/re.rst:813
msgid "Clear the regular expression cache."
msgstr "Vide le cache d'expressions rationnelles."
#: ../Doc/library/re.rst:816
#: ../Doc/library/re.rst:818
msgid ""
"Exception raised when a string passed to one of the functions here is not a "
"valid regular expression (for example, it might contain unmatched "
@ -1656,36 +1654,36 @@ msgstr ""
"contient aucune correspondance pour un motif. Les instances de l'erreur ont "
"les attributs additionnels suivants :"
#: ../Doc/library/re.rst:824
#: ../Doc/library/re.rst:826
msgid "The unformatted error message."
msgstr "Le message d'erreur non formaté."
#: ../Doc/library/re.rst:828
#: ../Doc/library/re.rst:830
msgid "The regular expression pattern."
msgstr "Le motif d'expression rationnelle."
#: ../Doc/library/re.rst:832
#: ../Doc/library/re.rst:834
msgid "The index in *pattern* where compilation failed (may be ``None``)."
msgstr ""
"L'index dans *pattern* où la compilation a échoué (peut valoir ``None``)."
#: ../Doc/library/re.rst:836
#: ../Doc/library/re.rst:838
msgid "The line corresponding to *pos* (may be ``None``)."
msgstr "La ligne correspondant à *pos* (peut valoir ``None``)."
#: ../Doc/library/re.rst:840
#: ../Doc/library/re.rst:842
msgid "The column corresponding to *pos* (may be ``None``)."
msgstr "La colonne correspondant à *pos* (peut valoir ``None``)."
#: ../Doc/library/re.rst:842
#: ../Doc/library/re.rst:844
msgid "Added additional attributes."
msgstr "Ajout des attributs additionnels."
#: ../Doc/library/re.rst:848
#: ../Doc/library/re.rst:850
msgid "Regular Expression Objects"
msgstr "Objets d'expressions rationnelles"
#: ../Doc/library/re.rst:850
#: ../Doc/library/re.rst:852
msgid ""
"Compiled regular expression objects support the following methods and "
"attributes:"
@ -1693,7 +1691,7 @@ msgstr ""
"Les expressions rationnelles compilées supportent les méthodes et attributs "
"suivants :"
#: ../Doc/library/re.rst:855
#: ../Doc/library/re.rst:857
msgid ""
"Scan through *string* looking for the first location where this regular "
"expression produces a match, and return a corresponding :ref:`match object "
@ -1707,7 +1705,7 @@ msgstr ""
"dans la chaîne ne satisfait le motif ; notez que cela est différent que de "
"trouver une correspondance vide dans la chaîne."
#: ../Doc/library/re.rst:861
#: ../Doc/library/re.rst:863
msgid ""
"The optional second parameter *pos* gives an index in the string where the "
"search is to start; it defaults to ``0``. This is not completely equivalent "
@ -1721,7 +1719,7 @@ msgstr ""
"``'^'`` correspond au début réel de la chaîne et aux positions juste après "
"un saut de ligne, mais pas nécessairement à l'index où la recherche commence."
#: ../Doc/library/re.rst:867
#: ../Doc/library/re.rst:869
msgid ""
"The optional parameter *endpos* limits how far the string will be searched; "
"it will be as if the string is *endpos* characters long, so only the "
@ -1738,7 +1736,7 @@ msgstr ""
"expression rationnelle compilée, ``rx.search(string, 0, 50)`` est équivalent "
"à ``rx.search(string[:50], 0)``."
#: ../Doc/library/re.rst:882
#: ../Doc/library/re.rst:884
msgid ""
"If zero or more characters at the *beginning* of *string* match this regular "
"expression, return a corresponding :ref:`match object <match-objects>`. "
@ -1750,7 +1748,7 @@ msgstr ""
"objects>` trouvé. Renvoie ``None`` si la chaîne ne correspond pas au motif ; "
"notez que cela est différent d'une correspondance vide."
#: ../Doc/library/re.rst:887 ../Doc/library/re.rst:905
#: ../Doc/library/re.rst:889 ../Doc/library/re.rst:907
msgid ""
"The optional *pos* and *endpos* parameters have the same meaning as for the :"
"meth:`~regex.search` method."
@ -1758,7 +1756,7 @@ msgstr ""
"Les paramètres optionnels *pos* et *endpos* ont le même sens que pour la "
"méthode :meth:`~regex.search`."
#: ../Doc/library/re.rst:895
#: ../Doc/library/re.rst:897
msgid ""
"If you want to locate a match anywhere in *string*, use :meth:`~regex."
"search` instead (see also :ref:`search-vs-match`)."
@ -1766,7 +1764,7 @@ msgstr ""
"Si vous voulez une recherche n'importe où dans *string*, utilisez plutôt :"
"meth:`~regex.search` (voir aussi :ref:`search-vs-match`)."
#: ../Doc/library/re.rst:901
#: ../Doc/library/re.rst:903
msgid ""
"If the whole *string* matches this regular expression, return a "
"corresponding :ref:`match object <match-objects>`. Return ``None`` if the "
@ -1778,11 +1776,11 @@ msgstr ""
"la chaîne ne correspond pas au motif ; notez que cela est différent d'une "
"correspondance vide."
#: ../Doc/library/re.rst:919
#: ../Doc/library/re.rst:921
msgid "Identical to the :func:`split` function, using the compiled pattern."
msgstr "Identique à la fonction :func:`split`, en utilisant le motif compilé."
#: ../Doc/library/re.rst:924
#: ../Doc/library/re.rst:926
msgid ""
"Similar to the :func:`findall` function, using the compiled pattern, but "
"also accepts optional *pos* and *endpos* parameters that limit the search "
@ -1792,7 +1790,7 @@ msgstr ""
"accepte aussi des paramètres *pos* et *endpos* optionnels qui limitent la "
"région de recherche comme pour :meth:`match`."
#: ../Doc/library/re.rst:931
#: ../Doc/library/re.rst:933
msgid ""
"Similar to the :func:`finditer` function, using the compiled pattern, but "
"also accepts optional *pos* and *endpos* parameters that limit the search "
@ -1802,15 +1800,15 @@ msgstr ""
"mais accepte aussi des paramètres *pos* et *endpos* optionnels qui limitent "
"la région de recherche comme pour :meth:`match`."
#: ../Doc/library/re.rst:938
#: ../Doc/library/re.rst:940
msgid "Identical to the :func:`sub` function, using the compiled pattern."
msgstr "Identique à la fonction :func:`sub`, en utilisant le motif compilé."
#: ../Doc/library/re.rst:943
#: ../Doc/library/re.rst:945
msgid "Identical to the :func:`subn` function, using the compiled pattern."
msgstr "Identique à la fonction :func:`subn`, en utilisant le motif compilé."
#: ../Doc/library/re.rst:948
#: ../Doc/library/re.rst:950
msgid ""
"The regex matching flags. This is a combination of the flags given to :func:"
"`.compile`, any ``(?...)`` inline flags in the pattern, and implicit flags "
@ -1821,11 +1819,11 @@ msgstr ""
"``(?...)`` dans le motif, et des options implicites comme :data:`UNICODE` si "
"le motif est une chaîne Unicode."
#: ../Doc/library/re.rst:955
#: ../Doc/library/re.rst:957
msgid "The number of capturing groups in the pattern."
msgstr "Le nombre de groupes capturants dans le motif."
#: ../Doc/library/re.rst:960
#: ../Doc/library/re.rst:962
msgid ""
"A dictionary mapping any symbolic group names defined by ``(?P<id>)`` to "
"group numbers. The dictionary is empty if no symbolic groups were used in "
@ -1835,17 +1833,17 @@ msgstr ""
"P<id>)`` aux groupes numérotés. Le dictionnaire est vide si aucun groupe "
"symbolique n'est utilisé dans le motif."
#: ../Doc/library/re.rst:967
#: ../Doc/library/re.rst:969
msgid "The pattern string from which the RE object was compiled."
msgstr ""
"La chaîne de motif depuis laquelle l'objet expression rationnelle a été "
"compilé."
#: ../Doc/library/re.rst:973
#: ../Doc/library/re.rst:975
msgid "Match Objects"
msgstr "Objets de correspondance"
#: ../Doc/library/re.rst:975
#: ../Doc/library/re.rst:977
msgid ""
"Match objects always have a boolean value of ``True``. Since :meth:`~regex."
"match` and :meth:`~regex.search` return ``None`` when there is no match, you "
@ -1856,12 +1854,12 @@ msgstr ""
"quand il n'y a pas de correspondance, vous pouvez tester s'il y a eu "
"correspondance avec une simple instruction ``if`` : ::"
#: ../Doc/library/re.rst:984
#: ../Doc/library/re.rst:986
msgid "Match objects support the following methods and attributes:"
msgstr ""
"Les objets de correspondance supportent les méthodes et attributs suivants :"
#: ../Doc/library/re.rst:989
#: ../Doc/library/re.rst:991
msgid ""
"Return the string obtained by doing backslash substitution on the template "
"string *template*, as done by the :meth:`~regex.sub` method. Escapes such as "
@ -1876,7 +1874,7 @@ msgstr ""
"\\g<1>``, ``\\g<name>``) sont remplacées par les contenus des groupes "
"correspondant."
#: ../Doc/library/re.rst:1001
#: ../Doc/library/re.rst:1003
msgid ""
"Returns one or more subgroups of the match. If there is a single argument, "
"the result is a single string; if there are multiple arguments, the result "
@ -1903,7 +1901,7 @@ msgstr ""
"sera ``None``. Si un groupe est contenu dans une partie du motif qui a "
"plusieurs correspondances, seule la dernière correspondance est renvoyée."
#: ../Doc/library/re.rst:1023
#: ../Doc/library/re.rst:1025
msgid ""
"If the regular expression uses the ``(?P<name>...)`` syntax, the *groupN* "
"arguments may also be strings identifying groups by their group name. If a "
@ -1915,20 +1913,20 @@ msgstr ""
"groupes par leurs noms. Si une chaîne donnée en argument n'est pas utilisée "
"comme nom de groupe dans le motif, une exception :exc:`IndexError` est levée."
#: ../Doc/library/re.rst:1028
#: ../Doc/library/re.rst:1030
msgid "A moderately complicated example:"
msgstr "Un exemple modérément compliqué :"
#: ../Doc/library/re.rst:1036
#: ../Doc/library/re.rst:1038
msgid "Named groups can also be referred to by their index:"
msgstr "Les groupes nommés peuvent aussi être référencés par leur index :"
#: ../Doc/library/re.rst:1043
#: ../Doc/library/re.rst:1045
msgid "If a group matches multiple times, only the last match is accessible:"
msgstr ""
"Si un groupe a plusieurs correspondances, seule la dernière est accessible :"
#: ../Doc/library/re.rst:1052
#: ../Doc/library/re.rst:1054
msgid ""
"This is identical to ``m.group(g)``. This allows easier access to an "
"individual group from a match:"
@ -1936,7 +1934,7 @@ msgstr ""
"Cela est identique à ``m.group(g)``. Cela permet un accès plus facile à un "
"groupe individuel depuis une correspondance :"
#: ../Doc/library/re.rst:1068
#: ../Doc/library/re.rst:1070
msgid ""
"Return a tuple containing all the subgroups of the match, from 1 up to "
"however many groups are in the pattern. The *default* argument is used for "
@ -1946,11 +1944,11 @@ msgstr ""
"1 jusqu'au nombre de groupes dans le motif. L'argument *default* est "
"utilisé pour les groupes sans correspondance ; il vaut ``None`` par défaut."
#: ../Doc/library/re.rst:1072
#: ../Doc/library/re.rst:1074
msgid "For example:"
msgstr "Par exemple : ::"
#: ../Doc/library/re.rst:1078
#: ../Doc/library/re.rst:1080
msgid ""
"If we make the decimal place and everything after it optional, not all "
"groups might participate in the match. These groups will default to "
@ -1961,7 +1959,7 @@ msgstr ""
"correspondance vaudront ``None`` sauf si une autre valeur est donnée à "
"l'argument *default* :"
#: ../Doc/library/re.rst:1091
#: ../Doc/library/re.rst:1093
msgid ""
"Return a dictionary containing all the *named* subgroups of the match, keyed "
"by the subgroup name. The *default* argument is used for groups that did "
@ -1972,7 +1970,7 @@ msgstr ""
"utilisé pour les groupes qui ne figurent pas dans la correspondance ; il "
"vaut ``None`` par défaut. Par exemple :"
#: ../Doc/library/re.rst:1103
#: ../Doc/library/re.rst:1105
msgid ""
"Return the indices of the start and end of the substring matched by *group*; "
"*group* defaults to zero (meaning the whole matched substring). Return "
@ -1987,7 +1985,7 @@ msgstr ""
"groupe *g* qui y figure, la sous-chaîne correspondant au groupe *g* "
"(équivalente à ``m.group(g)``) est : ::"
#: ../Doc/library/re.rst:1111
#: ../Doc/library/re.rst:1113
msgid ""
"Note that ``m.start(group)`` will equal ``m.end(group)`` if *group* matched "
"a null string. For example, after ``m = re.search('b(c?)', 'cba')``, ``m."
@ -2000,11 +1998,11 @@ msgstr ""
"end(1)`` valent tous deux 2, et ``m.start(2)`` lève une exception :exc:"
"`IndexError`."
#: ../Doc/library/re.rst:1116
#: ../Doc/library/re.rst:1118
msgid "An example that will remove *remove_this* from email addresses:"
msgstr "Un exemple qui supprimera *remove_this* d'une adresse email :"
#: ../Doc/library/re.rst:1126
#: ../Doc/library/re.rst:1128
msgid ""
"For a match *m*, return the 2-tuple ``(m.start(group), m.end(group))``. Note "
"that if *group* did not contribute to the match, this is ``(-1, -1)``. "
@ -2015,7 +2013,7 @@ msgstr ""
"``(-1, -1)`` est renvoyé. *group* vaut par défaut zéro, pour la "
"correspondance entière."
#: ../Doc/library/re.rst:1133
#: ../Doc/library/re.rst:1135
msgid ""
"The value of *pos* which was passed to the :meth:`~regex.search` or :meth:"
"`~regex.match` method of a :ref:`regex object <re-objects>`. This is the "
@ -2026,7 +2024,7 @@ msgstr ""
"C'est l'index dans la chaîne à partir duquel le moteur d'expressions "
"rationnelles recherche une correspondance."
#: ../Doc/library/re.rst:1140
#: ../Doc/library/re.rst:1142
msgid ""
"The value of *endpos* which was passed to the :meth:`~regex.search` or :meth:"
"`~regex.match` method of a :ref:`regex object <re-objects>`. This is the "
@ -2037,7 +2035,7 @@ msgstr ""
"objects>`. C'est l'index dans la chaîne que le moteur d'expressions "
"rationnelles ne dépassera pas."
#: ../Doc/library/re.rst:1147
#: ../Doc/library/re.rst:1149
msgid ""
"The integer index of the last matched capturing group, or ``None`` if no "
"group was matched at all. For example, the expressions ``(a)b``, ``((a)"
@ -2051,7 +2049,7 @@ msgstr ""
"``'ab'``, alors que l'expression ``(a)(b)`` aura un ``lastindex == 2`` si "
"appliquée à la même chaîne."
#: ../Doc/library/re.rst:1156
#: ../Doc/library/re.rst:1158
msgid ""
"The name of the last matched capturing group, or ``None`` if the group "
"didn't have a name, or if no group was matched at all."
@ -2059,7 +2057,7 @@ msgstr ""
"Le nom du dernier groupe capturant validé, ou ``None`` si le groupe n'a pas "
"de nom, ou si aucun groupe ne correspondait."
#: ../Doc/library/re.rst:1162
#: ../Doc/library/re.rst:1164
msgid ""
"The regular expression object whose :meth:`~regex.match` or :meth:`~regex."
"search` method produced this match instance."
@ -2067,19 +2065,19 @@ msgstr ""
"L'expression rationnelle dont la méthode :meth:`~regex.match` ou :meth:"
"`~regex.search` a produit cet objet de correspondance."
#: ../Doc/library/re.rst:1168
#: ../Doc/library/re.rst:1170
msgid "The string passed to :meth:`~regex.match` or :meth:`~regex.search`."
msgstr "La chaîne passée à :meth:`~regex.match` ou :meth:`~regex.search`."
#: ../Doc/library/re.rst:1174
#: ../Doc/library/re.rst:1176
msgid "Regular Expression Examples"
msgstr "Exemples d'expressions rationnelles"
#: ../Doc/library/re.rst:1178
#: ../Doc/library/re.rst:1180
msgid "Checking for a Pair"
msgstr "Rechercher une paire"
#: ../Doc/library/re.rst:1180
#: ../Doc/library/re.rst:1182
msgid ""
"In this example, we'll use the following helper function to display match "
"objects a little more gracefully:"
@ -2087,7 +2085,7 @@ msgstr ""
"Dans cet exemple, nous utiliserons cette fonction de facilité pour afficher "
"les objets de correspondance sous une meilleure forme :"
#: ../Doc/library/re.rst:1190
#: ../Doc/library/re.rst:1192
msgid ""
"Suppose you are writing a poker program where a player's hand is represented "
"as a 5-character string with each character representing a card, \"a\" for "
@ -2101,13 +2099,13 @@ msgstr ""
"(*ten*), et les caractères de \"2\" à \"9\" représentant les cartes avec ces "
"valeurs."
#: ../Doc/library/re.rst:1195
#: ../Doc/library/re.rst:1197
msgid "To see if a given string is a valid hand, one could do the following:"
msgstr ""
"Pour vérifier qu'une chaîne donnée est une main valide, on pourrait faire "
"comme suit :"
#: ../Doc/library/re.rst:1205
#: ../Doc/library/re.rst:1207
msgid ""
"That last hand, ``\"727ak\"``, contained a pair, or two of the same valued "
"cards. To match this with a regular expression, one could use backreferences "
@ -2117,7 +2115,7 @@ msgstr ""
"valeur. Pour valider cela avec une expression rationnelle, on pourrait "
"utiliser des références arrière comme :"
#: ../Doc/library/re.rst:1215
#: ../Doc/library/re.rst:1217
msgid ""
"To find out what card the pair consists of, one could use the :meth:`~match."
"group` method of the match object in the following manner:"
@ -2126,11 +2124,11 @@ msgstr ""
"méthode :meth:`~match.group` de l'objet de correspondance de la manière "
"suivante :"
#: ../Doc/library/re.rst:1235
#: ../Doc/library/re.rst:1237
msgid "Simulating scanf()"
msgstr "Simuler scanf()"
#: ../Doc/library/re.rst:1239
#: ../Doc/library/re.rst:1241
msgid ""
"Python does not currently have an equivalent to :c:func:`scanf`. Regular "
"expressions are generally more powerful, though also more verbose, than :c:"
@ -2144,104 +2142,104 @@ msgstr ""
"suivant présente des expressions rationnelles plus ou moins équivalentes aux "
"éléments de formats de :c:func:`scanf`."
#: ../Doc/library/re.rst:1246
#: ../Doc/library/re.rst:1248
msgid ":c:func:`scanf` Token"
msgstr "Élément de :c:func:`scanf`"
#: ../Doc/library/re.rst:1246
#: ../Doc/library/re.rst:1248
msgid "Regular Expression"
msgstr "Expression rationnelle"
#: ../Doc/library/re.rst:1248
#: ../Doc/library/re.rst:1250
msgid "``%c``"
msgstr "``%c``"
#: ../Doc/library/re.rst:1248
#: ../Doc/library/re.rst:1250
msgid "``.``"
msgstr "``.``"
#: ../Doc/library/re.rst:1250
#: ../Doc/library/re.rst:1252
msgid "``%5c``"
msgstr "``%5c``"
#: ../Doc/library/re.rst:1250
#: ../Doc/library/re.rst:1252
msgid "``.{5}``"
msgstr "``.{5}``"
#: ../Doc/library/re.rst:1252
#: ../Doc/library/re.rst:1254
msgid "``%d``"
msgstr "``%d``"
#: ../Doc/library/re.rst:1252
#: ../Doc/library/re.rst:1254
msgid "``[-+]?\\d+``"
msgstr "``[-+]?\\d+``"
#: ../Doc/library/re.rst:1254
#: ../Doc/library/re.rst:1256
msgid "``%e``, ``%E``, ``%f``, ``%g``"
msgstr "``%e``, ``%E``, ``%f``, ``%g``"
#: ../Doc/library/re.rst:1254
#: ../Doc/library/re.rst:1256
msgid "``[-+]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?``"
msgstr "``[-+]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?``"
#: ../Doc/library/re.rst:1256
#: ../Doc/library/re.rst:1258
msgid "``%i``"
msgstr "``%i``"
#: ../Doc/library/re.rst:1256
#: ../Doc/library/re.rst:1258
msgid "``[-+]?(0[xX][\\dA-Fa-f]+|0[0-7]*|\\d+)``"
msgstr "``[-+]?(0[xX][\\dA-Fa-f]+|0[0-7]*|\\d+)``"
#: ../Doc/library/re.rst:1258
#: ../Doc/library/re.rst:1260
msgid "``%o``"
msgstr "``%o``"
#: ../Doc/library/re.rst:1258
#: ../Doc/library/re.rst:1260
msgid "``[-+]?[0-7]+``"
msgstr "``[-+]?[0-7]+``"
#: ../Doc/library/re.rst:1260
#: ../Doc/library/re.rst:1262
msgid "``%s``"
msgstr "``%s``"
#: ../Doc/library/re.rst:1260
#: ../Doc/library/re.rst:1262
msgid "``\\S+``"
msgstr "``\\S+``"
#: ../Doc/library/re.rst:1262
#: ../Doc/library/re.rst:1264
msgid "``%u``"
msgstr "``%u``"
#: ../Doc/library/re.rst:1262
#: ../Doc/library/re.rst:1264
msgid "``\\d+``"
msgstr "``\\d+``"
#: ../Doc/library/re.rst:1264
#: ../Doc/library/re.rst:1266
msgid "``%x``, ``%X``"
msgstr "``%x``, ``%X``"
#: ../Doc/library/re.rst:1264
#: ../Doc/library/re.rst:1266
msgid "``[-+]?(0[xX])?[\\dA-Fa-f]+``"
msgstr "``[-+]?(0[xX])?[\\dA-Fa-f]+``"
#: ../Doc/library/re.rst:1267
#: ../Doc/library/re.rst:1269
msgid "To extract the filename and numbers from a string like ::"
msgstr ""
"Pour extraire le nom de fichier et les nombres depuis une chaîne comme : ::"
#: ../Doc/library/re.rst:1271
#: ../Doc/library/re.rst:1273
msgid "you would use a :c:func:`scanf` format like ::"
msgstr "vous utiliseriez un format :c:func:`scanf` comme : ::"
#: ../Doc/library/re.rst:1275
#: ../Doc/library/re.rst:1277
msgid "The equivalent regular expression would be ::"
msgstr "L'expression rationnelle équivalente serait : ::"
#: ../Doc/library/re.rst:1283
#: ../Doc/library/re.rst:1285
msgid "search() vs. match()"
msgstr "search() vs. match()"
#: ../Doc/library/re.rst:1287
#: ../Doc/library/re.rst:1289
msgid ""
"Python offers two different primitive operations based on regular "
"expressions: :func:`re.match` checks for a match only at the beginning of "
@ -2253,11 +2251,11 @@ msgstr ""
"début de la chaîne, tandis que :func:`re.search` en recherche une n'importe "
"où dans la chaîne (ce que fait Perl par défaut)."
#: ../Doc/library/re.rst:1292
#: ../Doc/library/re.rst:1294
msgid "For example::"
msgstr "Par exemple : ::"
#: ../Doc/library/re.rst:1298
#: ../Doc/library/re.rst:1300
msgid ""
"Regular expressions beginning with ``'^'`` can be used with :func:`search` "
"to restrict the match at the beginning of the string::"
@ -2265,7 +2263,7 @@ msgstr ""
"Les expressions rationnelles commençant par ``'^'`` peuvent être utilisées "
"avec :func:`search` pour restreindre la recherche au début de la chaîne : ::"
#: ../Doc/library/re.rst:1306
#: ../Doc/library/re.rst:1308
msgid ""
"Note however that in :const:`MULTILINE` mode :func:`match` only matches at "
"the beginning of the string, whereas using :func:`search` with a regular "
@ -2275,11 +2273,11 @@ msgstr ""
"qu'au début de la chaîne, alors que :func:`search` avec une expression "
"rationnelle commençant par ``'^'`` recherchera au début de chaque ligne."
#: ../Doc/library/re.rst:1316
#: ../Doc/library/re.rst:1318
msgid "Making a Phonebook"
msgstr "Construire un répertoire téléphonique"
#: ../Doc/library/re.rst:1318
#: ../Doc/library/re.rst:1320
msgid ""
":func:`split` splits a string into a list delimited by the passed pattern. "
"The method is invaluable for converting textual data into data structures "
@ -2291,7 +2289,7 @@ msgstr ""
"structures de données qui peuvent être lues et modifiées par Python comme "
"démontré dans l'exemple suivant qui crée un répertoire téléphonique."
#: ../Doc/library/re.rst:1323
#: ../Doc/library/re.rst:1325
msgid ""
"First, here is the input. Normally it may come from a file, here we are "
"using triple-quoted string syntax:"
@ -2299,7 +2297,7 @@ msgstr ""
"Premièrement, voici l'entrée. Elle provient normalement d'un fichier, nous "
"utilisons ici une chaîne à guillemets triples :"
#: ../Doc/library/re.rst:1334
#: ../Doc/library/re.rst:1336
msgid ""
"The entries are separated by one or more newlines. Now we convert the string "
"into a list with each nonempty line having its own entry:"
@ -2308,7 +2306,7 @@ msgstr ""
"maintenant la chaîne en une liste où chaque ligne non vide aura sa propre "
"entrée :"
#: ../Doc/library/re.rst:1347
#: ../Doc/library/re.rst:1349
msgid ""
"Finally, split each entry into a list with first name, last name, telephone "
"number, and address. We use the ``maxsplit`` parameter of :func:`split` "
@ -2319,7 +2317,7 @@ msgstr ""
"`split` parce que l'adresse contient des espaces, qui sont notre motif de "
"séparation :"
#: ../Doc/library/re.rst:1360
#: ../Doc/library/re.rst:1362
msgid ""
"The ``:?`` pattern matches the colon after the last name, so that it does "
"not occur in the result list. With a ``maxsplit`` of ``4``, we could "
@ -2329,11 +2327,11 @@ msgstr ""
"qu'ils n'apparaissent pas dans la liste résultante. Avec un ``maxsplit`` de "
"``4``, nous pourrions séparer le numéro du nom de la rue."
#: ../Doc/library/re.rst:1375
#: ../Doc/library/re.rst:1377
msgid "Text Munging"
msgstr "Mélanger les lettres des mots"
#: ../Doc/library/re.rst:1377
#: ../Doc/library/re.rst:1379
msgid ""
":func:`sub` replaces every occurrence of a pattern with a string or the "
"result of a function. This example demonstrates using :func:`sub` with a "
@ -2345,11 +2343,11 @@ msgstr ""
"avec une fonction qui mélange aléatoirement les caractères de chaque mot "
"dans une phrase (à l'exception des premiers et derniers caractères) : ::"
#: ../Doc/library/re.rst:1394
#: ../Doc/library/re.rst:1396
msgid "Finding all Adverbs"
msgstr "Trouver tous les adverbes"
#: ../Doc/library/re.rst:1396
#: ../Doc/library/re.rst:1398
msgid ""
":func:`findall` matches *all* occurrences of a pattern, not just the first "
"one as :func:`search` does. For example, if one was a writer and wanted to "
@ -2361,11 +2359,11 @@ msgstr ""
"voulait trouver tous les adverbes dans un texte, il/elle devrait utiliser :"
"func:`findall` de la manière suivante :"
#: ../Doc/library/re.rst:1407
#: ../Doc/library/re.rst:1409
msgid "Finding all Adverbs and their Positions"
msgstr "Trouver tous les adverbes et leurs positions"
#: ../Doc/library/re.rst:1409
#: ../Doc/library/re.rst:1411
msgid ""
"If one wants more information about all matches of a pattern than the "
"matched text, :func:`finditer` is useful as it provides :ref:`match objects "
@ -2381,11 +2379,11 @@ msgstr ""
"leurs positions* dans un texte, il/elle utiliserait :func:`finditer` de la "
"manière suivante :"
#: ../Doc/library/re.rst:1423
#: ../Doc/library/re.rst:1425
msgid "Raw String Notation"
msgstr "Notation brutes de chaînes"
#: ../Doc/library/re.rst:1425
#: ../Doc/library/re.rst:1427
msgid ""
"Raw string notation (``r\"text\"``) keeps regular expressions sane. Without "
"it, every backslash (``'\\'``) in a regular expression would have to be "
@ -2398,7 +2396,7 @@ msgstr ""
"Par exemple, les deux lignes de code suivantes sont fonctionnellement "
"identiques :"
#: ../Doc/library/re.rst:1435
#: ../Doc/library/re.rst:1437
msgid ""
"When one wants to match a literal backslash, it must be escaped in the "
"regular expression. With raw string notation, this means ``r\"\\\\\"``. "
@ -2410,11 +2408,11 @@ msgstr ""
"\"``. Sans elle, il faudrait utiliser ``\"\\\\\\\\\"``, faisant que les "
"deux lignes de code suivantes sont fonctionnellement identiques :"
#: ../Doc/library/re.rst:1447
#: ../Doc/library/re.rst:1449
msgid "Writing a Tokenizer"
msgstr "Écrire un analyseur lexical"
#: ../Doc/library/re.rst:1449
#: ../Doc/library/re.rst:1451
msgid ""
"A `tokenizer or scanner <https://en.wikipedia.org/wiki/Lexical_analysis>`_ "
"analyzes a string to categorize groups of characters. This is a useful "
@ -2425,7 +2423,7 @@ msgstr ""
"caractères. C'est une première étape utile dans l'écriture d'un compilateur "
"ou d'un interpréteur."
#: ../Doc/library/re.rst:1453
#: ../Doc/library/re.rst:1455
msgid ""
"The text categories are specified with regular expressions. The technique "
"is to combine those into a single master regular expression and to loop over "
@ -2435,10 +2433,20 @@ msgstr ""
"La technique est de les combiner dans une unique expression rationnelle "
"maîtresse, et de boucler sur les correspondances successives : ::"
#: ../Doc/library/re.rst:1503
#: ../Doc/library/re.rst:1505
msgid "The tokenizer produces the following output::"
msgstr "L'analyseur produit la sortie suivante : ::"
#~ msgid ""
#~ "Perform case-insensitive matching; expressions like ``[A-Z]`` will match "
#~ "lowercase letters, too. This is not affected by the current locale and "
#~ "works for Unicode characters as expected."
#~ msgstr ""
#~ "Réalise une analyse insensible à la classe ; les expressions comme ``[A-"
#~ "Z]`` valideront aussi les lettres minuscules. Cela n'est pas affecté par "
#~ "la locale courante et fonctionne comme convenu avec les caractères "
#~ "Unicode."
#, fuzzy
#~ msgid "'.'"
#~ msgstr "``'.'``"

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-10 00:49+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -1247,81 +1247,90 @@ msgid ""
msgstr ""
#: ../Doc/library/subprocess.rst:1169
msgid "Return ``(status, output)`` of executing *cmd* in a shell."
msgid "Return ``(exitcode, output)`` of executing *cmd* in a shell."
msgstr ""
#: ../Doc/library/subprocess.rst:1171
msgid ""
"Execute the string *cmd* in a shell with :meth:`Popen.check_output` and "
"return a 2-tuple ``(status, output)``. The locale encoding is used; see the "
"notes on :ref:`frequently-used-arguments` for more details."
"return a 2-tuple ``(exitcode, output)``. The locale encoding is used; see "
"the notes on :ref:`frequently-used-arguments` for more details."
msgstr ""
#: ../Doc/library/subprocess.rst:1175
msgid ""
"A trailing newline is stripped from the output. The exit status for the "
"command can be interpreted according to the rules for the C function :c:func:"
"`wait`. Example::"
"A trailing newline is stripped from the output. The exit code for the "
"command can be interpreted as the return code of subprocess. Example::"
msgstr ""
#: ../Doc/library/subprocess.rst:1186 ../Doc/library/subprocess.rst:1202
#: ../Doc/library/subprocess.rst:1188 ../Doc/library/subprocess.rst:1207
msgid "Availability: POSIX & Windows"
msgstr ""
#: ../Doc/library/subprocess.rst:1188 ../Doc/library/subprocess.rst:1204
msgid "Windows support added"
#: ../Doc/library/subprocess.rst:1190
msgid "Windows support was added."
msgstr ""
#: ../Doc/library/subprocess.rst:1194
#: ../Doc/library/subprocess.rst:1193
msgid ""
"The function now returns (exitcode, output) instead of (status, output) as "
"it did in Python 3.3.3 and earlier. See :func:`WEXITSTATUS`."
msgstr ""
#: ../Doc/library/subprocess.rst:1199
msgid "Return output (stdout and stderr) of executing *cmd* in a shell."
msgstr ""
#: ../Doc/library/subprocess.rst:1196
#: ../Doc/library/subprocess.rst:1201
msgid ""
"Like :func:`getstatusoutput`, except the exit status is ignored and the "
"return value is a string containing the command's output. Example::"
msgstr ""
#: ../Doc/library/subprocess.rst:1209
msgid "Windows support added"
msgstr ""
#: ../Doc/library/subprocess.rst:1214
msgid "Notes"
msgstr "Notes"
#: ../Doc/library/subprocess.rst:1214
#: ../Doc/library/subprocess.rst:1219
msgid "Converting an argument sequence to a string on Windows"
msgstr ""
#: ../Doc/library/subprocess.rst:1216
#: ../Doc/library/subprocess.rst:1221
msgid ""
"On Windows, an *args* sequence is converted to a string that can be parsed "
"using the following rules (which correspond to the rules used by the MS C "
"runtime):"
msgstr ""
#: ../Doc/library/subprocess.rst:1220
#: ../Doc/library/subprocess.rst:1225
msgid ""
"Arguments are delimited by white space, which is either a space or a tab."
msgstr ""
#: ../Doc/library/subprocess.rst:1223
#: ../Doc/library/subprocess.rst:1228
msgid ""
"A string surrounded by double quotation marks is interpreted as a single "
"argument, regardless of white space contained within. A quoted string can "
"be embedded in an argument."
msgstr ""
#: ../Doc/library/subprocess.rst:1228
#: ../Doc/library/subprocess.rst:1233
msgid ""
"A double quotation mark preceded by a backslash is interpreted as a literal "
"double quotation mark."
msgstr ""
#: ../Doc/library/subprocess.rst:1231
#: ../Doc/library/subprocess.rst:1236
msgid ""
"Backslashes are interpreted literally, unless they immediately precede a "
"double quotation mark."
msgstr ""
#: ../Doc/library/subprocess.rst:1234
#: ../Doc/library/subprocess.rst:1239
msgid ""
"If backslashes immediately precede a double quotation mark, every pair of "
"backslashes is interpreted as a literal backslash. If the number of "
@ -1329,10 +1338,10 @@ msgid ""
"mark as described in rule 3."
msgstr ""
#: ../Doc/library/subprocess.rst:1243
#: ../Doc/library/subprocess.rst:1248
msgid ":mod:`shlex`"
msgstr ""
#: ../Doc/library/subprocess.rst:1244
#: ../Doc/library/subprocess.rst:1249
msgid "Module which provides function to parse and escape command lines."
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-01 13:21+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -1271,9 +1271,9 @@ msgstr ""
#: ../Doc/reference/import.rst:966
msgid ""
"The import machinery has evolved considerably since Python's early days. "
"The original `specification for packages <http://legacy.python.org/doc/"
"essays/packages.html>`_ is still available to read, although some details "
"have changed since the writing of that document."
"The original `specification for packages <https://www.python.org/doc/essays/"
"packages/>`_ is still available to read, although some details have changed "
"since the writing of that document."
msgstr ""
#: ../Doc/reference/import.rst:971

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-29 14:32+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: 2017-05-16 13:58+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
@ -17,17 +17,9 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.11\n"
#: ../Doc/tools/templates/customsourcelink.html:3
msgid "This Page"
msgstr "Cette Page"
#: ../Doc/tools/templates/customsourcelink.html:5
msgid "Report a Bug"
msgstr "Rapporter un bug"
#: ../Doc/tools/templates/customsourcelink.html:8
msgid "Show Source"
msgstr "Voir la source"
#: ../Doc/tools/templates/dummy.html:6
msgid "CPython implementation detail:"
msgstr "Particularité de l'implémentation CPython :"
#: ../Doc/tools/templates/indexsidebar.html:1
msgid "Download"
@ -77,9 +69,17 @@ msgstr "Liste de Livres"
msgid "Audio/Visual Talks"
msgstr "Discours audiovisuels"
#: ../Doc/tools/templates/dummy.html:6
msgid "CPython implementation detail:"
msgstr "Particularité de l'implémentation CPython :"
#: ../Doc/tools/templates/customsourcelink.html:3
msgid "This Page"
msgstr "Cette Page"
#: ../Doc/tools/templates/customsourcelink.html:5
msgid "Report a Bug"
msgstr "Rapporter un bug"
#: ../Doc/tools/templates/customsourcelink.html:8
msgid "Show Source"
msgstr "Voir la source"
#: ../Doc/tools/templates/indexcontent.html:8
msgid "Welcome! This is the documentation for Python %(release)s."

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-27 19:40+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -113,8 +113,8 @@ msgstr ""
msgid ""
"If you want to compile CPython yourself, first thing you should do is get "
"the `source <https://www.python.org/downloads/source/>`_. You can download "
"either the latest release's source or just grab a fresh `clone <https://docs."
"python.org/devguide/setup.html#getting-the-source-code>`_. (If you want to "
"either the latest release's source or just grab a fresh `clone <https://"
"devguide.python.org/setup/#getting-the-source-code>`_. (If you want to "
"contribute patches, you will need a clone.)"
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-10 00:49+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -1490,7 +1490,7 @@ msgid ""
"If you want to compile CPython yourself, first thing you should do is get "
"the `source <https://www.python.org/downloads/source/>`_. You can download "
"either the latest release's source or just grab a fresh `checkout <https://"
"docs.python.org/devguide/setup.html#getting-the-source-code>`_."
"devguide.python.org/setup/#getting-the-source-code>`_."
msgstr ""
#: ../Doc/using/windows.rst:901

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-27 19:40+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: 2017-08-10 00:53+0200\n"
"Last-Translator: Julien Palard <julien@palard.fr>\n"
"Language-Team: \n"
@ -274,8 +274,7 @@ msgid ""
msgstr ""
#: ../Doc/whatsnew/2.6.rst:236
msgid ""
"`Documenting Python <https://docs.python.org/devguide/documenting.html>`__"
msgid "`Documenting Python <https://devguide.python.org/documenting/>`__"
msgstr ""
#: ../Doc/whatsnew/2.6.rst:236

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-10 00:49+0200\n"
"POT-Creation-Date: 2017-09-12 13:37+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -2662,11 +2662,10 @@ msgstr ""
#: ../Doc/whatsnew/3.4.rst:1962
msgid ""
"A new ``make`` target `coverage-report <https://docs.python.org/devguide/"
"coverage.html#measuring-coverage-of-c-code-with-gcov-and-lcov>`_ will build "
"python, run the test suite, and generate an HTML coverage report for the C "
"codebase using ``gcov`` and `lcov <http://ltp.sourceforge.net/coverage/lcov."
"php>`_."
"A new ``make`` target `coverage-report <https://devguide.python.org/coverage/"
"#measuring-coverage-of-c-code-with-gcov-and-lcov>`_ will build python, run "
"the test suite, and generate an HTML coverage report for the C codebase "
"using ``gcov`` and `lcov <http://ltp.sourceforge.net/coverage/lcov.php>`_."
msgstr ""
#: ../Doc/whatsnew/3.4.rst:1968
@ -2991,8 +2990,8 @@ msgstr ""
#: ../Doc/whatsnew/3.4.rst:2178
msgid ""
"The unmaintained ``Misc/TextMate`` and ``Misc/vim`` directories have been "
"removed (see the `devguide <https://docs.python.org/devguide>`_ for "
"suggestions on what to use instead)."
"removed (see the `devguide <https://devguide.python.org>`_ for suggestions "
"on what to use instead)."
msgstr ""
#: ../Doc/whatsnew/3.4.rst:2182

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff