library/functions: Done.

This commit is contained in:
Julien Palard 2017-12-14 09:10:27 +01:00
parent 5a285bfc73
commit d27e39bf07

View File

@ -2546,7 +2546,7 @@ msgstr ""
#: ../Doc/library/functions.rst:1389 #: ../Doc/library/functions.rst:1389
msgid "Transform a method into a static method." msgid "Transform a method into a static method."
msgstr "" msgstr "Transforme une méthode en méthode statique."
#: ../Doc/library/functions.rst:1391 #: ../Doc/library/functions.rst:1391
msgid "" msgid ""
@ -2591,14 +2591,19 @@ msgid ""
"want to avoid the automatic transformation to instance method. For these " "want to avoid the automatic transformation to instance method. For these "
"cases, use this idiom:" "cases, use this idiom:"
msgstr "" msgstr ""
"Comme pour tous les décorateurs, il est possible d'appeler ``staticmethod`` "
"comme une simple fonction, et faire quelque chose de son résultat. Ça peut "
"être nécessaire dans le cas où vous voudriez une référence à la fonction "
"depuis le corps d'une classe, et souhaiteriez éviter sa transformation en "
"méthode d'instance. Pour ces cas, faites comme suit :"
#: ../Doc/library/functions.rst:1415 #: ../Doc/library/functions.rst:1415
msgid "class C:" msgid "class C:"
msgstr "" msgstr "class C:"
#: ../Doc/library/functions.rst:1415 #: ../Doc/library/functions.rst:1415
msgid "builtin_open = staticmethod(open)" msgid "builtin_open = staticmethod(open)"
msgstr "" msgstr "builtin_open = staticmethod(open)"
#: ../Doc/library/functions.rst:1417 #: ../Doc/library/functions.rst:1417
msgid "" msgid ""