Skip to content

Commit a2502fa

Browse files
committed
3.9.4 updates
1 parent c3e579b commit a2502fa

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

faq/programming.po

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2233,13 +2233,13 @@ msgstr ""
22332233

22342234
#: ../Doc/faq/programming.rst:1706
22352235
msgid "When can I rely on identity tests with the *is* operator?"
2236-
msgstr ""
2236+
msgstr "*is* 연산자를 사용한 아이덴티티 검사는 언제 신뢰할 수 있습니까?"
22372237

22382238
#: ../Doc/faq/programming.rst:1708
22392239
msgid ""
22402240
"The ``is`` operator tests for object identity. The test ``a is b`` is "
22412241
"equivalent to ``id(a) == id(b)``."
2242-
msgstr ""
2242+
msgstr "``is`` 연산자는 객체 아이덴티티를 검사합니다. 검사 ``a is b``\\는 ``id(a) == id(b)``\\와 동등합니다."
22432243

22442244
#: ../Doc/faq/programming.rst:1711
22452245
msgid ""
@@ -2249,33 +2249,44 @@ msgid ""
22492249
"tests, identity tests are guaranteed to return a boolean ``True`` or "
22502250
"``False``."
22512251
msgstr ""
2252+
"아이덴티티 검사의 가장 중요한 속성은 객체가 항상 자신과 동일하고 ``a is a``\\는 항상 ``True``\\를 반환한다는 "
2253+
"것입니다. 아이덴티티 검사는 일반적으로 동등성 검사보다 빠릅니다. 동등성 검사와 달리, 아이덴티티 테스트는 불리언 "
2254+
"``True``\\나 ``False``\\를 반환함이 보장됩니다."
22522255

22532256
#: ../Doc/faq/programming.rst:1716
22542257
msgid ""
22552258
"However, identity tests can *only* be substituted for equality tests when"
22562259
" object identity is assured. Generally, there are three circumstances "
22572260
"where identity is guaranteed:"
22582261
msgstr ""
2262+
"그러나, 객체 아이덴티티가 보장될 때 아이덴티티 검사가 동등성 검사를 대체할 수 있습니다. 일반적으로, 아이덴티티가 보장되는 세 "
2263+
"가지 상황이 있습니다:"
22592264

22602265
#: ../Doc/faq/programming.rst:1720
22612266
msgid ""
22622267
"1) Assignments create new names but do not change object identity. After"
22632268
" the assignment ``new = old``, it is guaranteed that ``new is old``."
22642269
msgstr ""
2270+
"1) 대입은 새 이름을 만들지 만 객체 아이덴티티를 변경하지는 않습니다. 대입 ``new = old`` 후에, ``new is "
2271+
"old``\\임이 보장됩니다."
22652272

22662273
#: ../Doc/faq/programming.rst:1723
22672274
msgid ""
22682275
"2) Putting an object in a container that stores object references does "
22692276
"not change object identity. After the list assignment ``s[0] = x``, it "
22702277
"is guaranteed that ``s[0] is x``."
22712278
msgstr ""
2279+
"2) 객체 참조를 저장하는 컨테이너에 객체를 넣어도 객체 아이덴티티가 변경되지 않습니다. 리스트 대입 ``s[0] = x`` 후에,"
2280+
" ``s[0] is x``\\임이 보장됩니다."
22722281

22732282
#: ../Doc/faq/programming.rst:1727
22742283
msgid ""
22752284
"3) If an object is a singleton, it means that only one instance of that "
22762285
"object can exist. After the assignments ``a = None`` and ``b = None``, "
22772286
"it is guaranteed that ``a is b`` because ``None`` is a singleton."
22782287
msgstr ""
2288+
"3) 객체가 싱글톤이면, 해당 객체의 인스턴스가 하나만 존재할 수 있음을 의미합니다. ``a = None`` 과 ``b = "
2289+
"None`` 대입 후에 ``None``\\은 싱글톤이므로 ``a is b``\\임이 보장됩니다."
22792290

