You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
":class:`Rational` 의서브타입이고 :class:`int` 클래스로 변환 기능이 추가됩니다. "
":class:`Rational` 의하위 형이고 :class:`int` 클래스로 변환 기능이 추가됩니다. "
":func:`float`, :attr:`~Rational.numerator`, :attr:`~Rational.denominator` 를 "
"위한 기본값을 제공합니다. ``**`` 를 위한 메서드와 비트 연산 "
"``<<``, ``>>``, ``&``, ``^``, ``|``, ``~`` 를 추가합니다."
#: ../Doc/library/numbers.rst:84
msgid "Notes for type implementors"
msgstr "타입 구현을 위한 주의 사항"
msgstr "형 구현을 위한 주의 사항"
#: ../Doc/library/numbers.rst:86
msgid ""
Expand All
@@ -145,7 +145,7 @@ msgid ""
"implements :func:`hash` as follows::"
msgstr ""
"구현자는 동일한 숫자가 같게 취급되고 같은 값으로 해싱되도록 해야 합니다. "
"만약 종류가 다른 실수의서브타입이있는 경우 조금애매할 수 있습니다. "
"만약 종류가 다른 실수의하위 형이있는 경우 조금까다로울 수 있습니다. "
"예를 들어 :class:`fractions.Fraction` 클래스는 :func:`hash` 함수를 다음과 같이 구현합니다::"
#: ../Doc/library/numbers.rst:105
Expand DownExpand Up
@@ -174,9 +174,9 @@ msgid ""
" do the operation there. For subtypes of :class:`Integral`, this means "
"that :meth:`__add__` and :meth:`__radd__` should be defined as::"
msgstr ""
"다른타입에 대한 연산은 두매개변수의 타입에 관해 알고 있는 구현을 호출하거나 "
"두매개변수를 가장 비슷한 내장타입으로 변환하여 연산을 하도록 산술 연산을 구현하는 것이 좋습니다. "
":class:`Integral` 클래스의서브타입일 경우에 :meth:`__add__` 와 :meth:`__radd__` "
"다른형에 대한 연산은 두인자의 형에 관해 알고 있는 구현을 호출하거나 "
"두인자를 가장 비슷한 내장형으로 변환하여 연산을 하도록 산술 연산을 구현하는 것이 좋습니다. "
":class:`Integral` 클래스의하위 형일 경우에 :meth:`__add__` 와 :meth:`__radd__` "
"메서드는 다음과 같이 정의되어야 함을 의미합니다::"
#: ../Doc/library/numbers.rst:152
Expand All
@@ -187,9 +187,9 @@ msgid ""
"will be an instance of ``A``, which is a subtype of :class:`Complex` (``a"
" : A <: Complex``), and ``b : B <: Complex``. I'll consider ``a + b``:"
msgstr ""
":class:`Complex` 클래스의 서브클래스에는 다섯 가지의 서로 다른 혼합타입 연산이 있습니다. "
":class:`Complex` 클래스의 서브클래스에는 다섯 가지의 서로 다른 혼합형 연산이 있습니다. "
"위의 코드에서 ``MyIntegral`` 와 ``OtherTypeIKnowAbout`` 를 제외한 나머지를 기본구조라고 하겠습니다. "
"``a`` 는 :class:`Complex` 의서브타입인 ``A`` 의 인스턴스입니다(즉 ``a : A <: Complex`` 입니다). "
"``a`` 는 :class:`Complex` 의하위 형인 ``A`` 의 인스턴스입니다(즉 ``a : A <: Complex`` 입니다). "
"비슷하게 ``b : B <: Complex`` 입니다. ``a + b`` 인 경우를 생각해 보겠습니다:"
#: ../Doc/library/numbers.rst:159
Expand All
@@ -204,7 +204,7 @@ msgid ""
":const:`NotImplemented` from :meth:`__add__`. (Or ``A`` may not implement"
" :meth:`__add__` at all.)"
msgstr ""
"``A`` 가 기본구조 코드로진입한다면 :meth:`__add__` 로부터 어떤 값을반환했을 수 있습니다. "
"``A`` 가 기본구조 코드로진입하고 :meth:`__add__` 로부터 어떤 값을반환한다면 "
"``B`` 가 똑똑하게 :meth:`__radd__` 메서드를 정의했을 가능성을 놓치지 않기 위해 "
"기본구조는 :meth:`__add__` 에서 :const:`NotImplemented` 를 반환해야 합니다. "
"(또는 ``A`` 가 :meth:`__add__` 메서드를 전혀 구현하지 않을 수도 있습니다.)"
Expand DownExpand Up
@@ -253,6 +253,6 @@ msgid ""
"and reverse instances of any given operator. For example, "
":class:`fractions.Fraction` uses::"
msgstr ""
"대부분 주어진 어떤타입에 대한 연산은 매우 비슷하기 때문에, "
"연산자의 앞과 뒤의 인스턴스를 생성하는 헬퍼 함수를 정의하는 것이 유용합니다. "
"대부분 주어진 어떤형에 대한 연산은 매우 비슷하기 때문에, "
"주어진 연산의 정방향(forward) 인스턴스와 역방향(reverse) 인스턴스를 생성하는 헬퍼 함수를 정의하는 것이 유용합니다. "
"예를 들어 :class:`fractions.Fraction` 클래스는 다음과 같이 사용합니다::"
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.