@@ -91926,6 +91926,10 @@ msgid ""
91926
91926
"treated as their 2's complement value (this assumes a sufficiently large "
91927
91927
"number of bits that no overflow occurs during the operation)."
91928
91928
msgstr ""
91929
+ "Les opérations sur les bits n'ont de sens que pour les entiers. Les nombres "
91930
+ "négatifssont traités comme leur complément à 2 (ce qui suppose un assez "
91931
+ "grand nombre de bits afin qu'aucun débordement ne se produise pendant "
91932
+ "l'opération)."
91929
91933
91930
91934
#: library/stdtypes.rst:432
91931
91935
msgid ""
@@ -91934,6 +91938,10 @@ msgid ""
91934
91938
"``~`` has the same priority as the other unary numeric operations (``+`` and "
91935
91939
"``-``)."
91936
91940
msgstr ""
91941
+ "Les priorités de toutes les opération à deux opérandes sur des bits sont "
91942
+ "inférieures auxopérations numériques et plus élevées que les comparaisons; "
91943
+ "l'opération unaire ``~`` a la même priorité que les autres opérations "
91944
+ "numériques unaires (``+`` et ``-``)."
91937
91945
91938
91946
#: library/stdtypes.rst:436
91939
91947
msgid "This table lists the bitwise operations sorted in ascending priority:"
@@ -91947,31 +91955,31 @@ msgstr "``x | y``"
91947
91955
91948
91956
#: library/stdtypes.rst:441
91949
91957
msgid "bitwise :dfn:`or` of *x* and *y*"
91950
- msgstr ""
91958
+ msgstr "dfn:`ou <or>` binaire de *x* et *y* "
91951
91959
91952
91960
#: library/stdtypes.rst:444
91953
91961
msgid "``x ^ y``"
91954
91962
msgstr "``x ^ y``"
91955
91963
91956
91964
#: library/stdtypes.rst:444
91957
91965
msgid "bitwise :dfn:`exclusive or` of *x* and *y*"
91958
- msgstr ""
91966
+ msgstr ":dfn:`ou <or>` exclusive binaire de *x* et *y* "
91959
91967
91960
91968
#: library/stdtypes.rst:447
91961
91969
msgid "``x & y``"
91962
91970
msgstr "``x & y``"
91963
91971
91964
91972
#: library/stdtypes.rst:447
91965
91973
msgid "bitwise :dfn:`and` of *x* and *y*"
91966
- msgstr ""
91974
+ msgstr ":dfn:`et binaire <and>` de *x* et *y* "
91967
91975
91968
91976
#: library/stdtypes.rst:450
91969
91977
msgid "``x << n``"
91970
91978
msgstr "``x << n``"
91971
91979
91972
91980
#: library/stdtypes.rst:450
91973
91981
msgid "*x* shifted left by *n* bits"
91974
- msgstr ""
91982
+ msgstr "*x* décalé vers la gauche de *n* bits "
91975
91983
91976
91984
#: library/stdtypes.rst:450
91977
91985
msgid "(1)(2)"
@@ -91983,7 +91991,7 @@ msgstr "``x >> n``"
91983
91991
91984
91992
#: library/stdtypes.rst:452
91985
91993
msgid "*x* shifted right by *n* bits"
91986
- msgstr ""
91994
+ msgstr "*x* décalé vers la droite de *n* bits "
91987
91995
91988
91996
#: library/stdtypes.rst:452
91989
91997
msgid "(1)(3)"
@@ -91995,12 +92003,14 @@ msgstr "``~x``"
91995
92003
91996
92004
#: library/stdtypes.rst:454
91997
92005
msgid "the bits of *x* inverted"
91998
- msgstr ""
92006
+ msgstr "les bits de *x*, inversés "
91999
92007
92000
92008
#: library/stdtypes.rst:460
92001
92009
msgid ""
92002
92010
"Negative shift counts are illegal and cause a :exc:`ValueError` to be raised."
92003
92011
msgstr ""
92012
+ "Des valeurs de décalage négatives sont illégales et provoquent une "
92013
+ "exception :exc:`ValueError`."
92004
92014
92005
92015
#: library/stdtypes.rst:463
92006
92016
msgid ""
@@ -92014,7 +92024,7 @@ msgstr ""
92014
92024
92015
92025
#: library/stdtypes.rst:471
92016
92026
msgid "Additional Methods on Integer Types"
92017
- msgstr ""
92027
+ msgstr "Méthodes supplémentaires sur les entiers "
92018
92028
92019
92029
#: library/stdtypes.rst:473
92020
92030
msgid ""
@@ -92027,6 +92037,8 @@ msgid ""
92027
92037
"Return the number of bits necessary to represent an integer in binary, "
92028
92038
"excluding the sign and leading zeros::"
92029
92039
msgstr ""
92040
+ "Retourne le nombre de bits nécessaires pour représenter un nombre entier en "
92041
+ "binaire, à l'exclusion du signe et des zéros non significatifs : ::"
92030
92042
92031
92043
#: library/stdtypes.rst:488
92032
92044
msgid ""
@@ -92036,29 +92048,41 @@ msgid ""
92036
92048
"logarithm, then ``k = 1 + int(log(abs(x), 2))``. If ``x`` is zero, then ``x."
92037
92049
"bit_length()`` returns ``0``."
92038
92050
msgstr ""
92051
+ "Plus précisément, si ``x`` est différent de zéro, ``x.bit_length()`` est le "
92052
+ "nombre entier positif unique, ``k`` tel que ``2**(k-1) <= abs(x) < 2**k``. "
92053
+ "Équivalemment, quand ``abs(x)`` est assez petit pour avoir un logarithme "
92054
+ "correctement arrondi, ``k = 1 + int(log(abs(x), 2))``. Si ``x`` est nul, "
92055
+ "alors ``x.bit_length()`` retourne ``0``."
92039
92056
92040
92057
#: library/stdtypes.rst:505
92041
92058
msgid "Additional Methods on Float"
92042
- msgstr ""
92059
+ msgstr "Méthodes supplémentaires sur les nombres à virgule flottante "
92043
92060
92044
92061
#: library/stdtypes.rst:507
92045
92062
msgid ""
92046
92063
"The float type implements the :class:`numbers.Real` :term:`abstract base "
92047
92064
"class`. float also has the following additional methods."
92048
92065
msgstr ""
92066
+ "Le type *float* implémente la :term:`abstract base class` :class:`numbers."
92067
+ "Real` et a également les méthodes suivantes."
92049
92068
92050
92069
#: library/stdtypes.rst:512
92051
92070
msgid ""
92052
92071
"Return a pair of integers whose ratio is exactly equal to the original float "
92053
92072
"and with a positive denominator. Raises :exc:`OverflowError` on infinities "
92054
92073
"and a :exc:`ValueError` on NaNs."
92055
92074
msgstr ""
92075
+ "Retourne une paire de nombres entiers dont le rappot est exactement égal au "
92076
+ "nombre d'origine et avec un dénominateur positif. Lève :exc:`OverflowError` "
92077
+ "avec un infini et :exc:`ValueError` avec un NaN."
92056
92078
92057
92079
#: library/stdtypes.rst:521
92058
92080
msgid ""
92059
92081
"Return ``True`` if the float instance is finite with integral value, and "
92060
92082
"``False`` otherwise::"
92061
92083
msgstr ""
92084
+ "Donne ``True`` si l'instance de *float* est finie avec une valeur entière, "
92085
+ "et ``False`` autrement : ::"
92062
92086
92063
92087
#: library/stdtypes.rst:531
92064
92088
msgid ""
@@ -92069,29 +92093,45 @@ msgid ""
92069
92093
"of floating-point numbers. This can be useful when debugging, and in "
92070
92094
"numerical work."
92071
92095
msgstr ""
92096
+ "Deux méthodes prennent en charge la conversion vers et à partir de chaînes "
92097
+ "hexadécimales. Étant donné que les *float* de Python sont stockés en interne "
92098
+ "sous forme de nombres binaires, la conversion d'un *float* depuis ou vers "
92099
+ "une chaine décimale implique généralement une petite erreur d'arrondi. "
92100
+ "En revanche, les chaînes hexadécimales permettent de représenter exactement "
92101
+ "les nombres à virgule flottante. Cela peut être utile lorsdu débogage, et "
92102
+ "dans un travail numérique."
92072
92103
92073
92104
#: library/stdtypes.rst:542
92074
92105
msgid ""
92075
92106
"Return a representation of a floating-point number as a hexadecimal string. "
92076
92107
"For finite floating-point numbers, this representation will always include a "
92077
92108
"leading ``0x`` and a trailing ``p`` and exponent."
92078
92109
msgstr ""
92110
+ "Donne une représentation d'un nombre à virgule flottante sous forme de "
92111
+ "chaîne hexadécimale. Pour les nombres à virgule flottante finis, cette "
92112
+ "représentation comprendra toujours un préfixe ``0x``, un suffixe ``p``, et "
92113
+ "exposant."
92079
92114
92080
92115
#: library/stdtypes.rst:552
92081
92116
msgid ""
92082
92117
"Class method to return the float represented by a hexadecimal string *s*. "
92083
92118
"The string *s* may have leading and trailing whitespace."
92084
92119
msgstr ""
92120
+ "Méthode de classe pour obtenir le *float* représenté par une chaîne de "
92121
+ "caractères hexadécimale *s*. La chaîne *s* peut contenir des espaces avant "
92122
+ "et après le chiffre."
92085
92123
92086
92124
#: library/stdtypes.rst:559
92087
92125
msgid ""
92088
92126
"Note that :meth:`float.hex` is an instance method, while :meth:`float."
92089
92127
"fromhex` is a class method."
92090
92128
msgstr ""
92129
+ "Notez que :meth:`float.hex` est une méthode d'instance, alors que :meth:"
92130
+ "`float.fromhex` est une méthode de classe."
92091
92131
92092
92132
#: library/stdtypes.rst:562
92093
92133
msgid "A hexadecimal string takes the form::"
92094
- msgstr ""
92134
+ msgstr "Une chaîne hexadécimale prend la forme : :: "
92095
92135
92096
92136
#: library/stdtypes.rst:566
92097
92137
msgid ""
0 commit comments