forked from AFPy/python-docs-fr
library/functions: Done.
This commit is contained in:
parent 5a285bfc73
commit d27e39bf07
1 changed files with 8 additions and 3 deletions
| | @ -2546,7 +2546,7 @@ msgstr "" | |||
| ||||
#: ../Doc/library/functions.rst:1389 | ||||
msgid "Transform a method into a static method." | ||||
msgstr "" | ||||
msgstr "Transforme une méthode en méthode statique." | ||||
| ||||
#: ../Doc/library/functions.rst:1391 | ||||
msgid "" | ||||
| | @ -2591,14 +2591,19 @@ msgid "" | |||
"want to avoid the automatic transformation to instance method. For these " | ||||
"cases, use this idiom:" | ||||
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 | ||||
msgid "class C:" | ||||
msgstr "" | ||||
msgstr "class C:" | ||||
| ||||
#: ../Doc/library/functions.rst:1415 | ||||
msgid "builtin_open = staticmethod(open)" | ||||
msgstr "" | ||||
msgstr "builtin_open = staticmethod(open)" | ||||
| ||||
#: ../Doc/library/functions.rst:1417 | ||||
msgid "" | ||||
| | | |||
Loading…
Add table
Add a link
Reference in a new issue