@@ -10,20 +10,20 @@ msgstr ""
1010"Report-Msgid-Bugs-To :\n "
1111"POT-Creation-Date :2017-11-26 18:49+0900\n "
1212"PO-Revision-Date :YEAR-MO-DA HO:MI+ZONE\n "
13- "Last-Translator :FULL NAME <EMAIL@ADDRESS >\n "
14- "Language-Team :LANGUAGE <LL@li.org> \n "
13+ "Last-Translator :Hae-sun Park <haesunrpark@gmail.com >\n "
14+ "Language-Team :Korean (http://python.flowdas.com) \n "
1515"MIME-Version :1.0\n "
1616"Content-Type :text/plain; charset=utf-8\n "
1717"Content-Transfer-Encoding :8bit\n "
1818"Generated-By :Babel 2.5.1\n "
1919
2020#: ../Doc/library/numbers.rst:2
2121msgid ":mod:`numbers` --- Numeric abstract base classes"
22- msgstr ""
22+ msgstr ":mod:`numbers` --- 숫자 추상 베이스 클래스 "
2323
2424#: ../Doc/library/numbers.rst:7
2525msgid "**Source code:** :source:`Lib/numbers.py`"
26- msgstr ""
26+ msgstr "**소스 코드:** :source:`Lib/numbers.py` "
2727
2828#: ../Doc/library/numbers.rst:11
2929msgid ""
@@ -32,17 +32,24 @@ msgid ""
3232"define more operations. None of the types defined in this module can be "
3333"instantiated."
3434msgstr ""
35+ ":mod:`numbers` 모듈(:pep:`3141`)은 숫자에 대한 "
36+ ":term:`추상 베이스 클래스 <abstract base class>` 의 계층 구조를 정의합니다. "
37+ "계층 구조가 깊어질수록 더 많은 연산이 정의되어 있습니다. "
38+ "이 모듈에 정의된 모든 형은 인스턴스로 만들 수 없습니다."
39+
3540
3641#: ../Doc/library/numbers.rst:18
3742msgid ""
3843"The root of the numeric hierarchy. If you just want to check if an "
3944"argument *x* is a number, without caring what kind, use ``isinstance(x, "
4045"Number)``."
4146msgstr ""
47+ "숫자 계층의 최상위 클래스입니다. 형에 상관없이 "
48+ "인자 *x* 가 숫자인지 확인하려면 ``isinstance(x, Number)`` 를 사용하세요."
4249
4350#: ../Doc/library/numbers.rst:23
4451msgid "The numeric tower"
45- msgstr ""
52+ msgstr "숫자 계층 "
4653
4754#: ../Doc/library/numbers.rst:27
4855msgid ""
@@ -53,50 +60,66 @@ msgid ""
5360":meth:`conjugate`, ``==``, and ``!=``. All except ``-`` and ``!=`` are "
5461"abstract."
5562msgstr ""
63+ "이 서브 클래스는 복소수를 표현하고 내장 :class:`complex` 형에 사용되는 연산을 포함합니다. "
64+ "여기에는 :class:`complex` 와 :class:`bool` 형으로의 변환과 "
65+ ":attr:`.real`, :attr:`.imag`, ``+``, ``-``, ``*``, ``/``, :func:`abs`, "
66+ ":meth:`conjugate`, ``==``, ``!=`` 이 포함됩니다. "
67+ "``-`` 와 ``!=`` 를 제외하고는 모두 추상 메서드입니다. "
5668
5769#: ../Doc/library/numbers.rst:35
5870msgid "Abstract. Retrieves the real component of this number."
59- msgstr ""
71+ msgstr "프로퍼티(추상 메서드). 복소수의 실수부를 반환합니다. "
6072
6173#: ../Doc/library/numbers.rst:39
6274msgid "Abstract. Retrieves the imaginary component of this number."
63- msgstr ""
75+ msgstr "프로퍼티(추상 메서드). 복소수의 허수부를 반환합니다. "
6476
6577#: ../Doc/library/numbers.rst:43
6678msgid ""
6779"Abstract. Returns the complex conjugate. For example, "
6880"``(1+3j).conjugate() == (1-3j)``."
6981msgstr ""
82+ "추상 메서드. 켤레 복소수를 반환합니다. 예를 들어 "
83+ "``(1+3j).conjugate() == (1-3j)`` 입니다."
7084
7185#: ../Doc/library/numbers.rst:48
7286msgid ""
7387"To :class:`Complex`, :class:`Real` adds the operations that work on real "
7488"numbers."
7589msgstr ""
90+ ":class:`Real` 클래스는 :class:`Complex` 클래스에 실수 연산을 추가합니다."
7691
7792#: ../Doc/library/numbers.rst:51
7893msgid ""
7994"In short, those are: a conversion to :class:`float`, :func:`math.trunc`, "
8095":func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, "
8196"``//``, ``%``, ``<``, ``<=``, ``>``, and ``>=``."
8297msgstr ""
98+ "간단히 요약하면 :class:`float` 로의 변환과 :func:`math.trunc`, "
99+ ":func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, "
100+ "``//``, ``%``, ``<``, ``<=``, ``>``, ``>=`` 가 포함됩니다."
83101
84102#: ../Doc/library/numbers.rst:55
85103msgid ""
86104"Real also provides defaults for :func:`complex`, :attr:`~Complex.real`, "
87105":attr:`~Complex.imag`, and :meth:`~Complex.conjugate`."
88106msgstr ""
107+ "이 클래스는 또한 :func:`complex`, :attr:`~Complex.real`, "
108+ ":attr:`~Complex.imag`, :meth:`~Complex.conjugate` 를 위한 기본값을 제공합니다."
89109
90110#: ../Doc/library/numbers.rst:61
91111msgid ""
92112"Subtypes :class:`Real` and adds :attr:`~Rational.numerator` and "
93113":attr:`~Rational.denominator` properties, which should be in lowest "
94114"terms. With these, it provides a default for :func:`float`."
95115msgstr ""
116+ ":class:`Real` 의 하위 형이고 :attr:`~Rational.numerator` 와 "
117+ ":attr:`~Rational.denominator` 프로퍼티가 추가됩니다. "
118+ "이 프로퍼티는 기약 분수의 값이어야 합니다. 또한 :func:`float` 함수를 위한 기본값으로 사용됩니다."
96119
97120#: ../Doc/library/numbers.rst:68 ../Doc/library/numbers.rst:72
98121msgid "Abstract."
99- msgstr ""
122+ msgstr "프로퍼티(추상 메서드) "
100123
101124#: ../Doc/library/numbers.rst:77
102125msgid ""
@@ -105,10 +128,14 @@ msgid ""
105128":attr:`~Rational.denominator`. Adds abstract methods for ``**`` and bit-"
106129"string operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``."
107130msgstr ""
131+ ":class:`Rational` 의 하위 형이고 :class:`int` 클래스로 변환 기능이 추가됩니다. "
132+ ":func:`float`, :attr:`~Rational.numerator`, :attr:`~Rational.denominator` 를 "
133+ "위한 기본값을 제공합니다. ``**`` 를 위한 메서드와 비트 연산 "
134+ "``<<``, ``>>``, ``&``, ``^``, ``|``, ``~`` 를 추가합니다."
108135
109136#: ../Doc/library/numbers.rst:84
110137msgid "Notes for type implementors"
111- msgstr ""
138+ msgstr "형 구현을 위한 주의 사항 "
112139
113140#: ../Doc/library/numbers.rst:86
114141msgid ""
@@ -117,21 +144,27 @@ msgid ""
117144"extensions of the real numbers. For example, :class:`fractions.Fraction` "
118145"implements :func:`hash` as follows::"
119146msgstr ""
147+ "구현자는 동일한 숫자가 같게 취급되고 같은 값으로 해싱되도록 해야 합니다. "
148+ "만약 종류가 다른 실수의 하위 형이 있는 경우 조금 까다로울 수 있습니다. "
149+ "예를 들어 :class:`fractions.Fraction` 클래스는 :func:`hash` 함수를 다음과 같이 구현합니다::"
120150
121151#: ../Doc/library/numbers.rst:105
122152msgid "Adding More Numeric ABCs"
123- msgstr ""
153+ msgstr "더 많은 숫자 추상 베이스 클래스(ABC) 추가 "
124154
125155#: ../Doc/library/numbers.rst:107
126156msgid ""
127157"There are, of course, more possible ABCs for numbers, and this would be a"
128158" poor hierarchy if it precluded the possibility of adding those. You can "
129159"add ``MyFoo`` between :class:`Complex` and :class:`Real` with::"
130160msgstr ""
161+ "물론 숫자를 위한 ABC를 추가하는 것이 가능합니다. "
162+ "그렇지 않으면 엉망으로 상속 계층이 구현될 것입니다. "
163+ ":class:`Complex` 와 :class:`Real` 사이에 다음과 같이 ``MyFoo`` 를 추가할 수 있습니다::"
131164
132165#: ../Doc/library/numbers.rst:119
133166msgid "Implementing the arithmetic operations"
134- msgstr ""
167+ msgstr "산술 연산 구현 "
135168
136169#: ../Doc/library/numbers.rst:121
137170msgid ""
@@ -141,6 +174,10 @@ msgid ""
141174" do the operation there. For subtypes of :class:`Integral`, this means "
142175"that :meth:`__add__` and :meth:`__radd__` should be defined as::"
143176msgstr ""
177+ "다른 형에 대한 연산은 두 인자의 형에 관해 알고 있는 구현을 호출하거나 "
178+ "두 인자를 가장 비슷한 내장 형으로 변환하여 연산을 하도록 산술 연산을 구현하는 것이 좋습니다. "
179+ ":class:`Integral` 클래스의 하위 형일 경우에 :meth:`__add__` 와 :meth:`__radd__` "
180+ "메서드는 다음과 같이 정의되어야 함을 의미합니다::"
144181
145182#: ../Doc/library/numbers.rst:152
146183msgid ""
@@ -150,10 +187,14 @@ msgid ""
150187"will be an instance of ``A``, which is a subtype of :class:`Complex` (``a"
151188" : A <: Complex``), and ``b : B <: Complex``. I'll consider ``a + b``:"
152189msgstr ""
190+ ":class:`Complex` 클래스의 서브클래스에는 다섯 가지의 서로 다른 혼합 형 연산이 있습니다. "
191+ "위의 코드에서 ``MyIntegral`` 와 ``OtherTypeIKnowAbout`` 를 제외한 나머지를 기본구조라고 하겠습니다. "
192+ "``a`` 는 :class:`Complex` 의 하위 형인 ``A`` 의 인스턴스입니다(즉 ``a : A <: Complex`` 입니다). "
193+ "비슷하게 ``b : B <: Complex`` 입니다. ``a + b`` 인 경우를 생각해 보겠습니다:"
153194
154195#: ../Doc/library/numbers.rst:159
155196msgid "If ``A`` defines an :meth:`__add__` which accepts ``b``, all is well."
156- msgstr ""
197+ msgstr "만약 ``A`` 가 ``b`` 를 받는 :meth:`__add__` 메서드를 정의했다면 모든 것이 문제없이 처리됩니다. "
157198
158199#: ../Doc/library/numbers.rst:161
159200msgid ""
@@ -163,25 +204,36 @@ msgid ""
163204":const:`NotImplemented` from :meth:`__add__`. (Or ``A`` may not implement"
164205" :meth:`__add__` at all.)"
165206msgstr ""
207+ "``A`` 가 기본구조 코드로 진입하고 :meth:`__add__` 로부터 어떤 값을 반환한다면 "
208+ "``B`` 가 똑똑하게 정의한 :meth:`__radd__` 메서드를 놓칠 수 있습니다. "
209+ "이를 피하려면 기본구조는 :meth:`__add__` 에서 :const:`NotImplemented` 를 반환해야 합니다. "
210+ "(또는 ``A`` 가 :meth:`__add__` 메서드를 전혀 구현하지 않을 수도 있습니다.)"
166211
167212#: ../Doc/library/numbers.rst:167
168213msgid ""
169214"Then ``B``'s :meth:`__radd__` gets a chance. If it accepts ``a``, all is "
170215"well."
171216msgstr ""
217+ "그다음 ``B`` 의 :meth:`__radd__` 메서드가 기회를 얻습니다. "
218+ "이 메서드가 ``a`` 를 받을 수 있다면 모든 것이 문제 없이 처리됩니다."
172219
173220#: ../Doc/library/numbers.rst:169
174221msgid ""
175222"If it falls back to the boilerplate, there are no more possible methods "
176223"to try, so this is where the default implementation should live."
177224msgstr ""
225+ "기본구조 코드로 돌아온다면 더 이상 시도해 볼 수 있는 메서드가 없기 때문에 "
226+ "기본적으로 수행될 구현을 작성해야 합니다."
178227
179228#: ../Doc/library/numbers.rst:172
180229msgid ""
181230"If ``B <: A``, Python tries ``B.__radd__`` before ``A.__add__``. This is "
182231"ok, because it was implemented with knowledge of ``A``, so it can handle "
183232"those instances before delegating to :class:`Complex`."
184233msgstr ""
234+ "만약 ``B <: A`` 라면 파이썬은 ``A.__add__`` 메서드 전에 ``B.__radd__`` 를 시도합니다. "
235+ "``A`` 에 대해서 알고 ``B`` 가 구현되었기 때문에 이런 행동은 문제없습니다. "
236+ "따라서 :class:`Complex` 에 위임하기 전에 이 인스턴스를 처리할 수 있습니다."
185237
186238#: ../Doc/library/numbers.rst:177
187239msgid ""
@@ -190,6 +242,9 @@ msgid ""
190242" built in :class:`complex`, and both :meth:`__radd__` s land there, so "
191243"``a+b == b+a``."
192244msgstr ""
245+ "만약 어떤 것도 공유하지 않는 ``A <: Complex`` 와 ``B <: Real`` 라면 "
246+ "적절한 공유 연산(shared operation)은 내장 :class:`complex` 클래스에 연관된 것입니다. "
247+ "양쪽의 :meth:`__radd__` 메서드가 여기에 해당하므로 ``a+b == b+a`` 가 됩니다."
193248
194249#: ../Doc/library/numbers.rst:182
195250msgid ""
@@ -198,4 +253,6 @@ msgid ""
198253"and reverse instances of any given operator. For example, "
199254":class:`fractions.Fraction` uses::"
200255msgstr ""
201-
256+ "대부분 주어진 어떤 형에 대한 연산은 매우 비슷하기 때문에, "
257+ "주어진 연산의 정방향(forward) 인스턴스와 역방향(reverse) 인스턴스를 생성하는 헬퍼 함수를 정의하는 것이 유용합니다. "
258+ "예를 들어 :class:`fractions.Fraction` 클래스는 다음과 같이 사용합니다::"