[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/python/python-docs-pl/3.15/c-api/structures.po [Back]  [Original]

# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR , YEAR.
#
# Translators:
# python-doc bot, 2025
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-10-21 18:18+0000\n"
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
"Last-Translator: python-doc bot, 2025\n"
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: pl\n"
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10=0 && n%10=5 && "
"n%10=12 && n%100ml_flags``."
msgstr ""

msgid ""
"The type object corresponding to Python C function objects. This is "
"available as :class:`types.BuiltinFunctionType` in the Python layer."
msgstr ""

msgid ""
"Return true if *op* is an instance of the :c:type:`PyCFunction_Type` type or "
"a subtype of it. This function always succeeds."
msgstr ""

msgid ""
"This is the same as :c:func:`PyCFunction_Check`, but does not account for "
"subtypes."
msgstr ""

msgid "Equivalent to ``PyCMethod_New(ml, self, module, NULL)``."
msgstr ""

msgid "Equivalent to ``PyCMethod_New(ml, self, NULL, NULL)``."
msgstr ""

msgid ""
"Get the function's flags on *func* as they were passed to :c:member:"
"`~PyMethodDef.ml_flags`."
msgstr ""

msgid ""
"If *func* is not a C function object, this fails with an exception. *func* "
"must not be ``NULL``."
msgstr ""

msgid ""
"This function returns the function's flags on success, and ``-1`` with an "
"exception set on failure."
msgstr ""

msgid ""
"This is the same as :c:func:`PyCFunction_GetFlags`, but without error or "
"type checking."
msgstr ""

msgid ""
"Get the function pointer on *func* as it was passed to :c:member:"
"`~PyMethodDef.ml_meth`."
msgstr ""

msgid ""
"This function returns the function pointer on success, and ``NULL`` with an "
"exception set on failure."
msgstr ""

msgid ""
"This is the same as :c:func:`PyCFunction_GetFunction`, but without error or "
"type checking."
msgstr ""

msgid ""
"Get the \"self\" object on *func*. This is the object that would be passed "
"to the first argument of a :c:type:`PyCFunction`. For C function objects "
"created through a :c:type:`PyMethodDef` on a :c:type:`PyModuleDef`, this is "
"the resulting module object."
msgstr ""

msgid ""
"This function returns a :term:`borrowed reference` to the \"self\" object on "
"success, and ``NULL`` with an exception set on failure."
msgstr ""

msgid ""
"This is the same as :c:func:`PyCFunction_GetSelf`, but without error or type "
"checking."
msgstr ""

msgid "Accessing attributes of extension types"
msgstr ""

msgid ""
"Structure which describes an attribute of a type which corresponds to a C "
"struct member. When defining a class, put a NULL-terminated array of these "
"structures in the :c:member:`~PyTypeObject.tp_members` slot."
msgstr ""

msgid "Its fields are, in order:"
msgstr ""

msgid ""
"Name of the member. A NULL value marks the end of a ``PyMemberDef[]`` array."
msgstr ""

msgid "The string should be static, no copy is made of it."
msgstr ""

msgid ""
"The type of the member in the C struct. See :ref:`PyMemberDef-types` for the "
"possible values."
msgstr ""

msgid ""
"The offset in bytes that the member is located on the types object struct."
msgstr ""

msgid ""
"Zero or more of the :ref:`PyMemberDef-flags`, combined using bitwise OR."
msgstr ""

msgid ""
"The docstring, or NULL. The string should be static, no copy is made of it. "
"Typically, it is defined using :c:macro:`PyDoc_STR`."
msgstr ""

msgid ""
"By default (when :c:member:`~PyMemberDef.flags` is ``0``), members allow "
"both read and write access. Use the :c:macro:`Py_READONLY` flag for read-"
"only access. Certain types, like :c:macro:`Py_T_STRING`, imply :c:macro:"
"`Py_READONLY`. Only :c:macro:`Py_T_OBJECT_EX` (and legacy :c:macro:"
"`T_OBJECT`) members can be deleted."
msgstr ""

msgid ""
"For heap-allocated types (created using :c:func:`PyType_FromSpec` or "
"similar), ``PyMemberDef`` may contain a definition for the special member "
"``\"__vectorcalloffset__\"``, corresponding to :c:member:`~PyTypeObject."
"tp_vectorcall_offset` in type objects. This member must be defined with "
"``Py_T_PYSSIZET``, and either ``Py_READONLY`` or ``Py_READONLY | "
"Py_RELATIVE_OFFSET``. For example::"
msgstr ""

msgid ""
"static PyMemberDef spam_type_members[] = {\n"
"    {\"__vectorcalloffset__\", Py_T_PYSSIZET,\n"
"     offsetof(Spam_object, vectorcall), Py_READONLY},\n"
"    {NULL}  /* Sentinel */\n"
"};"
msgstr ""

msgid "(You may need to ``#include `` for :c:func:`!offsetof`.)"
msgstr ""

msgid ""
"The legacy offsets :c:member:`~PyTypeObject.tp_dictoffset` and :c:member:"
"`~PyTypeObject.tp_weaklistoffset` can be defined similarly using "
"``\"__dictoffset__\"`` and ``\"__weaklistoffset__\"`` members, but "
"extensions are strongly encouraged to use :c:macro:`Py_TPFLAGS_MANAGED_DICT` "
"and :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` instead."
msgstr ""

msgid ""
"``PyMemberDef`` is always available. Previously, it required including "
"``\"structmember.h\"``."
msgstr ""

msgid ""
":c:macro:`Py_RELATIVE_OFFSET` is now allowed for "
"``\"__vectorcalloffset__\"``, ``\"__dictoffset__\"`` and "
"``\"__weaklistoffset__\"``."
msgstr ""

msgid ""
"Get an attribute belonging to the object at address *obj_addr*.  The "
"attribute is described by ``PyMemberDef`` *m*.  Returns ``NULL`` on error."
msgstr ""

msgid ""
"``PyMember_GetOne`` is always available. Previously, it required including "
"``\"structmember.h\"``."
msgstr ""

msgid ""
"Set an attribute belonging to the object at address *obj_addr* to object "
"*o*. The attribute to set is described by ``PyMemberDef`` *m*.  Returns "
"``0`` if successful and a negative value on failure."
msgstr ""

msgid ""
"``PyMember_SetOne`` is always available. Previously, it required including "
"``\"structmember.h\"``."
msgstr ""

msgid "Member flags"
msgstr ""

msgid "The following flags can be used with :c:member:`PyMemberDef.flags`:"
msgstr ""

msgid "Not writable."
msgstr ""

msgid ""
"Emit an ``object.__getattr__`` :ref:`audit event ` before "
"reading."
msgstr ""

msgid ""
"Indicates that the :c:member:`~PyMemberDef.offset` of this ``PyMemberDef`` "
"entry indicates an offset from the subclass-specific data, rather than from "
"``PyObject``."
msgstr ""

msgid ""
"Can only be used as part of the :c:data:`Py_tp_members` :c:type:`slot "
"` when creating a class using negative :c:member:`~PyType_Spec."
"basicsize`. It is mandatory in that case. When setting :c:member:"
"`~PyTypeObject.tp_members` from the slot during class creation, Python "
"clears the flag and sets :c:member:`PyMemberDef.offset` to the offset from "
"the ``PyObject`` struct."
msgstr ""

msgid ""
"The :c:macro:`!RESTRICTED`, :c:macro:`!READ_RESTRICTED` and :c:macro:`!"
"WRITE_RESTRICTED` macros available with ``#include \"structmember.h\"`` are "
"deprecated. :c:macro:`!READ_RESTRICTED` and :c:macro:`!RESTRICTED` are "
"equivalent to :c:macro:`Py_AUDIT_READ`; :c:macro:`!WRITE_RESTRICTED` does "
"nothing."
msgstr ""

msgid ""
"The :c:macro:`!READONLY` macro was renamed to :c:macro:`Py_READONLY`. The :c:"
"macro:`PY_AUDIT_READ` macro was renamed with the ``Py_`` prefix. The new "
"names are now always available. Previously, these required ``#include "
"\"structmember.h\"``. The header is still available and it provides the old "
"names."
msgstr ""

msgid ""
"Soft-deprecated alias of :c:macro:`Py_AUDIT_READ` (note capitalization of "
"the ``y``). Only available with  ``#include \"structmember.h\"``."
msgstr ""

msgid "Use :c:macro:`Py_AUDIT_READ` instead."
msgstr ""

msgid "Member types"
msgstr ""

msgid ""
":c:member:`PyMemberDef.type` can be one of the following macros "
"corresponding to various C types. When the member is accessed in Python, it "
"will be converted to the equivalent Python type. When it is set from Python, "
"it will be converted back to the C type. If that is not possible, an "
"exception such as :exc:`TypeError` or :exc:`ValueError` is raised."
msgstr ""

msgid ""
"Unless marked (D), attributes defined this way cannot be deleted using e.g. :"
"keyword:`del` or :py:func:`delattr`."
msgstr ""

msgid "Macro name"
msgstr ""

msgid "C type"
msgstr ""

msgid "Python type"
msgstr ""

msgid ":c:expr:`char`"
msgstr ":c:expr:`char`"

msgid ":py:class:`int`"
msgstr ":py:class:`int`"

msgid ":c:expr:`short`"
msgstr ":c:expr:`short`"

msgid ":c:expr:`int`"
msgstr ":c:expr:`int`"

msgid ":c:expr:`long`"
msgstr ":c:expr:`long`"

msgid ":c:expr:`long long`"
msgstr ":c:expr:`long long`"

msgid ":c:expr:`unsigned char`"
msgstr ":c:expr:`unsigned char`"

msgid ":c:expr:`unsigned int`"
msgstr ":c:expr:`unsigned int`"

msgid ":c:expr:`unsigned short`"
msgstr ":c:expr:`unsigned short`"

msgid ":c:expr:`unsigned long`"
msgstr ":c:expr:`unsigned long`"

msgid ":c:expr:`unsigned long long`"
msgstr ""

msgid ":c:expr:`Py_ssize_t`"
msgstr ":c:expr:`Py_ssize_t`"

msgid ":c:expr:`float`"
msgstr ":c:expr:`float`"

msgid ":py:class:`float`"
msgstr ":py:class:`float`"

msgid ":c:expr:`double`"
msgstr ":c:expr:`double`"

msgid ":c:expr:`char` (written as 0 or 1)"
msgstr ""

msgid ":py:class:`bool`"
msgstr ":py:class:`bool`"

msgid ":c:expr:`const char *` (*)"
msgstr ""

msgid ":py:class:`str` (RO)"
msgstr ":py:class:`str` (RO)"

msgid ":c:expr:`const char[]` (*)"
msgstr ""

msgid ":c:expr:`char` (0-127)"
msgstr ":c:expr:`char` (0-127)"

msgid ":py:class:`str` (**)"
msgstr ":py:class:`str` (**)"

msgid ":c:expr:`PyObject *`"
msgstr ":c:expr:`PyObject *`"

msgid ":py:class:`object` (D)"
msgstr ":py:class:`object` (D)"

msgid ""
"(*): Zero-terminated, UTF8-encoded C string. With :c:macro:`!Py_T_STRING` "
"the C representation is a pointer; with :c:macro:`!Py_T_STRING_INPLACE` the "
"string is stored directly in the structure."
msgstr ""

msgid "(**): String of length 1. Only ASCII is accepted."
msgstr ""

msgid "(RO): Implies :c:macro:`Py_READONLY`."
msgstr ""

msgid ""
"(D): Can be deleted, in which case the pointer is set to ``NULL``. Reading a "
"``NULL`` pointer raises :py:exc:`AttributeError`."
msgstr ""

msgid ""
"In previous versions, the macros were only available with ``#include "
"\"structmember.h\"`` and were named without the ``Py_`` prefix (e.g. as "
"``T_INT``). The header is still available and contains the old names, along "
"with the following deprecated types:"
msgstr ""

msgid ""
"Like ``Py_T_OBJECT_EX``, but ``NULL`` is converted to ``None``. This results "
"in surprising behavior in Python: deleting the attribute effectively sets it "
"to ``None``."
msgstr ""

msgid "Always ``None``. Must be used with :c:macro:`Py_READONLY`."
msgstr ""

msgid "Defining Getters and Setters"
msgstr ""

msgid ""
"Structure to define property-like access for a type. See also description of "
"the :c:member:`PyTypeObject.tp_getset` slot."
msgstr ""

msgid "attribute name"
msgstr ""

msgid "C function to get the attribute."
msgstr ""

msgid ""
"Optional C function to set or delete the attribute. If ``NULL``, the "
"attribute is read-only."
msgstr ""

msgid "optional docstring"
msgstr ""

msgid ""
"Optional user data pointer, providing additional data for getter and setter."
msgstr ""

msgid ""
"The ``get`` function takes one :c:expr:`PyObject*` parameter (the instance) "
"and a user data pointer (the associated ``closure``):"
msgstr ""

msgid ""
"It should return a new reference on success or ``NULL`` with a set exception "
"on failure."
msgstr ""

msgid ""
"``set`` functions take two :c:expr:`PyObject*` parameters (the instance and "
"the value to be set) and a user data pointer (the associated ``closure``):"
msgstr ""

msgid ""
"In case the attribute should be deleted the second parameter is ``NULL``. "
"Should return ``0`` on success or ``-1`` with a set exception on failure."
msgstr ""

msgid "built-in function"
msgstr "funkcja wbudowana"

msgid "classmethod"
msgstr ""

msgid "staticmethod"
msgstr ""

msgid "READ_RESTRICTED (C macro)"
msgstr ""

msgid "WRITE_RESTRICTED (C macro)"
msgstr ""

msgid "RESTRICTED (C macro)"
msgstr ""

msgid "READONLY (C macro)"
msgstr ""

msgid "T_BYTE (C macro)"
msgstr ""

msgid "T_SHORT (C macro)"
msgstr ""

msgid "T_INT (C macro)"
msgstr ""

msgid "T_LONG (C macro)"
msgstr ""

msgid "T_LONGLONG (C macro)"
msgstr ""

msgid "T_UBYTE (C macro)"
msgstr ""

msgid "T_USHORT (C macro)"
msgstr ""

msgid "T_UINT (C macro)"
msgstr ""

msgid "T_ULONG (C macro)"
msgstr ""

msgid "T_ULONGULONG (C macro)"
msgstr ""

msgid "T_PYSSIZET (C macro)"
msgstr ""

msgid "T_FLOAT (C macro)"
msgstr ""

msgid "T_DOUBLE (C macro)"
msgstr ""

msgid "T_BOOL (C macro)"
msgstr ""

msgid "T_CHAR (C macro)"
msgstr ""

msgid "T_STRING (C macro)"
msgstr ""

msgid "T_STRING_INPLACE (C macro)"
msgstr ""

msgid "T_OBJECT_EX (C macro)"
msgstr ""

msgid "structmember.h"
msgstr ""

Web Proxy Viewer  |  New URL  |  Original Page