@@ -17,9 +17,8 @@ msgstr ""
1717"Generated-By : Babel 2.17.0\n "
1818
1919#: ../../library/types.rst:2
20- #, fuzzy
2120msgid ":mod:`!types` --- Dynamic type creation and names for built-in types"
22- msgstr ":mod:`types` --- 동적 형 생성과 내장형 이름"
21+ msgstr ":mod:`! types` --- 동적 형 생성과 내장형 이름"
2322
2423#: ../../library/types.rst:7
2524msgid "**Source code:** :source:`Lib/types.py`"
@@ -64,7 +63,6 @@ msgstr ""
6463"``metaclass``)."
6564
6665#: ../../library/types.rst:33
67- #, fuzzy
6866msgid ""
6967"The *exec_body* argument is a callback that is used to populate the "
7068"freshly created class namespace. It should accept the class namespace as "
@@ -73,7 +71,7 @@ msgid ""
7371"in ``lambda ns: None``."
7472msgstr ""
7573"*exec_body* 인자는 새로 만들어진 클래스 이름 공간을 채우는 데 사용되는 콜백입니다. 클래스 이름 공간을 유일한 인자로 "
76- "받아들이고 클래스 내용으로 이름 공간을 직접 갱신해야 합니다. 콜백이 제공되지 않으면, ``lambda ns: ns ``\\ 를 "
74+ "받아들이고 클래스 내용으로 이름 공간을 직접 갱신해야 합니다. 콜백이 제공되지 않으면, ``lambda ns: None ``\\ 를 "
7775"전달하는 것과 같은 효과가 있습니다."
7876
7977#: ../../library/types.rst:43
@@ -134,7 +132,6 @@ msgid "Resolve MRO entries dynamically as specified by :pep:`560`."
134132msgstr ":pep:`560`\\ 의 명세에 따라 MRO 항목을 동적으로 결정합니다."
135133
136134#: ../../library/types.rst:76
137- #, fuzzy
138135msgid ""
139136"This function looks for items in *bases* that are not instances of "
140137":class:`type`, and returns a tuple where each such object that has an "
@@ -143,10 +140,10 @@ msgid ""
143140":class:`type`, or it doesn't have an :meth:`!__mro_entries__` method, "
144141"then it is included in the return tuple unchanged."
145142msgstr ""
146- "이 함수는 :class:`type`\\ 의 인스턴스가 아닌 항목들을 *bases*\\ 에서 찾고, ``__mro_entries__`` "
147- "메서드가 있는 각 객체가 이 메서드 호출의 언 패킹 된 결과로 대체된 튜플을 반환합니다. *bases* 항목이 "
148- ":class:`type`\\ 의 인스턴스이거나, `` __mro_entries__`` 메서드가 없으면, 반환 튜플에 변경되지 않은 "
149- "상태로 포함됩니다."
143+ "이 함수는 :class:`type`\\ 의 인스턴스가 아닌 항목들을 *bases*\\ 에서 찾고, "
144+ ":meth:`~object.__mro_entries__` 메서드가 있는 각 객체가 이 메서드 호출의 언 패킹 된 결과로 대체된 "
145+ "튜플을 반환합니다. *bases* 항목이 :class:`type`\\ 의 인스턴스이거나, :meth:`! __mro_entries__`"
146+ " 메서드가 없으면, 반환 튜플에 변경되지 않은 상태로 포함됩니다."
150147
151148#: ../../library/types.rst:87
152149msgid ""
@@ -166,7 +163,7 @@ msgstr ""
166163
167164#: ../../library/types.rst:97
168165msgid "Examples::"
169- msgstr ""
166+ msgstr "예제:: "
170167
171168#: ../../library/types.rst:99
172169#, python-brace-format
@@ -195,6 +192,29 @@ msgid ""
195192"assert int.__bases__ == (object,)\n"
196193"assert get_original_bases(int) == (object,)"
197194msgstr ""
195+ "from typing import TypeVar, Generic, NamedTuple, TypedDict\n"
196+ "\n"
197+ "T = TypeVar(\" T\" )\n"
198+ "class Foo(Generic[T]): ...\n"
199+ "class Bar(Foo[int], float): ...\n"
200+ "class Baz(list[str]): ...\n"
201+ "Eggs = NamedTuple(\" Eggs\" , [(\" a\" , int), (\" b\" , str)])\n"
202+ "Spam = TypedDict(\" Spam\" , {\" a\" : int, \" b\" : str})\n"
203+ "\n"
204+ "assert Bar.__bases__ == (Foo, float)\n"
205+ "assert get_original_bases(Bar) == (Foo[int], float)\n"
206+ "\n"
207+ "assert Baz.__bases__ == (list,)\n"
208+ "assert get_original_bases(Baz) == (list[str],)\n"
209+ "\n"
210+ "assert Eggs.__bases__ == (tuple,)\n"
211+ "assert get_original_bases(Eggs) == (NamedTuple,)\n"
212+ "\n"
213+ "assert Spam.__bases__ == (dict,)\n"
214+ "assert get_original_bases(Spam) == (TypedDict,)\n"
215+ "\n"
216+ "assert int.__bases__ == (object,)\n"
217+ "assert get_original_bases(int) == (object,)"
198218
199219#: ../../library/types.rst:127
200220msgid ":pep:`560` - Core support for typing module and generic types"
@@ -271,11 +291,10 @@ msgid ""
271291msgstr "비동기 제너레이터 함수가 만든, :term:`비동기 제너레이터 <asynchronous generator>`-이터레이터 객체의 형."
272292
273293#: ../../library/types.rst:191
274- #, fuzzy
275294msgid ""
276295"The type of :ref:`code objects <code-objects>` such as returned by "
277296":func:`compile`."
278- msgstr ":func:`compile`\\ 이 반환하는 것과 같은 코드 객체의 형."
297+ msgstr ":func:`compile`\\ 이 반환하는 것과 같은 :ref:` 코드 객체 <code-objects>` \\ 의 형."
279298
280299#: ../../library/types.rst:193
281300msgid ""
@@ -298,11 +317,10 @@ msgstr ""
298317"화에서만 발생하며, 일반 컴파일에서는 발생하지 않습니다."
299318
300319#: ../../library/types.rst:201
301- #, fuzzy
302320msgid ""
303321"The type for cell objects: such objects are used as containers for a "
304322"function's :term:`closure variables <closure variable>`."
305- msgstr "셀 객체의 형: 이러한 객체는 함수의 자유 변수(free variables) 에 대한 컨테이너로 사용됩니다."
323+ msgstr "셀 객체의 형: 이러한 객체는 함수의 :term:`클로저 변수 <closure variable>` \\ 에 대한 컨테이너로 사용됩니다."
306324
307325#: ../../library/types.rst:209
308326msgid "The type of methods of user-defined class instances."
@@ -369,7 +387,7 @@ msgstr ""
369387
370388#: ../../library/types.rst:269
371389msgid ":func:`importlib.util.module_from_spec`"
372- msgstr ""
390+ msgstr ":func:`importlib.util.module_from_spec` "
373391
374392#: ../../library/types.rst:270
375393msgid ""
@@ -409,6 +427,12 @@ msgid ""
409427">>> dict[str, int] == GenericAlias(dict, (str, int))\n"
410428"True"
411429msgstr ""
430+ ">>> from types import GenericAlias\n"
431+ "\n"
432+ ">>> list[int] == GenericAlias(list, (int,))\n"
433+ "True\n"
434+ ">>> dict[str, int] == GenericAlias(dict, (str, int))\n"
435+ "True"
412436
413437#: ../../library/types.rst:300
414438msgid "This type can now be subclassed."
@@ -435,11 +459,10 @@ msgid "The type of :ref:`union type expressions<types-union>`."
435459msgstr ""
436460
437461#: ../../library/types.rst:319
438- #, fuzzy
439462msgid ""
440463"The type of traceback objects such as found in "
441464"``sys.exception().__traceback__``."
442- msgstr "``sys.exc_info()[2] ``\\ 에서 발견되는 것과 같은 트레이스백 객체의 형."
465+ msgstr "``sys.exception().__traceback__ ``\\ 에서 발견되는 것과 같은 트레이스백 객체의 형."
443466
444467#: ../../library/types.rst:321
445468msgid ""
@@ -451,24 +474,25 @@ msgstr ""
451474"<traceback-objects>`\\ 를 참조하십시오."
452475
453476#: ../../library/types.rst:328
454- #, fuzzy
455477msgid ""
456478"The type of :ref:`frame objects <frame-objects>` such as found in "
457479":attr:`tb.tb_frame <traceback.tb_frame>` if ``tb`` is a traceback object."
458- msgstr "``tb``\\ 가 트레이스백 객체일 때 ``tb.tb_frame``\\ 에서 발견되는 것과 같은 프레임 객체의 형."
480+ msgstr ""
481+ "``tb``\\ 가 트레이스백 객체일 때 :attr:`tb.tb_frame <traceback.tb_frame>`\\ 에서 발견되는 "
482+ "것과 같은 :ref:`프레임 객체 <frame-objects>`\\ 의 형."
459483
460484#: ../../library/types.rst:334
461- #, fuzzy
462485msgid ""
463486"The type of objects defined in extension modules with ``PyGetSetDef``, "
464487"such as :attr:`FrameType.f_locals <frame.f_locals>` or "
465488"``array.array.typecode``. This type is used as descriptor for object "
466489"attributes; it has the same purpose as the :class:`property` type, but "
467490"for classes defined in extension modules."
468491msgstr ""
469- "``FrameType.f_locals``\\ 나 ``array.array.typecode``\\ 와 같은, "
470- "``PyGetSetDef``\\ 가 있는 확장 모듈에서 정의된 객체의 형. 이 형은 객체 어트리뷰트에 대한 디스크립터로 사용됩니다. "
471- ":class:`property` 형과 같은 목적을 갖지만, 확장 모듈에 정의된 클래스에 사용됩니다."
492+ ":attr:`FrameType.f_locals <frame.f_locals>`\\ 나 "
493+ "``array.array.typecode``\\ 와 같은, ``PyGetSetDef``\\ 가 있는 확장 모듈에서 정의된 객체의 형. "
494+ "이 형은 객체 어트리뷰트에 대한 디스크립터로 사용됩니다. :class:`property` 형과 같은 목적을 갖지만, 확장 모듈에 "
495+ "정의된 클래스에 사용됩니다."
472496
473497#: ../../library/types.rst:343
474498msgid ""
@@ -565,9 +589,8 @@ msgid "Return a reverse iterator over the keys of the underlying mapping."
565589msgstr "하부 매핑의 키(keys)에 대한 역 이터레이터를 반환합니다."
566590
567591#: ../../library/types.rst:420
568- #, fuzzy
569592msgid "Return a hash of the underlying mapping."
570- msgstr "하부 매핑의 얕은 사본을 반환합니다."
593+ msgstr "하부 매핑의 해시를 반환합니다."
571594
572595#: ../../library/types.rst:426
573596msgid "The type of :ref:`capsule objects <capsules>`."
@@ -624,6 +647,21 @@ msgid ""
624647" return self.__dict__ == other.__dict__\n"
625648" return NotImplemented"
626649msgstr ""
650+ "class SimpleNamespace:\n"
651+ " def __init__(self, mapping_or_iterable=(), /, **kwargs):\n"
652+ " self.__dict__.update(mapping_or_iterable)\n"
653+ " self.__dict__.update(kwargs)\n"
654+ "\n"
655+ " def __repr__(self):\n"
656+ " items = (f\" {k}={v!r}\" for k, v in self.__dict__.items())\n"
657+ " return \" {}({})\" .format(type(self).__name__, \" , \" .join(items))"
658+ "\n"
659+ "\n"
660+ " def __eq__(self, other):\n"
661+ " if isinstance(self, SimpleNamespace) and isinstance(other, "
662+ "SimpleNamespace):\n"
663+ " return self.__dict__ == other.__dict__\n"
664+ " return NotImplemented"
627665
628666#: ../../library/types.rst:469
629667msgid ""
@@ -678,7 +716,6 @@ msgid "Coroutine Utility Functions"
678716msgstr "코루틴 유틸리티 함수"
679717
680718#: ../../library/types.rst:504
681- #, fuzzy
682719msgid ""
683720"This function transforms a :term:`generator` function into a "
684721":term:`coroutine function` which returns a generator-based coroutine. The"
@@ -690,8 +727,8 @@ msgstr ""
690727"이 함수는 :term:`제너레이터 <generator>` 함수를 제너레이터 기반 코루틴을 반환하는 :term:`코루틴 함수 "
691728"<coroutine function>`\\ 로 변환합니다. 제너레이터 기반 코루틴은 여전히 :term:`제너레이터 이터레이터 "
692729"<generator iterator>`\\ 이지만, :term:`코루틴 <coroutine>` 객체로도 간주하며 "
693- ":term:`어웨이터블 <awaitable>`\\ 입니다. 그러나, 반드시 :meth:`__await__` 메서드를 구현할 필요는 "
694- "없습니다."
730+ ":term:`어웨이터블 <awaitable>`\\ 입니다. 그러나, 반드시 :meth:`~object. __await__` 메서드를 "
731+ "구현할 필요는 없습니다."
695732
696733#: ../../library/types.rst:511
697734msgid "If *gen_func* is a generator function, it will be modified in-place."
@@ -710,11 +747,11 @@ msgstr ""
710747
711748#: ../../library/types.rst:189
712749msgid "built-in function"
713- msgstr ""
750+ msgstr "내장 함수 "
714751
715752#: ../../library/types.rst:189
716753msgid "compile"
717- msgstr ""
754+ msgstr "컴파일 "
718755
719756#~ msgid ""
720757#~ "Return a copy of the code object"
0 commit comments