22802291
#: ../Doc/faq/programming.rst:1731
22812292
msgid ""
@@ -2284,16 +2295,18 @@ msgid ""
22842295
" check constants such as :class:`int` and :class:`str` which aren't "
22852296
"guaranteed to be singletons::"
22862297
msgstr ""
2298+
"대부분의 다른 상황에서는 아이덴티티 검사가 권장되지 않으며 동등성 테스트가 선호됩니다. 특히, 싱글톤이 보장되지 않는 "
2299+
":class:`int`\\와 :class:`str`\\과 같은 상수를 확인하는 데 아이덴티티 검사를 사용해서는 안 됩니다::"
22872300

22882301
#: ../Doc/faq/programming.rst:1748
22892302
msgid "Likewise, new instances of mutable containers are never identical::"
2290-
msgstr ""
2303+
msgstr "마찬가지로, 가변 컨테이너의 새 인스턴스는 절대 동일하지 않습니다::"
22912304

22922305
#: ../Doc/faq/programming.rst:1755
22932306
msgid ""
22942307
"In the standard library code, you will see several common patterns for "
22952308
"correctly using identity tests:"
2296-
msgstr ""
2309+
msgstr "표준 라이브러리 코드에서, 아이덴티티 검사를 올바르게 사용하는 몇 가지 일반적인 패턴을 볼 수 있습니다:"
22972310

22982311
#: ../Doc/faq/programming.rst:1758
22992312
msgid ""
@@ -2302,6 +2315,8 @@ msgid ""
23022315
"confusion with other objects that may have boolean values that evaluate "
23032316
"to false."
23042317
msgstr ""
2318+
"1) :pep:`8`\\에서 권장하는 대로, 아이덴티티 검사는 ``None``\\을 확인하는 데 선호되는 방법입니다. 이것은 "
2319+
"코드에서 일반 영어처럼 읽히고 거짓으로 평가되는 불리언 값을 가질 수 있는 다른 객체와의 혼동을 방지합니다."
23052320

23062321
#: ../Doc/faq/programming.rst:1762
23072322
msgid ""
@@ -2310,19 +2325,24 @@ msgid ""
23102325
"object guaranteed to be distinct from other objects. For example, here "
23112326
"is how to implement a method that behaves like :meth:`dict.pop`::"
23122327
msgstr ""
2328+
"2) ``None``\\이 유효한 입력값일 때 선택적 인자를 감지하는 것이 까다로울 수 있습니다. 이러한 상황에서, 다른 객체와 "
2329+
"구별되는 싱글톤 센티넬 객체를 만들 수 있습니다. 예를 들어, 다음은 :meth:`dict.pop`\\처럼 작동하는 메서드를 "
2330+
"구현하는 방법입니다::"
23132331

23142332
#: ../Doc/faq/programming.rst:1778
23152333
msgid ""
23162334
"3) Container implementations sometimes need to augment equality tests "
23172335
"with identity tests. This prevents the code from being confused by "
23182336
"objects such as ``float('NaN')`` that are not equal to themselves."
23192337
msgstr ""
2338+
"3) 컨테이너 구현은 때때로 아이덴티티 검사로 동등성 검사를 강화해야 합니다. 이것은 자신과 같지 않은 "
2339+
"``float('NaN')``\\과 같은 객체에 의해 코드가 혼동되는 것을 방지합니다."
23202340

23212341
#: ../Doc/faq/programming.rst:1782
23222342
msgid ""
23232343
"For example, here is the implementation of "
23242344
":meth:`collections.abc.Sequence.__contains__`::"
2325-
msgstr ""
2345+
msgstr "예를 들어, 다음은 :meth:`collections.abc.Sequence.__contains__`\\의 구현입니다::"
23262346

23272347
#: ../Doc/faq/programming.rst:1793
23282348
msgid "Modules"

0 commit comments

Comments
 (0)