223 lines
7.2 KiB
Plaintext
223 lines
7.2 KiB
Plaintext
# SOME DESCRIPTIVE TITLE.
|
|
# Copyright (C) 1990-2016, Python Software Foundation
|
|
# This file is distributed under the same license as the Python package.
|
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
#
|
|
#, fuzzy
|
|
msgid ""
|
|
msgstr ""
|
|
"Project-Id-Version: Python 2.7\n"
|
|
"Report-Msgid-Bugs-To: \n"
|
|
"POT-Creation-Date: 2016-10-30 10:44+0100\n"
|
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
"MIME-Version: 1.0\n"
|
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
#: ../Doc/c-api/long.rst:6
|
|
msgid "Long Integer Objects"
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:13
|
|
msgid ""
|
|
"This subtype of :c:type:`PyObject` represents a Python long integer object."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:20
|
|
msgid ""
|
|
"This instance of :c:type:`PyTypeObject` represents the Python long integer "
|
|
"type. This is the same object as ``long`` and ``types.LongType``."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:26
|
|
msgid ""
|
|
"Return true if its argument is a :c:type:`PyLongObject` or a subtype of :c:"
|
|
"type:`PyLongObject`."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:29
|
|
msgid "Allowed subtypes to be accepted."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:35
|
|
msgid ""
|
|
"Return true if its argument is a :c:type:`PyLongObject`, but not a subtype "
|
|
"of :c:type:`PyLongObject`."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:43
|
|
msgid ""
|
|
"Return a new :c:type:`PyLongObject` object from *v*, or *NULL* on failure."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:48
|
|
msgid ""
|
|
"Return a new :c:type:`PyLongObject` object from a C :c:type:`unsigned long`, "
|
|
"or *NULL* on failure."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:54
|
|
msgid ""
|
|
"Return a new :c:type:`PyLongObject` object from a C :c:type:`Py_ssize_t`, or "
|
|
"*NULL* on failure."
|
|
msgstr ""
|
|
|
|
#: ../Doc/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 ""
|
|
|
|
#: ../Doc/c-api/long.rst:70
|
|
msgid ""
|
|
"Return a new :c:type:`PyLongObject` object from a C :c:type:`long long`, or "
|
|
"*NULL* on failure."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:76
|
|
msgid ""
|
|
"Return a new :c:type:`PyLongObject` object from a C :c:type:`unsigned long "
|
|
"long`, or *NULL* on failure."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:82
|
|
msgid ""
|
|
"Return a new :c:type:`PyLongObject` object from the integer part of *v*, or "
|
|
"*NULL* on failure."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:88
|
|
msgid ""
|
|
"Return a new :c:type:`PyLongObject` based on the string value in *str*, "
|
|
"which is interpreted according to the radix in *base*. If *pend* is non-"
|
|
"*NULL*, *\\*pend* will point to the first character in *str* which follows "
|
|
"the representation of the number. If *base* is ``0``, the radix will be "
|
|
"determined based on the leading characters of *str*: if *str* starts with "
|
|
"``'0x'`` or ``'0X'``, radix 16 will be used; if *str* starts with ``'0'``, "
|
|
"radix 8 will be used; otherwise radix 10 will be used. If *base* is not "
|
|
"``0``, it must be between ``2`` and ``36``, inclusive. Leading spaces are "
|
|
"ignored. If there are no digits, :exc:`ValueError` will be raised."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:101
|
|
msgid ""
|
|
"Convert a sequence of Unicode digits to a Python long integer value. The "
|
|
"first parameter, *u*, points to the first character of the Unicode string, "
|
|
"*length* gives the number of characters, and *base* is the radix for the "
|
|
"conversion. The radix must be in the range [2, 36]; if it is out of range, :"
|
|
"exc:`ValueError` will be raised."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:109
|
|
msgid ""
|
|
"This function used an :c:type:`int` for *length*. This might require changes "
|
|
"in your code for properly supporting 64-bit systems."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:116
|
|
msgid ""
|
|
"Create a Python integer or long integer from the pointer *p*. The pointer "
|
|
"value can be retrieved from the resulting value using :c:func:"
|
|
"`PyLong_AsVoidPtr`."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:121
|
|
msgid ""
|
|
"If the integer is larger than LONG_MAX, a positive long integer is returned."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:131
|
|
msgid ""
|
|
"Return a C :c:type:`long` representation of the contents of *pylong*. If "
|
|
"*pylong* is greater than :const:`LONG_MAX`, an :exc:`OverflowError` is "
|
|
"raised and ``-1`` will be returned."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:138
|
|
msgid ""
|
|
"Return a C :c:type:`long` representation of the contents of *pylong*. If "
|
|
"*pylong* is greater than :const:`LONG_MAX` or less than :const:`LONG_MIN`, "
|
|
"set *\\*overflow* to ``1`` or ``-1``, respectively, and return ``-1``; "
|
|
"otherwise, set *\\*overflow* to ``0``. If any other exception occurs (for "
|
|
"example a TypeError or MemoryError), then ``-1`` will be returned and *"
|
|
"\\*overflow* will be ``0``."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:151
|
|
msgid ""
|
|
"Return a C :c:type:`long long` representation of the contents of *pylong*. "
|
|
"If *pylong* is greater than :const:`PY_LLONG_MAX` or less than :const:"
|
|
"`PY_LLONG_MIN`, set *\\*overflow* to ``1`` or ``-1``, respectively, and "
|
|
"return ``-1``; otherwise, set *\\*overflow* to ``0``. If any other "
|
|
"exception occurs (for example a TypeError or MemoryError), then ``-1`` will "
|
|
"be returned and *\\*overflow* will be ``0``."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:168
|
|
msgid ""
|
|
"Return a C :c:type:`Py_ssize_t` representation of the contents of *pylong*. "
|
|
"If *pylong* is greater than :const:`PY_SSIZE_T_MAX`, an :exc:`OverflowError` "
|
|
"is raised and ``-1`` will be returned."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:181
|
|
msgid ""
|
|
"Return a C :c:type:`unsigned long` representation of the contents of "
|
|
"*pylong*. If *pylong* is greater than :const:`ULONG_MAX`, an :exc:"
|
|
"`OverflowError` is raised."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:191
|
|
msgid ""
|
|
"Return a C :c:type:`long long` from a Python long integer. If *pylong* "
|
|
"cannot be represented as a :c:type:`long long`, an :exc:`OverflowError` is "
|
|
"raised and ``-1`` is returned."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:203
|
|
msgid ""
|
|
"Return a C :c:type:`unsigned long long` from a Python long integer. If "
|
|
"*pylong* cannot be represented as an :c:type:`unsigned long long`, an :exc:"
|
|
"`OverflowError` is raised and ``(unsigned long long)-1`` is returned."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:210
|
|
msgid ""
|
|
"A negative *pylong* now raises :exc:`OverflowError`, not :exc:`TypeError`."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:217
|
|
msgid ""
|
|
"Return a C :c:type:`unsigned long` from a Python long integer, without "
|
|
"checking for overflow."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:225
|
|
msgid ""
|
|
"Return a C :c:type:`unsigned long long` from a Python long integer, without "
|
|
"checking for overflow."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:233
|
|
msgid ""
|
|
"Return a C :c:type:`double` representation of the contents of *pylong*. If "
|
|
"*pylong* cannot be approximately represented as a :c:type:`double`, an :exc:"
|
|
"`OverflowError` exception is raised and ``-1.0`` will be returned."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:240
|
|
msgid ""
|
|
"Convert a Python integer or long integer *pylong* to a C :c:type:`void` "
|
|
"pointer. If *pylong* cannot be converted, an :exc:`OverflowError` will be "
|
|
"raised. This is only assured to produce a usable :c:type:`void` pointer for "
|
|
"values created with :c:func:`PyLong_FromVoidPtr`."
|
|
msgstr ""
|
|
|
|
#: ../Doc/c-api/long.rst:247
|
|
msgid ""
|
|
"For values outside 0..LONG_MAX, both signed and unsigned integers are "
|
|
"accepted."
|
|
msgstr ""
|