# Python Documentation Turkish Translation # Copyright (C) 2001-2024, Python Software Foundation # This file is distributed under the same license as the Python package. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2024-11-01 00:21+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: \n" "Language-Team: TURKISH \n" "Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: c-api/long.rst:6 msgid "Integer Objects" msgstr "" #: c-api/long.rst:11 msgid "" "All integers are implemented as \"long\" integer objects of arbitrary size." msgstr "" #: c-api/long.rst:13 msgid "" "On error, most ``PyLong_As*`` APIs return ``(return type)-1`` which cannot " "be distinguished from a number. Use :c:func:`PyErr_Occurred` to " "disambiguate." msgstr "" #: c-api/long.rst:18 msgid "This subtype of :c:type:`PyObject` represents a Python integer object." msgstr "" #: c-api/long.rst:23 msgid "" "This instance of :c:type:`PyTypeObject` represents the Python integer type. " "This is the same object as :class:`int` in the Python layer." msgstr "" #: c-api/long.rst:29 msgid "" "Return true if its argument is a :c:type:`PyLongObject` or a subtype of :c:" "type:`PyLongObject`. This function always succeeds." msgstr "" #: c-api/long.rst:35 msgid "" "Return true if its argument is a :c:type:`PyLongObject`, but not a subtype " "of :c:type:`PyLongObject`. This function always succeeds." msgstr "" #: c-api/long.rst:41 msgid "" "Return a new :c:type:`PyLongObject` object from *v*, or ``NULL`` on failure." msgstr "" #: c-api/long.rst:43 msgid "" "The current implementation keeps an array of integer objects for all " "integers between ``-5`` and ``256``. When you create an int in that range " "you actually just get back a reference to the existing object." msgstr "" #: c-api/long.rst:50 msgid "" "Return a new :c:type:`PyLongObject` object from a C :c:expr:`unsigned long`, " "or ``NULL`` on failure." msgstr "" #: c-api/long.rst:56 msgid "" "Return a new :c:type:`PyLongObject` object from a C :c:type:`Py_ssize_t`, or " "``NULL`` on failure." msgstr "" #: c-api/long.rst:62 msgid "" "Return a new :c:type:`PyLongObject` object from a C :c:type:`size_t`, or " "``NULL`` on failure." msgstr "" #: c-api/long.rst:68 msgid "" "Return a new :c:type:`PyLongObject` object from a C :c:expr:`long long`, or " "``NULL`` on failure." msgstr "" #: c-api/long.rst:74 msgid "" "Return a new :c:type:`PyLongObject` object from a C :c:expr:`unsigned long " "long`, or ``NULL`` on failure." msgstr "" #: c-api/long.rst:80 msgid "" "Return a new :c:type:`PyLongObject` object from the integer part of *v*, or " "``NULL`` on failure." msgstr "" #: c-api/long.rst:86 msgid "" "Return a new :c:type:`PyLongObject` based on the string value in *str*, " "which is interpreted according to the radix in *base*, or ``NULL`` on " "failure. If *pend* is non-``NULL``, *\\*pend* will point to the end of " "*str* on success or to the first character that could not be processed on " "error. If *base* is ``0``, *str* is interpreted using the :ref:`integers` " "definition; in this case, leading zeros in a non-zero decimal number raises " "a :exc:`ValueError`. If *base* is not ``0``, it must be between ``2`` and " "``36``, inclusive. Leading and trailing whitespace and single underscores " "after a base specifier and between digits are ignored. If there are no " "digits or *str* is not NULL-terminated following the digits and trailing " "whitespace, :exc:`ValueError` will be raised." msgstr "" #: c-api/long.rst:97 msgid "" "Python methods :meth:`int.to_bytes` and :meth:`int.from_bytes` to convert a :" "c:type:`PyLongObject` to/from an array of bytes in base ``256``. You can " "call those from C using :c:func:`PyObject_CallMethod`." msgstr "" #: c-api/long.rst:104 msgid "" "Convert a sequence of Unicode digits in the string *u* to a Python integer " "value." msgstr "" #: c-api/long.rst:112 msgid "" "Create a Python integer from the pointer *p*. The pointer value can be " "retrieved from the resulting value using :c:func:`PyLong_AsVoidPtr`." msgstr "" #: c-api/long.rst:141 msgid "" "Return a C :c:expr:`long` representation of *obj*. If *obj* is not an " "instance of :c:type:`PyLongObject`, first call its :meth:`~object.__index__` " "method (if present) to convert it to a :c:type:`PyLongObject`." msgstr "" #: c-api/long.rst:127 msgid "" "Raise :exc:`OverflowError` if the value of *obj* is out of range for a :c:" "expr:`long`." msgstr "" #: c-api/long.rst:150 c-api/long.rst:191 c-api/long.rst:214 msgid "Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate." msgstr "" #: c-api/long.rst:152 c-api/long.rst:195 c-api/long.rst:299 msgid "Use :meth:`~object.__index__` if available." msgstr "" #: c-api/long.rst:155 c-api/long.rst:198 c-api/long.rst:302 msgid "This function will no longer use :meth:`~object.__int__`." msgstr "" #: c-api/long.rst:145 msgid "" "If the value of *obj* is greater than :c:macro:`LONG_MAX` or less than :c:" "macro:`LONG_MIN`, set *\\*overflow* to ``1`` or ``-1``, respectively, and " "return ``-1``; otherwise, set *\\*overflow* to ``0``. If any other " "exception occurs set *\\*overflow* to ``0`` and return ``-1`` as usual." msgstr "" #: c-api/long.rst:182 msgid "" "Return a C :c:expr:`long long` representation of *obj*. If *obj* is not an " "instance of :c:type:`PyLongObject`, first call its :meth:`~object.__index__` " "method (if present) to convert it to a :c:type:`PyLongObject`." msgstr "" #: c-api/long.rst:168 msgid "" "Raise :exc:`OverflowError` if the value of *obj* is out of range for a :c:" "expr:`long long`." msgstr "" #: c-api/long.rst:186 msgid "" "If the value of *obj* is greater than :c:macro:`LLONG_MAX` or less than :c:" "macro:`LLONG_MIN`, set *\\*overflow* to ``1`` or ``-1``, respectively, and " "return ``-1``; otherwise, set *\\*overflow* to ``0``. If any other " "exception occurs set *\\*overflow* to ``0`` and return ``-1`` as usual." msgstr "" #: c-api/long.rst:208 msgid "" "Return a C :c:type:`Py_ssize_t` representation of *pylong*. *pylong* must " "be an instance of :c:type:`PyLongObject`." msgstr "" #: c-api/long.rst:211 msgid "" "Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:" "type:`Py_ssize_t`." msgstr "" #: c-api/long.rst:223 msgid "" "Return a C :c:expr:`unsigned long` representation of *pylong*. *pylong* " "must be an instance of :c:type:`PyLongObject`." msgstr "" #: c-api/long.rst:226 msgid "" "Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:" "expr:`unsigned long`." msgstr "" #: c-api/long.rst:229 msgid "" "Returns ``(unsigned long)-1`` on error. Use :c:func:`PyErr_Occurred` to " "disambiguate." msgstr "" #: c-api/long.rst:239 msgid "" "Return a C :c:type:`size_t` representation of *pylong*. *pylong* must be an " "instance of :c:type:`PyLongObject`." msgstr "" #: c-api/long.rst:242 msgid "" "Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:" "type:`size_t`." msgstr "" #: c-api/long.rst:245 msgid "" "Returns ``(size_t)-1`` on error. Use :c:func:`PyErr_Occurred` to " "disambiguate." msgstr "" #: c-api/long.rst:254 msgid "" "Return a C :c:expr:`unsigned long long` representation of *pylong*. " "*pylong* must be an instance of :c:type:`PyLongObject`." msgstr "" #: c-api/long.rst:257 msgid "" "Raise :exc:`OverflowError` if the value of *pylong* is out of range for an :" "c:expr:`unsigned long long`." msgstr "" #: c-api/long.rst:260 msgid "" "Returns ``(unsigned long long)-1`` on error. Use :c:func:`PyErr_Occurred` to " "disambiguate." msgstr "" #: c-api/long.rst:263 msgid "" "A negative *pylong* now raises :exc:`OverflowError`, not :exc:`TypeError`." msgstr "" #: c-api/long.rst:269 msgid "" "Return a C :c:expr:`unsigned long` representation of *obj*. If *obj* is not " "an instance of :c:type:`PyLongObject`, first call its :meth:`~object." "__index__` method (if present) to convert it to a :c:type:`PyLongObject`." msgstr "" #: c-api/long.rst:273 msgid "" "If the value of *obj* is out of range for an :c:expr:`unsigned long`, return " "the reduction of that value modulo ``ULONG_MAX + 1``." msgstr "" #: c-api/long.rst:276 msgid "" "Returns ``(unsigned long)-1`` on error. Use :c:func:`PyErr_Occurred` to " "disambiguate." msgstr "" #: c-api/long.rst:288 msgid "" "Return a C :c:expr:`unsigned long long` representation of *obj*. If *obj* " "is not an instance of :c:type:`PyLongObject`, first call its :meth:`~object." "__index__` method (if present) to convert it to a :c:type:`PyLongObject`." msgstr "" #: c-api/long.rst:293 msgid "" "If the value of *obj* is out of range for an :c:expr:`unsigned long long`, " "return the reduction of that value modulo ``ULLONG_MAX + 1``." msgstr "" #: c-api/long.rst:296 msgid "" "Returns ``(unsigned long long)-1`` on error. Use :c:func:`PyErr_Occurred` " "to disambiguate." msgstr "" #: c-api/long.rst:308 msgid "" "Return a C :c:expr:`double` representation of *pylong*. *pylong* must be an " "instance of :c:type:`PyLongObject`." msgstr "" #: c-api/long.rst:311 msgid "" "Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:" "expr:`double`." msgstr "" #: c-api/long.rst:314 msgid "" "Returns ``-1.0`` on error. Use :c:func:`PyErr_Occurred` to disambiguate." msgstr "" #: c-api/long.rst:319 msgid "" "Convert a Python integer *pylong* to a C :c:expr:`void` pointer. If *pylong* " "cannot be converted, an :exc:`OverflowError` will be raised. This is only " "assured to produce a usable :c:expr:`void` pointer for values created with :" "c:func:`PyLong_FromVoidPtr`." msgstr "" #: c-api/long.rst:324 msgid "" "Returns ``NULL`` on error. Use :c:func:`PyErr_Occurred` to disambiguate." msgstr "" #: c-api/long.rst:329 msgid "" "On success, return a read only :term:`named tuple`, that holds information " "about Python's internal representation of integers. See :data:`sys.int_info` " "for description of individual fields." msgstr "" #: c-api/long.rst:333 msgid "On failure, return ``NULL`` with an exception set." msgstr "" #: c-api/long.rst:340 msgid "Return 1 if *op* is compact, 0 otherwise." msgstr "" #: c-api/long.rst:342 msgid "" "This function makes it possible for performance-critical code to implement a " "“fast path” for small integers. For compact values use :c:func:" "`PyUnstable_Long_CompactValue`; for others fall back to a :c:func:" "`PyLong_As* ` function or :c:func:`calling " "` :meth:`int.to_bytes`." msgstr "" #: c-api/long.rst:348 msgid "The speedup is expected to be negligible for most users." msgstr "" #: c-api/long.rst:350 msgid "" "Exactly what values are considered compact is an implementation detail and " "is subject to change." msgstr "" #: c-api/long.rst:358 msgid "" "If *op* is compact, as determined by :c:func:`PyUnstable_Long_IsCompact`, " "return its value." msgstr "" #: c-api/long.rst:361 msgid "Otherwise, the return value is undefined." msgstr "" #: c-api/long.rst:8 msgid "object" msgstr "" #: c-api/long.rst:8 msgid "long integer" msgstr "" #: c-api/long.rst:8 msgid "integer" msgstr "" #: c-api/long.rst:119 msgid "LONG_MAX (C macro)" msgstr "" #: c-api/long.rst:161 c-api/long.rst:219 c-api/long.rst:251 msgid "OverflowError (built-in exception)" msgstr "" #: c-api/long.rst:204 msgid "PY_SSIZE_T_MAX (C macro)" msgstr "" #: c-api/long.rst:219 msgid "ULONG_MAX (C macro)" msgstr "" #: c-api/long.rst:235 msgid "SIZE_MAX (C macro)" msgstr ""