# SOME DESCRIPTIVE TITLE. # Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.14\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-09-23 06:17+0000\n" "PO-Revision-Date: 2025-09-16 00:00+0000\n" "Language-Team: German (https://app.transifex.com/python-doc/teams/5390/de/)\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../../c-api/bytes.rst:6 msgid "Bytes Objects" msgstr "" #: ../../c-api/bytes.rst:8 msgid "" "These functions raise :exc:`TypeError` when expecting a bytes parameter and " "called with a non-bytes parameter." msgstr "" #: ../../c-api/bytes.rst:13 msgid "" "The internal buffer of :c:type:`PyBytesObject` always includes an extra " "trailing null byte for compatibility with null terminated C strings. This " "extra byte is not counted in :c:func:`PyBytes_Size` nor in the various " "*length* and *size* arguments of the functions below." msgstr "" #: ../../c-api/bytes.rst:23 msgid "This subtype of :c:type:`PyObject` represents a Python bytes object." msgstr "" #: ../../c-api/bytes.rst:28 msgid "" "This instance of :c:type:`PyTypeObject` represents the Python bytes type; it " "is the same object as :class:`bytes` in the Python layer." msgstr "" #: ../../c-api/bytes.rst:34 msgid "" "Return true if the object *o* is a bytes object or an instance of a subtype " "of the bytes type. This function always succeeds." msgstr "" #: ../../c-api/bytes.rst:40 msgid "" "Return true if the object *o* is a bytes object, but not an instance of a " "subtype of the bytes type. This function always succeeds." msgstr "" #: ../../c-api/bytes.rst:46 msgid "" "Return a new bytes object with a copy of the string *v* as value on success, " "and ``NULL`` on failure. The parameter *v* must not be ``NULL``; it will " "not be checked." msgstr "" #: ../../c-api/bytes.rst:53 msgid "" "Return a new bytes object with a copy of the string *v* as value and length " "*len* on success, and ``NULL`` on failure. If *v* is ``NULL``, the contents " "of the bytes object are uninitialized." msgstr "" #: ../../c-api/bytes.rst:60 msgid "" "Take a C :c:func:`printf`\\ -style *format* string and a variable number of " "arguments, calculate the size of the resulting Python bytes object and " "return a bytes object with the values formatted into it. The variable " "arguments must be C types and must correspond exactly to the format " "characters in the *format* string. The following format characters are " "allowed:" msgstr "" #: ../../c-api/bytes.rst:72 msgid "Format Characters" msgstr "" #: ../../c-api/bytes.rst:72 msgid "Type" msgstr "" #: ../../c-api/bytes.rst:72 msgid "Comment" msgstr "" #: ../../c-api/bytes.rst:74 msgid "``%%``" msgstr "" #: ../../c-api/bytes.rst:74 msgid "*n/a*" msgstr "" #: ../../c-api/bytes.rst:74 msgid "The literal % character." msgstr "" #: ../../c-api/bytes.rst:76 msgid "``%c``" msgstr "" #: ../../c-api/bytes.rst:76 ../../c-api/bytes.rst:79 ../../c-api/bytes.rst:97 #: ../../c-api/bytes.rst:100 msgid "int" msgstr "" #: ../../c-api/bytes.rst:76 msgid "A single byte, represented as a C int." msgstr "" #: ../../c-api/bytes.rst:79 msgid "``%d``" msgstr "" #: ../../c-api/bytes.rst:79 msgid "Equivalent to ``printf(\"%d\")``. [1]_" msgstr "" #: ../../c-api/bytes.rst:82 msgid "``%u``" msgstr "" #: ../../c-api/bytes.rst:82 msgid "unsigned int" msgstr "" #: ../../c-api/bytes.rst:82 msgid "Equivalent to ``printf(\"%u\")``. [1]_" msgstr "" #: ../../c-api/bytes.rst:85 msgid "``%ld``" msgstr "" #: ../../c-api/bytes.rst:85 msgid "long" msgstr "" #: ../../c-api/bytes.rst:85 msgid "Equivalent to ``printf(\"%ld\")``. [1]_" msgstr "" #: ../../c-api/bytes.rst:88 msgid "``%lu``" msgstr "" #: ../../c-api/bytes.rst:88 msgid "unsigned long" msgstr "" #: ../../c-api/bytes.rst:88 msgid "Equivalent to ``printf(\"%lu\")``. [1]_" msgstr "" #: ../../c-api/bytes.rst:91 msgid "``%zd``" msgstr "" #: ../../c-api/bytes.rst:91 msgid ":c:type:` Py_ssize_t`" msgstr "" #: ../../c-api/bytes.rst:91 msgid "Equivalent to ``printf(\"%zd\")``. [1]_" msgstr "" #: ../../c-api/bytes.rst:94 msgid "``%zu``" msgstr "" #: ../../c-api/bytes.rst:94 msgid "size_t" msgstr "" #: ../../c-api/bytes.rst:94 msgid "Equivalent to ``printf(\"%zu\")``. [1]_" msgstr "" #: ../../c-api/bytes.rst:97 msgid "``%i``" msgstr "" #: ../../c-api/bytes.rst:97 msgid "Equivalent to ``printf(\"%i\")``. [1]_" msgstr "" #: ../../c-api/bytes.rst:100 msgid "``%x``" msgstr "" #: ../../c-api/bytes.rst:100 msgid "Equivalent to ``printf(\"%x\")``. [1]_" msgstr "" #: ../../c-api/bytes.rst:103 msgid "``%s``" msgstr "" #: ../../c-api/bytes.rst:103 msgid "const char\\*" msgstr "" #: ../../c-api/bytes.rst:103 msgid "A null-terminated C character array." msgstr "" #: ../../c-api/bytes.rst:106 msgid "``%p``" msgstr "" #: ../../c-api/bytes.rst:106 msgid "const void\\*" msgstr "" #: ../../c-api/bytes.rst:106 msgid "" "The hex representation of a C pointer. Mostly equivalent to " "``printf(\"%p\")`` except that it is guaranteed to start with the literal " "``0x`` regardless of what the platform's ``printf`` yields." msgstr "" #: ../../c-api/bytes.rst:115 msgid "" "An unrecognized format character causes all the rest of the format string to " "be copied as-is to the result object, and any extra arguments discarded." msgstr "" #: ../../c-api/bytes.rst:118 msgid "" "For integer specifiers (d, u, ld, lu, zd, zu, i, x): the 0-conversion flag " "has effect even when a precision is given." msgstr "" #: ../../c-api/bytes.rst:124 msgid "" "Identical to :c:func:`PyBytes_FromFormat` except that it takes exactly two " "arguments." msgstr "" #: ../../c-api/bytes.rst:130 msgid "" "Return the bytes representation of object *o* that implements the buffer " "protocol." msgstr "" #: ../../c-api/bytes.rst:134 msgid "" "If the object implements the buffer protocol, then the buffer must not be " "mutated while the bytes object is being created." msgstr "" #: ../../c-api/bytes.rst:140 msgid "Return the length of the bytes in bytes object *o*." msgstr "" #: ../../c-api/bytes.rst:145 msgid "Similar to :c:func:`PyBytes_Size`, but without error checking." msgstr "" #: ../../c-api/bytes.rst:150 msgid "" "Return a pointer to the contents of *o*. The pointer refers to the internal " "buffer of *o*, which consists of ``len(o) + 1`` bytes. The last byte in the " "buffer is always null, regardless of whether there are any other null " "bytes. The data must not be modified in any way, unless the object was just " "created using ``PyBytes_FromStringAndSize(NULL, size)``. It must not be " "deallocated. If *o* is not a bytes object at all, :c:func:" "`PyBytes_AsString` returns ``NULL`` and raises :exc:`TypeError`." msgstr "" #: ../../c-api/bytes.rst:162 msgid "Similar to :c:func:`PyBytes_AsString`, but without error checking." msgstr "" #: ../../c-api/bytes.rst:167 msgid "" "Return the null-terminated contents of the object *obj* through the output " "variables *buffer* and *length*. Returns ``0`` on success." msgstr "" #: ../../c-api/bytes.rst:171 msgid "" "If *length* is ``NULL``, the bytes object may not contain embedded null " "bytes; if it does, the function returns ``-1`` and a :exc:`ValueError` is " "raised." msgstr "" #: ../../c-api/bytes.rst:175 msgid "" "The buffer refers to an internal buffer of *obj*, which includes an " "additional null byte at the end (not counted in *length*). The data must " "not be modified in any way, unless the object was just created using " "``PyBytes_FromStringAndSize(NULL, size)``. It must not be deallocated. If " "*obj* is not a bytes object at all, :c:func:`PyBytes_AsStringAndSize` " "returns ``-1`` and raises :exc:`TypeError`." msgstr "" #: ../../c-api/bytes.rst:182 msgid "" "Previously, :exc:`TypeError` was raised when embedded null bytes were " "encountered in the bytes object." msgstr "" #: ../../c-api/bytes.rst:189 msgid "" "Create a new bytes object in *\\*bytes* containing the contents of *newpart* " "appended to *bytes*; the caller will own the new reference. The reference to " "the old value of *bytes* will be \":term:`stolen `\". If the new " "object cannot be created, the old reference to *bytes* will still be " "\"stolen\", the value of *\\*bytes* will be set to ``NULL``, and the " "appropriate exception will be set." msgstr "" #: ../../c-api/bytes.rst:197 ../../c-api/bytes.rst:207 msgid "" "If *newpart* implements the buffer protocol, then the buffer must not be " "mutated while the new bytes object is being created." msgstr "" #: ../../c-api/bytes.rst:202 msgid "" "Create a new bytes object in *\\*bytes* containing the contents of *newpart* " "appended to *bytes*. This version releases the :term:`strong reference` to " "*newpart* (i.e. decrements its reference count)." msgstr "" #: ../../c-api/bytes.rst:213 msgid "Similar to ``sep.join(iterable)`` in Python." msgstr "" #: ../../c-api/bytes.rst:215 msgid "" "*sep* must be Python :class:`bytes` object. (Note that :c:func:" "`PyUnicode_Join` accepts ``NULL`` separator and treats it as a space, " "whereas :c:func:`PyBytes_Join` doesn't accept ``NULL`` separator.)" msgstr "" #: ../../c-api/bytes.rst:220 msgid "" "*iterable* must be an iterable object yielding objects that implement the :" "ref:`buffer protocol `." msgstr "" #: ../../c-api/bytes.rst:223 msgid "" "On success, return a new :class:`bytes` object. On error, set an exception " "and return ``NULL``." msgstr "" #: ../../c-api/bytes.rst:229 msgid "" "If *iterable* objects implement the buffer protocol, then the buffers must " "not be mutated while the new bytes object is being created." msgstr "" #: ../../c-api/bytes.rst:234 msgid "" "Resize a bytes object. *newsize* will be the new length of the bytes object. " "You can think of it as creating a new bytes object and destroying the old " "one, only more efficiently. Pass the address of an existing bytes object as " "an lvalue (it may be written into), and the new size desired. On success, " "*\\*bytes* holds the resized bytes object and ``0`` is returned; the address " "in *\\*bytes* may differ from its input value. If the reallocation fails, " "the original bytes object at *\\*bytes* is deallocated, *\\*bytes* is set to " "``NULL``, :exc:`MemoryError` is set, and ``-1`` is returned." msgstr "" #: ../../c-api/bytes.rst:248 msgid "" "Get the string representation of *bytes*. This function is currently used to " "implement :meth:`!bytes.__repr__` in Python." msgstr "" #: ../../c-api/bytes.rst:251 msgid "" "This function does not do type checking; it is undefined behavior to pass " "*bytes* as a non-bytes object or ``NULL``." msgstr "" #: ../../c-api/bytes.rst:254 msgid "" "If *smartquotes* is true, the representation will use a double-quoted string " "instead of single-quoted string when single-quotes are present in *bytes*. " "For example, the byte string ``'Python'`` would be represented as " "``b\"'Python'\"`` when *smartquotes* is true, or ``b'\\'Python\\''`` when it " "is false." msgstr "" #: ../../c-api/bytes.rst:260 msgid "" "On success, this function returns a :term:`strong reference` to a :class:" "`str` object containing the representation. On failure, this returns " "``NULL`` with an exception set." msgstr "" #: ../../c-api/bytes.rst:267 msgid "" "Unescape a backslash-escaped string *s*. *s* must not be ``NULL``. *len* " "must be the size of *s*." msgstr "" #: ../../c-api/bytes.rst:270 msgid "" "*errors* must be one of ``\"strict\"``, ``\"replace\"``, or ``\"ignore\"``. " "If *errors* is ``NULL``, then ``\"strict\"`` is used by default." msgstr "" #: ../../c-api/bytes.rst:273 msgid "" "On success, this function returns a :term:`strong reference` to a Python :" "class:`bytes` object containing the unescaped string. On failure, this " "function returns ``NULL`` with an exception set." msgstr "" #: ../../c-api/bytes.rst:277 msgid "*unicode* and *recode_encoding* are now unused." msgstr "" #: ../../c-api/bytes.rst:18 msgid "object" msgstr "" #: ../../c-api/bytes.rst:18 msgid "bytes" msgstr ""