@@ -10,20 +10,20 @@ msgstr ""
10
10
"Report-Msgid-Bugs-To :\n "
11
11
"POT-Creation-Date :2017-11-26 18:49+0900\n "
12
12
"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 "
15
15
"MIME-Version :1.0\n "
16
16
"Content-Type :text/plain; charset=utf-8\n "
17
17
"Content-Transfer-Encoding :8bit\n "
18
18
"Generated-By :Babel 2.5.1\n "
19
19
20
20
#: ../Doc/library/numbers.rst:2
21
21
msgid ":mod:`numbers` --- Numeric abstract base classes"
22
- msgstr ""
22
+ msgstr ":mod:`numbers` --- 숫자 추상 베이스 클래스 "
23
23
24
24
#: ../Doc/library/numbers.rst:7
25
25
msgid "**Source code:** :source:`Lib/numbers.py`"
26
- msgstr ""
26
+ msgstr "**소스 코드:** :source:`Lib/numbers.py` "
27
27
28
28
#: ../Doc/library/numbers.rst:11
29
29
msgid ""
@@ -32,17 +32,24 @@ msgid ""
32
32
"define more operations. None of the types defined in this module can be "
33
33
"instantiated."
34
34
msgstr ""
35
+ ":mod:`numbers` 모듈(:pep:`3141`)은 숫자에 대한 "
36
+ ":term:`추상 베이스 클래스 <abstract base class>` 의 계층 구조를 정의합니다. "
37
+ "계층 구조가 깊어질수록 더 많은 연산이 정의되어 있습니다. "
38
+ "이 모듈에 정의된 모든 형은 인스턴스로 만들 수 없습니다."
39
+
35
40
36
41
#: ../Doc/library/numbers.rst:18
37
42
msgid ""
38
43
"The root of the numeric hierarchy. If you just want to check if an "
39
44
"argument *x* is a number, without caring what kind, use ``isinstance(x, "
40
45
"Number)``."
41
46
msgstr ""
47
+ "숫자 계층의 최상위 클래스입니다. 형에 상관없이 "
48
+ "인자 *x* 가 숫자인지 확인하려면 ``isinstance(x, Number)`` 를 사용하세요."
42
49
43
50
#: ../Doc/library/numbers.rst:23
44
51
msgid "The numeric tower"
45
- msgstr ""
52
+ msgstr "숫자 계층 "
46
53
47
54
#: ../Doc/library/numbers.rst:27
48
55
msgid ""
@@ -53,50 +60,66 @@ msgid ""
53
60
":meth:`conjugate`, ``==``, and ``!=``. All except ``-`` and ``!=`` are "
54
61
"abstract."
55
62
msgstr ""
63
+ "이 서브 클래스는 복소수를 표현하고 내장 :class:`complex` 형에 사용되는 연산을 포함합니다. "
64
+ "여기에는 :class:`complex` 와 :class:`bool` 형으로의 변환과 "
65
+ ":attr:`.real`, :attr:`.imag`, ``+``, ``-``, ``*``, ``/``, :func:`abs`, "
66
+ ":meth:`conjugate`, ``==``, ``!=`` 이 포함됩니다. "
67
+ "``-`` 와 ``!=`` 를 제외하고는 모두 추상 메서드입니다. "
56
68
57
69
#: ../Doc/library/numbers.rst:35
58
70
msgid "Abstract. Retrieves the real component of this number."
59
- msgstr ""
71
+ msgstr "프로퍼티(추상 메서드). 복소수의 실수부를 반환합니다. "
60
72
61
73
#: ../Doc/library/numbers.rst:39
62
74
msgid "Abstract. Retrieves the imaginary component of this number."
63
- msgstr ""
75
+ msgstr "프로퍼티(추상 메서드). 복소수의 허수부를 반환합니다. "
64
76
65
77
#: ../Doc/library/numbers.rst:43
66
78
msgid ""
67
79
"Abstract. Returns the complex conjugate. For example, "
68
80
"``(1+3j).conjugate() == (1-3j)``."
69
81
msgstr ""
82
+ "추상 메서드. 켤레 복소수를 반환합니다. 예를 들어 "
83
+ "``(1+3j).conjugate() == (1-3j)`` 입니다."
70
84
71
85
#: ../Doc/library/numbers.rst:48
72
86
msgid ""
73
87
"To :class:`Complex`, :class:`Real` adds the operations that work on real "
74
88
"numbers."
75
89
msgstr ""
90
+ ":class:`Real` 클래스는 :class:`Complex` 클래스에 실수 연산을 추가합니다."
76
91
77
92
#: ../Doc/library/numbers.rst:51
78
93
msgid ""
79
94
"In short, those are: a conversion to :class:`float`, :func:`math.trunc`, "
80
95
":func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, "
81
96
"``//``, ``%``, ``<``, ``<=``, ``>``, and ``>=``."
82
97
msgstr ""
98
+ "간단히 요약하면 :class:`float` 로의 변환과 :func:`math.trunc`, "
99
+ ":func:`round`, :func:`math.floor`, :func:`math.ceil`, :func:`divmod`, "
100
+ "``//``, ``%``, ``<``, ``<=``, ``>``, ``>=`` 가 포함됩니다."
83
101
84
102
#: ../Doc/library/numbers.rst:55
85
103
msgid ""
86
104
"Real also provides defaults for :func:`complex`, :attr:`~Complex.real`, "
87
105
":attr:`~Complex.imag`, and :meth:`~Complex.conjugate`."
88
106
msgstr ""
107
+ "이 클래스는 또한 :func:`complex`, :attr:`~Complex.real`, "
108
+ ":attr:`~Complex.imag`, :meth:`~Complex.conjugate` 를 위한 기본값을 제공합니다."
89
109
90
110
#: ../Doc/library/numbers.rst:61
91
111
msgid ""
92
112
"Subtypes :class:`Real` and adds :attr:`~Rational.numerator` and "
93
113
":attr:`~Rational.denominator` properties, which should be in lowest "
94
114
"terms. With these, it provides a default for :func:`float`."
95
115
msgstr ""
116
+ ":class:`Real` 의 하위 형이고 :attr:`~Rational.numerator` 와 "
117
+ ":attr:`~Rational.denominator` 프로퍼티가 추가됩니다. "
118
+ "이 프로퍼티는 기약 분수의 값이어야 합니다. 또한 :func:`float` 함수를 위한 기본값으로 사용됩니다."
96
119
97
120
#: ../Doc/library/numbers.rst:68 ../Doc/library/numbers.rst:72
98
121
msgid "Abstract."
99
- msgstr ""
122
+ msgstr "프로퍼티(추상 메서드) "
100
123
101
124
#: ../Doc/library/numbers.rst:77
102
125
msgid ""
@@ -105,10 +128,14 @@ msgid ""
105
128
":attr:`~Rational.denominator`. Adds abstract methods for ``**`` and bit-"
106
129
"string operations: ``<<``, ``>>``, ``&``, ``^``, ``|``, ``~``."
107
130
msgstr ""
131
+ ":class:`Rational` 의 하위 형이고 :class:`int` 클래스로 변환 기능이 추가됩니다. "
132
+ ":func:`float`, :attr:`~Rational.numerator`, :attr:`~Rational.denominator` 를 "
133
+ "위한 기본값을 제공합니다. ``**`` 를 위한 메서드와 비트 연산 "
134
+ "``<<``, ``>>``, ``&``, ``^``, ``|``, ``~`` 를 추가합니다."
108
135
109
136
#: ../Doc/library/numbers.rst:84
110
137
msgid "Notes for type implementors"
111
- msgstr ""
138
+ msgstr "형 구현을 위한 주의 사항 "
112
139
113
140
#: ../Doc/library/numbers.rst:86
114
141
msgid ""
@@ -117,21 +144,27 @@ msgid ""
117
144
"extensions of the real numbers. For example, :class:`fractions.Fraction` "
118
145
"implements :func:`hash` as follows::"
119
146
msgstr ""
147
+ "구현자는 동일한 숫자가 같게 취급되고 같은 값으로 해싱되도록 해야 합니다. "
148
+ "만약 종류가 다른 실수의 하위 형이 있는 경우 조금 까다로울 수 있습니다. "
149
+ "예를 들어 :class:`fractions.Fraction` 클래스는 :func:`hash` 함수를 다음과 같이 구현합니다::"
120
150
121
151
#: ../Doc/library/numbers.rst:105
122
152
msgid "Adding More Numeric ABCs"
123
- msgstr ""
153
+ msgstr "더 많은 숫자 추상 베이스 클래스(ABC) 추가 "
124
154
125
155
#: ../Doc/library/numbers.rst:107
126
156
msgid ""
127
157
"There are, of course, more possible ABCs for numbers, and this would be a"
128
158
" poor hierarchy if it precluded the possibility of adding those. You can "
129
159
"add ``MyFoo`` between :class:`Complex` and :class:`Real` with::"
130
160
msgstr ""
161
+ "물론 숫자를 위한 ABC를 추가하는 것이 가능합니다. "
162
+ "그렇지 않으면 엉망으로 상속 계층이 구현될 것입니다. "
163
+ ":class:`Complex` 와 :class:`Real` 사이에 다음과 같이 ``MyFoo`` 를 추가할 수 있습니다::"
131
164
132
165
#: ../Doc/library/numbers.rst:119
133
166
msgid "Implementing the arithmetic operations"
134
- msgstr ""
167
+ msgstr "산술 연산 구현 "
135
168
136
169
#: ../Doc/library/numbers.rst:121
137
170
msgid ""
@@ -141,6 +174,10 @@ msgid ""
141
174
" do the operation there. For subtypes of :class:`Integral`, this means "
142
175
"that :meth:`__add__` and :meth:`__radd__` should be defined as::"
143
176
msgstr ""
177
+ "다른 형에 대한 연산은 두 인자의 형에 관해 알고 있는 구현을 호출하거나 "
178
+ "두 인자를 가장 비슷한 내장 형으로 변환하여 연산을 하도록 산술 연산을 구현하는 것이 좋습니다. "
179
+ ":class:`Integral` 클래스의 하위 형일 경우에 :meth:`__add__` 와 :meth:`__radd__` "
180
+ "메서드는 다음과 같이 정의되어야 함을 의미합니다::"
144
181
145
182
#: ../Doc/library/numbers.rst:152
146
183
msgid ""
@@ -150,10 +187,14 @@ msgid ""
150
187
"will be an instance of ``A``, which is a subtype of :class:`Complex` (``a"
151
188
" : A <: Complex``), and ``b : B <: Complex``. I'll consider ``a + b``:"
152
189
msgstr ""
190
+ ":class:`Complex` 클래스의 서브클래스에는 다섯 가지의 서로 다른 혼합 형 연산이 있습니다. "
191
+ "위의 코드에서 ``MyIntegral`` 와 ``OtherTypeIKnowAbout`` 를 제외한 나머지를 기본구조라고 하겠습니다. "
192
+ "``a`` 는 :class:`Complex` 의 하위 형인 ``A`` 의 인스턴스입니다(즉 ``a : A <: Complex`` 입니다). "
193
+ "비슷하게 ``b : B <: Complex`` 입니다. ``a + b`` 인 경우를 생각해 보겠습니다:"
153
194
154
195
#: ../Doc/library/numbers.rst:159
155
196
msgid "If ``A`` defines an :meth:`__add__` which accepts ``b``, all is well."
156
- msgstr ""
197
+ msgstr "만약 ``A`` 가 ``b`` 를 받는 :meth:`__add__` 메서드를 정의했다면 모든 것이 문제없이 처리됩니다. "
157
198
158
199
#: ../Doc/library/numbers.rst:161
159
200
msgid ""
@@ -163,25 +204,36 @@ msgid ""
163
204
":const:`NotImplemented` from :meth:`__add__`. (Or ``A`` may not implement"
164
205
" :meth:`__add__` at all.)"
165
206
msgstr ""
207
+ "``A`` 가 기본구조 코드로 진입하고 :meth:`__add__` 로부터 어떤 값을 반환한다면 "
208
+ "``B`` 가 똑똑하게 정의한 :meth:`__radd__` 메서드를 놓칠 수 있습니다. "
209
+ "이를 피하려면 기본구조는 :meth:`__add__` 에서 :const:`NotImplemented` 를 반환해야 합니다. "
210
+ "(또는 ``A`` 가 :meth:`__add__` 메서드를 전혀 구현하지 않을 수도 있습니다.)"
166
211
167
212
#: ../Doc/library/numbers.rst:167
168
213
msgid ""
169
214
"Then ``B``'s :meth:`__radd__` gets a chance. If it accepts ``a``, all is "
170
215
"well."
171
216
msgstr ""
217
+ "그다음 ``B`` 의 :meth:`__radd__` 메서드가 기회를 얻습니다. "
218
+ "이 메서드가 ``a`` 를 받을 수 있다면 모든 것이 문제 없이 처리됩니다."
172
219
173
220
#: ../Doc/library/numbers.rst:169
174
221
msgid ""
175
222
"If it falls back to the boilerplate, there are no more possible methods "
176
223
"to try, so this is where the default implementation should live."
177
224
msgstr ""
225
+ "기본구조 코드로 돌아온다면 더 이상 시도해 볼 수 있는 메서드가 없기 때문에 "
226
+ "기본적으로 수행될 구현을 작성해야 합니다."
178
227
179
228
#: ../Doc/library/numbers.rst:172
180
229
msgid ""
181
230
"If ``B <: A``, Python tries ``B.__radd__`` before ``A.__add__``. This is "
182
231
"ok, because it was implemented with knowledge of ``A``, so it can handle "
183
232
"those instances before delegating to :class:`Complex`."
184
233
msgstr ""
234
+ "만약 ``B <: A`` 라면 파이썬은 ``A.__add__`` 메서드 전에 ``B.__radd__`` 를 시도합니다. "
235
+ "``A`` 에 대해서 알고 ``B`` 가 구현되었기 때문에 이런 행동은 문제없습니다. "
236
+ "따라서 :class:`Complex` 에 위임하기 전에 이 인스턴스를 처리할 수 있습니다."
185
237
186
238
#: ../Doc/library/numbers.rst:177
187
239
msgid ""
@@ -190,6 +242,9 @@ msgid ""
190
242
" built in :class:`complex`, and both :meth:`__radd__` s land there, so "
191
243
"``a+b == b+a``."
192
244
msgstr ""
245
+ "만약 어떤 것도 공유하지 않는 ``A <: Complex`` 와 ``B <: Real`` 라면 "
246
+ "적절한 공유 연산(shared operation)은 내장 :class:`complex` 클래스에 연관된 것입니다. "
247
+ "양쪽의 :meth:`__radd__` 메서드가 여기에 해당하므로 ``a+b == b+a`` 가 됩니다."
193
248
194
249
#: ../Doc/library/numbers.rst:182
195
250
msgid ""
@@ -198,4 +253,6 @@ msgid ""
198
253
"and reverse instances of any given operator. For example, "
199
254
":class:`fractions.Fraction` uses::"
200
255
msgstr ""
201
-
256
+ "대부분 주어진 어떤 형에 대한 연산은 매우 비슷하기 때문에, "
257
+ "주어진 연산의 정방향(forward) 인스턴스와 역방향(reverse) 인스턴스를 생성하는 헬퍼 함수를 정의하는 것이 유용합니다. "
258
+ "예를 들어 :class:`fractions.Fraction` 클래스는 다음과 같이 사용합니다::"