merge pot files.
This commit is contained in:
parent 50c8a573f7
commit 4ef9eaac76
51 changed files with 18031 additions and 17099 deletions
| | @ -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-08-01 13:21+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" | ||||
| | @ -2025,9 +2025,9 @@ msgstr "" | |||
| ||||
#: ../Doc/howto/clinic.rst:1409 | ||||
msgid "" | ||||
"A buffer like ``buffer``. However, a two-pass buffer can only be written " | ||||
"once, and it prints out all text sent to it during all of processing, even " | ||||
"from Clinic blocks *after* the" | ||||
"A buffer like ``buffer``. However, a two-pass buffer can only be dumped " | ||||
"once, and it prints out all text sent to it during all processing, even from " | ||||
"Clinic blocks *after* the dumping point." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/clinic.rst:1415 ../Doc/howto/clinic.rst:1528 | ||||
| | @ -2117,8 +2117,8 @@ msgstr "" | |||
| ||||
#: ../Doc/howto/clinic.rst:1474 | ||||
msgid "" | ||||
"Save up all most of the output from Clinic, to be written into your file " | ||||
"near the end. For Python files implementing modules or builtin types, it's " | ||||
"Save up most of the output from Clinic, to be written into your file near " | ||||
"the end. For Python files implementing modules or builtin types, it's " | ||||
"recommended that you dump the buffer just above the static structures for " | ||||
"your module or builtin type; these are normally very near the end. Using " | ||||
"``buffer`` may require even more editing than ``file``, if your file has " | ||||
| | | |||
| | @ -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-08-01 13:21+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" | ||||
| | @ -110,7 +110,7 @@ msgstr "" | |||
| ||||
#: ../Doc/howto/curses.rst:68 | ||||
msgid "" | ||||
"Thy Python module is a fairly simple wrapper over the C functions provided " | ||||
"The Python module is a fairly simple wrapper over the C functions provided " | ||||
"by curses; if you're already familiar with curses programming in C, it's " | ||||
"really easy to transfer that knowledge to Python. The biggest difference is " | ||||
"that the Python interface makes things simpler by merging different C " | ||||
| | | |||
| | @ -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-08-01 13:21+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" | ||||
| | @ -757,17 +757,18 @@ msgstr "" | |||
| ||||
#: ../Doc/howto/functional.rst:656 | ||||
msgid "" | ||||
":func:`enumerate(iter) <enumerate>` counts off the elements in the iterable, " | ||||
"returning 2-tuples containing the count and each element. ::" | ||||
":func:`enumerate(iter, start=0) <enumerate>` counts off the elements in the " | ||||
"iterable returning 2-tuples containing the count (from *start*) and each " | ||||
"element. ::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:665 | ||||
#: ../Doc/howto/functional.rst:666 | ||||
msgid "" | ||||
":func:`enumerate` is often used when looping through a list and recording " | ||||
"the indexes at which certain conditions are met::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:673 | ||||
#: ../Doc/howto/functional.rst:674 | ||||
msgid "" | ||||
":func:`sorted(iterable, key=None, reverse=False) <sorted>` collects all the " | ||||
"elements of the iterable into a list, sorts the list, and returns the sorted " | ||||
| | @ -775,12 +776,12 @@ msgid "" | |||
"constructed list's :meth:`~list.sort` method. ::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:688 | ||||
#: ../Doc/howto/functional.rst:689 | ||||
msgid "" | ||||
"(For a more detailed discussion of sorting, see the :ref:`sortinghowto`.)" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:691 | ||||
#: ../Doc/howto/functional.rst:692 | ||||
msgid "" | ||||
"The :func:`any(iter) <any>` and :func:`all(iter) <all>` built-ins look at " | ||||
"the truth values of an iterable's contents. :func:`any` returns ``True`` if " | ||||
| | @ -788,13 +789,13 @@ msgid "" | |||
"``True`` if all of the elements are true values:" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:710 | ||||
#: ../Doc/howto/functional.rst:711 | ||||
msgid "" | ||||
":func:`zip(iterA, iterB, ...) <zip>` takes one element from each iterable " | ||||
"and returns them in a tuple::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:716 | ||||
#: ../Doc/howto/functional.rst:717 | ||||
msgid "" | ||||
"It doesn't construct an in-memory list and exhaust all the input iterators " | ||||
"before returning; instead tuples are constructed and returned only if " | ||||
| | @ -802,63 +803,64 @@ msgid "" | |||
"evaluation <https://en.wikipedia.org/wiki/Lazy_evaluation>`__.)" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:721 | ||||
#: ../Doc/howto/functional.rst:722 | ||||
msgid "" | ||||
"This iterator is intended to be used with iterables that are all of the same " | ||||
"length. If the iterables are of different lengths, the resulting stream " | ||||
"will be the same length as the shortest iterable. ::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:728 | ||||
#: ../Doc/howto/functional.rst:729 | ||||
msgid "" | ||||
"You should avoid doing this, though, because an element may be taken from " | ||||
"the longer iterators and discarded. This means you can't go on to use the " | ||||
"iterators further because you risk skipping a discarded element." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:734 | ||||
#: ../Doc/howto/functional.rst:735 | ||||
msgid "The itertools module" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:736 | ||||
#: ../Doc/howto/functional.rst:737 | ||||
msgid "" | ||||
"The :mod:`itertools` module contains a number of commonly-used iterators as " | ||||
"well as functions for combining several iterators. This section will " | ||||
"introduce the module's contents by showing small examples." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:740 | ||||
#: ../Doc/howto/functional.rst:741 | ||||
msgid "The module's functions fall into a few broad classes:" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:742 | ||||
#: ../Doc/howto/functional.rst:743 | ||||
msgid "Functions that create a new iterator based on an existing iterator." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:743 | ||||
#: ../Doc/howto/functional.rst:744 | ||||
msgid "Functions for treating an iterator's elements as function arguments." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:744 | ||||
#: ../Doc/howto/functional.rst:745 | ||||
msgid "Functions for selecting portions of an iterator's output." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:745 | ||||
#: ../Doc/howto/functional.rst:746 | ||||
msgid "A function for grouping an iterator's output." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:748 | ||||
#: ../Doc/howto/functional.rst:749 | ||||
msgid "Creating new iterators" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:750 | ||||
#: ../Doc/howto/functional.rst:751 | ||||
msgid "" | ||||
":func:`itertools.count(n) <itertools.count>` returns an infinite stream of " | ||||
"integers, increasing by 1 each time. You can optionally supply the starting " | ||||
"number, which defaults to 0::" | ||||
":func:`itertools.count(start, step) <itertools.count>` returns an infinite " | ||||
"stream of evenly spaced values. You can optionally supply the starting " | ||||
"number, which defaults to 0, and the interval between numbers, which " | ||||
"defaults to 1::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:759 | ||||
#: ../Doc/howto/functional.rst:762 | ||||
msgid "" | ||||
":func:`itertools.cycle(iter) <itertools.cycle>` saves a copy of the contents " | ||||
"of a provided iterable and returns a new iterator that returns its elements " | ||||
| | @ -866,14 +868,14 @@ msgid "" | |||
"infinitely. ::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:766 | ||||
#: ../Doc/howto/functional.rst:769 | ||||
msgid "" | ||||
":func:`itertools.repeat(elem, [n]) <itertools.repeat>` returns the provided " | ||||
"element *n* times, or returns the element endlessly if *n* is not " | ||||
"provided. ::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:774 | ||||
#: ../Doc/howto/functional.rst:777 | ||||
msgid "" | ||||
":func:`itertools.chain(iterA, iterB, ...) <itertools.chain>` takes an " | ||||
"arbitrary number of iterables as input, and returns all the elements of the " | ||||
| | @ -881,7 +883,7 @@ msgid "" | |||
"the iterables have been exhausted. ::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:782 | ||||
#: ../Doc/howto/functional.rst:785 | ||||
msgid "" | ||||
":func:`itertools.islice(iter, [start], stop, [step]) <itertools.islice>` " | ||||
"returns a stream that's a slice of the iterator. With a single *stop* " | ||||
| | @ -892,7 +894,7 @@ msgid "" | |||
"*step*. ::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:796 | ||||
#: ../Doc/howto/functional.rst:799 | ||||
msgid "" | ||||
":func:`itertools.tee(iter, [n]) <itertools.tee>` replicates an iterator; it " | ||||
"returns *n* independent iterators that will all return the contents of the " | ||||
| | @ -902,11 +904,11 @@ msgid "" | |||
"and one of the new iterators is consumed more than the others. ::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:815 | ||||
#: ../Doc/howto/functional.rst:818 | ||||
msgid "Calling functions on elements" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:817 | ||||
#: ../Doc/howto/functional.rst:820 | ||||
msgid "" | ||||
"The :mod:`operator` module contains a set of functions corresponding to " | ||||
"Python's operators. Some examples are :func:`operator.add(a, b) <operator." | ||||
| | @ -915,45 +917,45 @@ msgid "" | |||
"(returns a callable that fetches the ``.id`` attribute)." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:823 | ||||
#: ../Doc/howto/functional.rst:826 | ||||
msgid "" | ||||
":func:`itertools.starmap(func, iter) <itertools.starmap>` assumes that the " | ||||
"iterable will return a stream of tuples, and calls *func* using these tuples " | ||||
"as the arguments::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:835 | ||||
#: ../Doc/howto/functional.rst:838 | ||||
msgid "Selecting elements" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:837 | ||||
#: ../Doc/howto/functional.rst:840 | ||||
msgid "" | ||||
"Another group of functions chooses a subset of an iterator's elements based " | ||||
"on a predicate." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:840 | ||||
#: ../Doc/howto/functional.rst:843 | ||||
msgid "" | ||||
":func:`itertools.filterfalse(predicate, iter) <itertools.filterfalse>` is " | ||||
"the opposite of :func:`filter`, returning all elements for which the " | ||||
"predicate returns false::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:847 | ||||
#: ../Doc/howto/functional.rst:850 | ||||
msgid "" | ||||
":func:`itertools.takewhile(predicate, iter) <itertools.takewhile>` returns " | ||||
"elements for as long as the predicate returns true. Once the predicate " | ||||
"returns false, the iterator will signal the end of its results. ::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:860 | ||||
#: ../Doc/howto/functional.rst:863 | ||||
msgid "" | ||||
":func:`itertools.dropwhile(predicate, iter) <itertools.dropwhile>` discards " | ||||
"elements while the predicate returns true, and then returns the rest of the " | ||||
"iterable's results. ::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:870 | ||||
#: ../Doc/howto/functional.rst:873 | ||||
msgid "" | ||||
":func:`itertools.compress(data, selectors) <itertools.compress>` takes two " | ||||
"iterators and returns only those elements of *data* for which the " | ||||
| | @ -961,18 +963,18 @@ msgid "" | |||
"is exhausted::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:879 | ||||
#: ../Doc/howto/functional.rst:882 | ||||
msgid "Combinatoric functions" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:881 | ||||
#: ../Doc/howto/functional.rst:884 | ||||
msgid "" | ||||
"The :func:`itertools.combinations(iterable, r) <itertools.combinations>` " | ||||
"returns an iterator giving all possible *r*-tuple combinations of the " | ||||
"elements contained in *iterable*. ::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:896 | ||||
#: ../Doc/howto/functional.rst:899 | ||||
msgid "" | ||||
"The elements within each tuple remain in the same order as *iterable* " | ||||
"returned them. For example, the number 1 is always before 2, 3, 4, or 5 in " | ||||
| | @ -981,25 +983,25 @@ msgid "" | |||
"constraint on the order, returning all possible arrangements of length *r*::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:915 | ||||
#: ../Doc/howto/functional.rst:918 | ||||
msgid "" | ||||
"If you don't supply a value for *r* the length of the iterable is used, " | ||||
"meaning that all the elements are permuted." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:918 | ||||
#: ../Doc/howto/functional.rst:921 | ||||
msgid "" | ||||
"Note that these functions produce all of the possible combinations by " | ||||
"position and don't require that the contents of *iterable* are unique::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:925 | ||||
#: ../Doc/howto/functional.rst:928 | ||||
msgid "" | ||||
"The identical tuple ``('a', 'a', 'b')`` occurs twice, but the two 'a' " | ||||
"strings came from different positions." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:928 | ||||
#: ../Doc/howto/functional.rst:931 | ||||
msgid "" | ||||
"The :func:`itertools.combinations_with_replacement(iterable, r) <itertools." | ||||
"combinations_with_replacement>` function relaxes a different constraint: " | ||||
| | @ -1008,11 +1010,11 @@ msgid "" | |||
"the second element is selected. ::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:943 | ||||
#: ../Doc/howto/functional.rst:946 | ||||
msgid "Grouping elements" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:945 | ||||
#: ../Doc/howto/functional.rst:948 | ||||
msgid "" | ||||
"The last function I'll discuss, :func:`itertools.groupby(iter, " | ||||
"key_func=None) <itertools.groupby>`, is the most complicated. " | ||||
| | @ -1021,14 +1023,14 @@ msgid "" | |||
"key is simply each element itself." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:950 | ||||
#: ../Doc/howto/functional.rst:953 | ||||
msgid "" | ||||
":func:`~itertools.groupby` collects all the consecutive elements from the " | ||||
"underlying iterable that have the same key value, and returns a stream of 2-" | ||||
"tuples containing a key value and an iterator for the elements with that key." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:978 | ||||
#: ../Doc/howto/functional.rst:981 | ||||
msgid "" | ||||
":func:`~itertools.groupby` assumes that the underlying iterable's contents " | ||||
"will already be sorted based on the key. Note that the returned iterators " | ||||
| | @ -1036,11 +1038,11 @@ msgid "" | |||
"iterator-1 before requesting iterator-2 and its corresponding key." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:985 | ||||
#: ../Doc/howto/functional.rst:988 | ||||
msgid "The functools module" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:987 | ||||
#: ../Doc/howto/functional.rst:990 | ||||
msgid "" | ||||
"The :mod:`functools` module in Python 2.5 contains some higher-order " | ||||
"functions. A **higher-order function** takes one or more functions as input " | ||||
| | @ -1048,7 +1050,7 @@ msgid "" | |||
"func:`functools.partial` function." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:992 | ||||
#: ../Doc/howto/functional.rst:995 | ||||
msgid "" | ||||
"For programs written in a functional style, you'll sometimes want to " | ||||
"construct variants of existing functions that have some of the parameters " | ||||
| | @ -1058,7 +1060,7 @@ msgid "" | |||
"\"partial function application\"." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:998 | ||||
#: ../Doc/howto/functional.rst:1001 | ||||
msgid "" | ||||
"The constructor for :func:`~functools.partial` takes the arguments " | ||||
"``(function, arg1, arg2, ..., kwarg1=value1, kwarg2=value2)``. The " | ||||
| | @ -1066,11 +1068,11 @@ msgid "" | |||
"with the filled-in arguments." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1003 | ||||
#: ../Doc/howto/functional.rst:1006 | ||||
msgid "Here's a small but realistic example::" | ||||
msgstr "Voici un exemple court mais réaliste ::" | ||||
| ||||
#: ../Doc/howto/functional.rst:1015 | ||||
#: ../Doc/howto/functional.rst:1018 | ||||
msgid "" | ||||
":func:`functools.reduce(func, iter, [initial_value]) <functools.reduce>` " | ||||
"cumulatively performs an operation on all the iterable's elements and, " | ||||
| | @ -1085,32 +1087,32 @@ msgid "" | |||
"``func(initial_value, A)`` is the first calculation. ::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1039 | ||||
#: ../Doc/howto/functional.rst:1042 | ||||
msgid "" | ||||
"If you use :func:`operator.add` with :func:`functools.reduce`, you'll add up " | ||||
"all the elements of the iterable. This case is so common that there's a " | ||||
"special built-in called :func:`sum` to compute it:" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1051 | ||||
#: ../Doc/howto/functional.rst:1054 | ||||
msgid "" | ||||
"For many uses of :func:`functools.reduce`, though, it can be clearer to just " | ||||
"write the obvious :keyword:`for` loop::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1063 | ||||
#: ../Doc/howto/functional.rst:1066 | ||||
msgid "" | ||||
"A related function is `itertools.accumulate(iterable, func=operator.add) " | ||||
"<itertools.accumulate`. It performs the same calculation, but instead of " | ||||
"returning only the final result, :func:`accumulate` returns an iterator that " | ||||
"also yields each partial result::" | ||||
"A related function is :func:`itertools.accumulate(iterable, func=operator." | ||||
"add) <itertools.accumulate>`. It performs the same calculation, but instead " | ||||
"of returning only the final result, :func:`accumulate` returns an iterator " | ||||
"that also yields each partial result::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1076 | ||||
#: ../Doc/howto/functional.rst:1079 | ||||
msgid "The operator module" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1078 | ||||
#: ../Doc/howto/functional.rst:1081 | ||||
msgid "" | ||||
"The :mod:`operator` module was mentioned earlier. It contains a set of " | ||||
"functions corresponding to Python's operators. These functions are often " | ||||
| | @ -1118,54 +1120,54 @@ msgid "" | |||
"functions that perform a single operation." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1083 | ||||
#: ../Doc/howto/functional.rst:1086 | ||||
msgid "Some of the functions in this module are:" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1085 | ||||
#: ../Doc/howto/functional.rst:1088 | ||||
msgid "" | ||||
"Math operations: ``add()``, ``sub()``, ``mul()``, ``floordiv()``, " | ||||
"``abs()``, ..." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1086 | ||||
#: ../Doc/howto/functional.rst:1089 | ||||
msgid "Logical operations: ``not_()``, ``truth()``." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1087 | ||||
#: ../Doc/howto/functional.rst:1090 | ||||
msgid "Bitwise operations: ``and_()``, ``or_()``, ``invert()``." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1088 | ||||
#: ../Doc/howto/functional.rst:1091 | ||||
msgid "" | ||||
"Comparisons: ``eq()``, ``ne()``, ``lt()``, ``le()``, ``gt()``, and ``ge()``." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1089 | ||||
#: ../Doc/howto/functional.rst:1092 | ||||
msgid "Object identity: ``is_()``, ``is_not()``." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1091 | ||||
#: ../Doc/howto/functional.rst:1094 | ||||
msgid "Consult the operator module's documentation for a complete list." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1095 | ||||
#: ../Doc/howto/functional.rst:1098 | ||||
msgid "Small functions and the lambda expression" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1097 | ||||
#: ../Doc/howto/functional.rst:1100 | ||||
msgid "" | ||||
"When writing functional-style programs, you'll often need little functions " | ||||
"that act as predicates or that combine elements in some way." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1100 | ||||
#: ../Doc/howto/functional.rst:1103 | ||||
msgid "" | ||||
"If there's a Python built-in or a module function that's suitable, you don't " | ||||
"need to define a new function at all::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1106 | ||||
#: ../Doc/howto/functional.rst:1109 | ||||
msgid "" | ||||
"If the function you need doesn't exist, you need to write it. One way to " | ||||
"write small functions is to use the :keyword:`lambda` statement. ``lambda`` " | ||||
| | @ -1173,19 +1175,19 @@ msgid "" | |||
"and creates an anonymous function that returns the value of the expression::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1115 | ||||
#: ../Doc/howto/functional.rst:1118 | ||||
msgid "" | ||||
"An alternative is to just use the ``def`` statement and define a function in " | ||||
"the usual way::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1124 | ||||
#: ../Doc/howto/functional.rst:1127 | ||||
msgid "" | ||||
"Which alternative is preferable? That's a style question; my usual course " | ||||
"is to avoid using ``lambda``." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1127 | ||||
#: ../Doc/howto/functional.rst:1130 | ||||
msgid "" | ||||
"One reason for my preference is that ``lambda`` is quite limited in the " | ||||
"functions it can define. The result has to be computable as a single " | ||||
| | @ -1195,66 +1197,66 @@ msgid "" | |||
"that's hard to read. Quick, what's the following code doing? ::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1137 | ||||
#: ../Doc/howto/functional.rst:1140 | ||||
msgid "" | ||||
"You can figure it out, but it takes time to disentangle the expression to " | ||||
"figure out what's going on. Using a short nested ``def`` statements makes " | ||||
"things a little bit better::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1147 | ||||
#: ../Doc/howto/functional.rst:1150 | ||||
msgid "But it would be best of all if I had simply used a ``for`` loop::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1153 | ||||
#: ../Doc/howto/functional.rst:1156 | ||||
msgid "Or the :func:`sum` built-in and a generator expression::" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1157 | ||||
#: ../Doc/howto/functional.rst:1160 | ||||
msgid "" | ||||
"Many uses of :func:`functools.reduce` are clearer when written as ``for`` " | ||||
"loops." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1159 | ||||
#: ../Doc/howto/functional.rst:1162 | ||||
msgid "" | ||||
"Fredrik Lundh once suggested the following set of rules for refactoring uses " | ||||
"of ``lambda``:" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1162 | ||||
#: ../Doc/howto/functional.rst:1165 | ||||
msgid "Write a lambda function." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1163 | ||||
#: ../Doc/howto/functional.rst:1166 | ||||
msgid "Write a comment explaining what the heck that lambda does." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1164 | ||||
#: ../Doc/howto/functional.rst:1167 | ||||
msgid "" | ||||
"Study the comment for a while, and think of a name that captures the essence " | ||||
"of the comment." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1166 | ||||
#: ../Doc/howto/functional.rst:1169 | ||||
msgid "Convert the lambda to a def statement, using that name." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1167 | ||||
#: ../Doc/howto/functional.rst:1170 | ||||
msgid "Remove the comment." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1169 | ||||
#: ../Doc/howto/functional.rst:1172 | ||||
msgid "" | ||||
"I really like these rules, but you're free to disagree about whether this " | ||||
"lambda-free style is better." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1174 | ||||
#: ../Doc/howto/functional.rst:1177 | ||||
msgid "Revision History and Acknowledgements" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1176 | ||||
#: ../Doc/howto/functional.rst:1179 | ||||
msgid "" | ||||
"The author would like to thank the following people for offering " | ||||
"suggestions, corrections and assistance with various drafts of this article: " | ||||
| | @ -1262,40 +1264,40 @@ msgid "" | |||
"Krell, Leandro Lameiro, Jussi Salmela, Collin Winter, Blake Winton." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1181 | ||||
#: ../Doc/howto/functional.rst:1184 | ||||
msgid "Version 0.1: posted June 30 2006." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1183 | ||||
#: ../Doc/howto/functional.rst:1186 | ||||
msgid "Version 0.11: posted July 1 2006. Typo fixes." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1185 | ||||
#: ../Doc/howto/functional.rst:1188 | ||||
msgid "" | ||||
"Version 0.2: posted July 10 2006. Merged genexp and listcomp sections into " | ||||
"one. Typo fixes." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1188 | ||||
#: ../Doc/howto/functional.rst:1191 | ||||
msgid "" | ||||
"Version 0.21: Added more references suggested on the tutor mailing list." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1190 | ||||
#: ../Doc/howto/functional.rst:1193 | ||||
msgid "" | ||||
"Version 0.30: Adds a section on the ``functional`` module written by Collin " | ||||
"Winter; adds short section on the operator module; a few other edits." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1195 | ||||
#: ../Doc/howto/functional.rst:1198 | ||||
msgid "References" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1198 | ||||
#: ../Doc/howto/functional.rst:1201 | ||||
msgid "General" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1200 | ||||
#: ../Doc/howto/functional.rst:1203 | ||||
msgid "" | ||||
"**Structure and Interpretation of Computer Programs**, by Harold Abelson and " | ||||
"Gerald Jay Sussman with Julie Sussman. Full text at https://mitpress.mit." | ||||
| | @ -1306,33 +1308,33 @@ msgid "" | |||
"Python code." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1208 | ||||
#: ../Doc/howto/functional.rst:1211 | ||||
msgid "" | ||||
"http://www.defmacro.org/ramblings/fp.html: A general introduction to " | ||||
"functional programming that uses Java examples and has a lengthy historical " | ||||
"introduction." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1211 | ||||
#: ../Doc/howto/functional.rst:1214 | ||||
msgid "" | ||||
"https://en.wikipedia.org/wiki/Functional_programming: General Wikipedia " | ||||
"entry describing functional programming." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1214 | ||||
#: ../Doc/howto/functional.rst:1217 | ||||
msgid "https://en.wikipedia.org/wiki/Coroutine: Entry for coroutines." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1216 | ||||
#: ../Doc/howto/functional.rst:1219 | ||||
msgid "" | ||||
"https://en.wikipedia.org/wiki/Currying: Entry for the concept of currying." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1219 | ||||
#: ../Doc/howto/functional.rst:1222 | ||||
msgid "Python-specific" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1221 | ||||
#: ../Doc/howto/functional.rst:1224 | ||||
msgid "" | ||||
"http://gnosis.cx/TPiP/: The first chapter of David Mertz's book :title-" | ||||
"reference:`Text Processing in Python` discusses functional programming for " | ||||
| | @ -1340,7 +1342,7 @@ msgid "" | |||
"Text Processing\"." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1226 | ||||
#: ../Doc/howto/functional.rst:1229 | ||||
msgid "" | ||||
"Mertz also wrote a 3-part series of articles on functional programming for " | ||||
"IBM's DeveloperWorks site; see `part 1 <https://www.ibm.com/developerworks/" | ||||
| | @ -1349,23 +1351,27 @@ msgid "" | |||
"www.ibm.com/developerworks/linux/library/l-prog3/index.html>`__," | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1234 | ||||
#: ../Doc/howto/functional.rst:1237 | ||||
msgid "Python documentation" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1236 | ||||
#: ../Doc/howto/functional.rst:1239 | ||||
msgid "Documentation for the :mod:`itertools` module." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1238 | ||||
#: ../Doc/howto/functional.rst:1241 | ||||
msgid "Documentation for the :mod:`functools` module." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1243 | ||||
msgid "Documentation for the :mod:`operator` module." | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1240 | ||||
#: ../Doc/howto/functional.rst:1245 | ||||
msgid ":pep:`289`: \"Generator Expressions\"" | ||||
msgstr "" | ||||
| ||||
#: ../Doc/howto/functional.rst:1242 | ||||
#: ../Doc/howto/functional.rst:1247 | ||||
msgid "" | ||||
":pep:`342`: \"Coroutines via Enhanced Generators\" describes the new " | ||||
"generator features in Python 2.5." | ||||
| | | |||
Loading…
Add table
Add a link
Reference in a new issue