| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e65c5e2 commit 1e46bdd
508 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,8 @@ msgstr "" | |||
| 10 | 10 | "Report-Msgid-Bugs-To: \n" | |
| 11 | 11 | "POT-Creation-Date: 2025-02-14 14:17+0000\n" | |
| 12 | 12 | "PO-Revision-Date: 2021-06-28 00:47+0000\n" | |
| 13 | - "Language-Team: Persian (https://app.transifex.com/python-doc/teams/5390/fa/)\n" | ||
| 13 | + "Language-Team: Persian (https://app.transifex.com/python-doc/teams/5390/" | ||
| 14 | + "fa/)\n" | ||
| 14 | 15 | "MIME-Version: 1.0\n" | |
| 15 | 16 | "Content-Type: text/plain; charset=UTF-8\n" | |
| 16 | 17 | "Content-Transfer-Encoding: 8bit\n" | |
@@ -22,37 +23,55 @@ msgid "About this documentation" | |||
| 22 | 23 | msgstr "" | |
| 23 | 24 | ||
| 24 | 25 | #: ../../about.rst:6 | |
| 25 | - msgid "Python's documentation is generated from `reStructuredText`_ sources using `Sphinx`_, a documentation generator originally created for Python and now maintained as an independent project." | ||
| 26 | + msgid "" | ||
| 27 | + "Python's documentation is generated from `reStructuredText`_ sources using " | ||
| 28 | + "`Sphinx`_, a documentation generator originally created for Python and now " | ||
| 29 | + "maintained as an independent project." | ||
| 26 | 30 | msgstr "" | |
| 27 | 31 | ||
| 28 | 32 | #: ../../about.rst:16 | |
| 29 | - msgid "Development of the documentation and its toolchain is an entirely volunteer effort, just like Python itself. If you want to contribute, please take a look at the :ref:`reporting-bugs` page for information on how to do so. New volunteers are always welcome!" | ||
| 33 | + msgid "" | ||
| 34 | + "Development of the documentation and its toolchain is an entirely volunteer " | ||
| 35 | + "effort, just like Python itself. If you want to contribute, please take a " | ||
| 36 | + "look at the :ref:`reporting-bugs` page for information on how to do so. New " | ||
| 37 | + "volunteers are always welcome!" | ||
| 30 | 38 | msgstr "" | |
| 31 | 39 | ||
| 32 | 40 | #: ../../about.rst:21 | |
| 33 | 41 | msgid "Many thanks go to:" | |
| 34 | 42 | msgstr "" | |
| 35 | 43 | ||
| 36 | 44 | #: ../../about.rst:23 | |
| 37 | - msgid "Fred L. Drake, Jr., the creator of the original Python documentation toolset and author of much of the content;" | ||
| 45 | + msgid "" | ||
| 46 | + "Fred L. Drake, Jr., the creator of the original Python documentation toolset " | ||
| 47 | + "and author of much of the content;" | ||
| 38 | 48 | msgstr "" | |
| 39 | 49 | ||
| 40 | 50 | #: ../../about.rst:25 | |
| 41 | - msgid "the `Docutils <https://docutils.sourceforge.io/>`_ project for creating reStructuredText and the Docutils suite;" | ||
| 51 | + msgid "" | ||
| 52 | + "the `Docutils <https://docutils.sourceforge.io/>`_ project for creating " | ||
| 53 | + "reStructuredText and the Docutils suite;" | ||
| 42 | 54 | msgstr "" | |
| 43 | 55 | ||
| 44 | 56 | #: ../../about.rst:27 | |
| 45 | - msgid "Fredrik Lundh for his Alternative Python Reference project from which Sphinx got many good ideas." | ||
| 57 | + msgid "" | ||
| 58 | + "Fredrik Lundh for his Alternative Python Reference project from which Sphinx " | ||
| 59 | + "got many good ideas." | ||
| 46 | 60 | msgstr "" | |
| 47 | 61 | ||
| 48 | 62 | #: ../../about.rst:32 | |
| 49 | 63 | msgid "Contributors to the Python documentation" | |
| 50 | 64 | msgstr "" | |
| 51 | 65 | ||
| 52 | 66 | #: ../../about.rst:34 | |
| 53 | - msgid "Many people have contributed to the Python language, the Python standard library, and the Python documentation. See :source:`Misc/ACKS` in the Python source distribution for a partial list of contributors." | ||
| 67 | + msgid "" | ||
| 68 | + "Many people have contributed to the Python language, the Python standard " | ||
| 69 | + "library, and the Python documentation. See :source:`Misc/ACKS` in the " | ||
| 70 | + "Python source distribution for a partial list of contributors." | ||
| 54 | 71 | msgstr "" | |
| 55 | 72 | ||
| 56 | 73 | #: ../../about.rst:38 | |
| 57 | - msgid "It is only with the input and contributions of the Python community that Python has such wonderful documentation -- Thank You!" | ||
| 74 | + msgid "" | ||
| 75 | + "It is only with the input and contributions of the Python community that " | ||
| 76 | + "Python has such wonderful documentation -- Thank You!" | ||
| 58 | 77 | msgstr "" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,8 @@ msgstr "" | |||
| 14 | 14 | "POT-Creation-Date: 2025-02-14 14:17+0000\n" | |
| 15 | 15 | "PO-Revision-Date: 2021-06-28 00:47+0000\n" | |
| 16 | 16 | "Last-Translator: Alireza Shabani (Revisto) <theRevisto@gmail.com>, 2025\n" | |
| 17 | - "Language-Team: Persian (https://app.transifex.com/python-doc/teams/5390/fa/)\n" | ||
| 17 | + "Language-Team: Persian (https://app.transifex.com/python-doc/teams/5390/" | ||
| 18 | + "fa/)\n" | ||
| 18 | 19 | "MIME-Version: 1.0\n" | |
| 19 | 20 | "Content-Type: text/plain; charset=UTF-8\n" | |
| 20 | 21 | "Content-Transfer-Encoding: 8bit\n" | |
@@ -26,121 +27,189 @@ msgid "Dealing with Bugs" | |||
| 26 | 27 | msgstr "" | |
| 27 | 28 | ||
| 28 | 29 | #: ../../bugs.rst:7 | |
| 29 | - msgid "Python is a mature programming language which has established a reputation for stability. In order to maintain this reputation, the developers would like to know of any deficiencies you find in Python." | ||
| 30 | + msgid "" | ||
| 31 | + "Python is a mature programming language which has established a reputation " | ||
| 32 | + "for stability. In order to maintain this reputation, the developers would " | ||
| 33 | + "like to know of any deficiencies you find in Python." | ||
| 30 | 34 | msgstr "" | |
| 31 | 35 | ||
| 32 | 36 | #: ../../bugs.rst:11 | |
| 33 | - msgid "It can be sometimes faster to fix bugs yourself and contribute patches to Python as it streamlines the process and involves less people. Learn how to :ref:`contribute <contributing-to-python>`." | ||
| 37 | + msgid "" | ||
| 38 | + "It can be sometimes faster to fix bugs yourself and contribute patches to " | ||
| 39 | + "Python as it streamlines the process and involves less people. Learn how to :" | ||
| 40 | + "ref:`contribute <contributing-to-python>`." | ||
| 34 | 41 | msgstr "" | |
| 35 | 42 | ||
| 36 | 43 | #: ../../bugs.rst:16 | |
| 37 | 44 | msgid "Documentation bugs" | |
| 38 | 45 | msgstr "" | |
| 39 | 46 | ||
| 40 | 47 | #: ../../bugs.rst:18 | |
| 41 | - msgid "If you find a bug in this documentation or would like to propose an improvement, please submit a bug report on the :ref:`tracker <using-the-tracker>`. If you have a suggestion on how to fix it, include that as well." | ||
| 48 | + msgid "" | ||
| 49 | + "If you find a bug in this documentation or would like to propose an " | ||
| 50 | + "improvement, please submit a bug report on the :ref:`tracker <using-the-" | ||
| 51 | + "tracker>`. If you have a suggestion on how to fix it, include that as well." | ||
| 42 | 52 | msgstr "" | |
| 43 | 53 | ||
| 44 | 54 | #: ../../bugs.rst:22 | |
| 45 | - msgid "You can also open a discussion item on our `Documentation Discourse forum <https://discuss.python.org/c/documentation/26>`_." | ||
| 55 | + msgid "" | ||
| 56 | + "You can also open a discussion item on our `Documentation Discourse forum " | ||
| 57 | + "<https://discuss.python.org/c/documentation/26>`_." | ||
| 46 | 58 | msgstr "" | |
| 47 | 59 | ||
| 48 | 60 | #: ../../bugs.rst:25 | |
| 49 | - msgid "If you find a bug in the theme (HTML / CSS / JavaScript) of the documentation, please submit a bug report on the `python-doc-theme bug tracker <https://github.com/python/python-docs-theme>`_." | ||
| 61 | + msgid "" | ||
| 62 | + "If you find a bug in the theme (HTML / CSS / JavaScript) of the " | ||
| 63 | + "documentation, please submit a bug report on the `python-doc-theme bug " | ||
| 64 | + "tracker <https://github.com/python/python-docs-theme>`_." | ||
| 50 | 65 | msgstr "" | |
| 51 | 66 | ||
| 52 | 67 | #: ../../bugs.rst:29 | |
| 53 | - msgid "If you're short on time, you can also email documentation bug reports to docs@python.org (behavioral bugs can be sent to python-list@python.org). 'docs@' is a mailing list run by volunteers; your request will be noticed, though it may take a while to be processed." | ||
| 68 | + msgid "" | ||
| 69 | + "If you're short on time, you can also email documentation bug reports to " | ||
| 70 | + "docs@python.org (behavioral bugs can be sent to python-list@python.org). " | ||
| 71 | + "'docs@' is a mailing list run by volunteers; your request will be noticed, " | ||
| 72 | + "though it may take a while to be processed." | ||
| 54 | 73 | msgstr "" | |
| 55 | 74 | ||
| 56 | 75 | #: ../../bugs.rst:36 | |
| 57 | 76 | msgid "`Documentation bugs`_" | |
| 58 | 77 | msgstr "" | |
| 59 | 78 | ||
| 60 | 79 | #: ../../bugs.rst:37 | |
| 61 | - msgid "A list of documentation bugs that have been submitted to the Python issue tracker." | ||
| 80 | + msgid "" | ||
| 81 | + "A list of documentation bugs that have been submitted to the Python issue " | ||
| 82 | + "tracker." | ||
| 62 | 83 | msgstr "" | |
| 63 | 84 | ||
| 64 | 85 | #: ../../bugs.rst:39 | |
| 65 | 86 | msgid "`Issue Tracking <https://devguide.python.org/tracker/>`_" | |
| 66 | 87 | msgstr "" | |
| 67 | 88 | ||
| 68 | 89 | #: ../../bugs.rst:40 | |
| 69 | - msgid "Overview of the process involved in reporting an improvement on the tracker." | ||
| 90 | + msgid "" | ||
| 91 | + "Overview of the process involved in reporting an improvement on the tracker." | ||
| 70 | 92 | msgstr "" | |
| 71 | 93 | ||
| 72 | 94 | #: ../../bugs.rst:42 | |
| 73 | - msgid "`Helping with Documentation <https://devguide.python.org/docquality/#helping-with-documentation>`_" | ||
| 95 | + msgid "" | ||
| 96 | + "`Helping with Documentation <https://devguide.python.org/docquality/#helping-" | ||
| 97 | + "with-documentation>`_" | ||
| 74 | 98 | msgstr "" | |
| 75 | 99 | ||
| 76 | 100 | #: ../../bugs.rst:43 | |
| 77 | - msgid "Comprehensive guide for individuals that are interested in contributing to Python documentation." | ||
| 101 | + msgid "" | ||
| 102 | + "Comprehensive guide for individuals that are interested in contributing to " | ||
| 103 | + "Python documentation." | ||
| 78 | 104 | msgstr "" | |
| 79 | 105 | ||
| 80 | 106 | #: ../../bugs.rst:45 | |
| 81 | - msgid "`Documentation Translations <https://devguide.python.org/documentation/translating/>`_" | ||
| 107 | + msgid "" | ||
| 108 | + "`Documentation Translations <https://devguide.python.org/documentation/" | ||
| 109 | + "translating/>`_" | ||
| 82 | 110 | msgstr "" | |
| 83 | 111 | ||
| 84 | 112 | #: ../../bugs.rst:46 | |
| 85 | - msgid "A list of GitHub pages for documentation translation and their primary contacts." | ||
| 113 | + msgid "" | ||
| 114 | + "A list of GitHub pages for documentation translation and their primary " | ||
| 115 | + "contacts." | ||
| 86 | 116 | msgstr "" | |
| 87 | 117 | ||
| 88 | 118 | #: ../../bugs.rst:52 | |
| 89 | 119 | msgid "Using the Python issue tracker" | |
| 90 | 120 | msgstr "" | |
| 91 | 121 | ||
| 92 | 122 | #: ../../bugs.rst:54 | |
| 93 | - msgid "Issue reports for Python itself should be submitted via the GitHub issues tracker (https://github.com/python/cpython/issues). The GitHub issues tracker offers a web form which allows pertinent information to be entered and submitted to the developers." | ||
| 123 | + msgid "" | ||
| 124 | + "Issue reports for Python itself should be submitted via the GitHub issues " | ||
| 125 | + "tracker (https://github.com/python/cpython/issues). The GitHub issues " | ||
| 126 | + "tracker offers a web form which allows pertinent information to be entered " | ||
| 127 | + "and submitted to the developers." | ||
| 94 | 128 | msgstr "" | |
| 95 | 129 | ||
| 96 | 130 | #: ../../bugs.rst:59 | |
| 97 | - msgid "The first step in filing a report is to determine whether the problem has already been reported. The advantage in doing so, aside from saving the developers' time, is that you learn what has been done to fix it; it may be that the problem has already been fixed for the next release, or additional information is needed (in which case you are welcome to provide it if you can!). To do this, search the tracker using the search box at the top of the page." | ||
| 131 | + msgid "" | ||
| 132 | + "The first step in filing a report is to determine whether the problem has " | ||
| 133 | + "already been reported. The advantage in doing so, aside from saving the " | ||
| 134 | + "developers' time, is that you learn what has been done to fix it; it may be " | ||
| 135 | + "that the problem has already been fixed for the next release, or additional " | ||
| 136 | + "information is needed (in which case you are welcome to provide it if you " | ||
| 137 | + "can!). To do this, search the tracker using the search box at the top of the " | ||
| 138 | + "page." | ||
| 98 | 139 | msgstr "" | |
| 99 | 140 | ||
| 100 | 141 | #: ../../bugs.rst:66 | |
| 101 | - msgid "If the problem you're reporting is not already in the list, log in to GitHub. If you don't already have a GitHub account, create a new account using the \"Sign up\" link. It is not possible to submit a bug report anonymously." | ||
| 142 | + msgid "" | ||
| 143 | + "If the problem you're reporting is not already in the list, log in to " | ||
| 144 | + "GitHub. If you don't already have a GitHub account, create a new account " | ||
| 145 | + "using the \"Sign up\" link. It is not possible to submit a bug report " | ||
| 146 | + "anonymously." | ||
| 102 | 147 | msgstr "" | |
| 103 | 148 | ||
| 104 | 149 | #: ../../bugs.rst:71 | |
| 105 | - msgid "Being now logged in, you can submit an issue. Click on the \"New issue\" button in the top bar to report a new issue." | ||
| 150 | + msgid "" | ||
| 151 | + "Being now logged in, you can submit an issue. Click on the \"New issue\" " | ||
| 152 | + "button in the top bar to report a new issue." | ||
| 106 | 153 | msgstr "" | |
| 107 | 154 | ||
| 108 | 155 | #: ../../bugs.rst:74 | |
| 109 | 156 | msgid "The submission form has two fields, \"Title\" and \"Comment\"." | |
| 110 | 157 | msgstr "" | |
| 111 | 158 | ||
| 112 | 159 | #: ../../bugs.rst:76 | |
| 113 | - msgid "For the \"Title\" field, enter a *very* short description of the problem; fewer than ten words is good." | ||
| 160 | + msgid "" | ||
| 161 | + "For the \"Title\" field, enter a *very* short description of the problem; " | ||
| 162 | + "fewer than ten words is good." | ||
| 114 | 163 | msgstr "" | |
| 115 | 164 | ||
| 116 | 165 | #: ../../bugs.rst:79 | |
| 117 | - msgid "In the \"Comment\" field, describe the problem in detail, including what you expected to happen and what did happen. Be sure to include whether any extension modules were involved, and what hardware and software platform you were using (including version information as appropriate)." | ||
| 166 | + msgid "" | ||
| 167 | + "In the \"Comment\" field, describe the problem in detail, including what you " | ||
| 168 | + "expected to happen and what did happen. Be sure to include whether any " | ||
| 169 | + "extension modules were involved, and what hardware and software platform you " | ||
| 170 | + "were using (including version information as appropriate)." | ||
| 118 | 171 | msgstr "" | |
| 119 | 172 | ||
| 120 | 173 | #: ../../bugs.rst:84 | |
| 121 | - msgid "Each issue report will be reviewed by a developer who will determine what needs to be done to correct the problem. You will receive an update each time an action is taken on the issue." | ||
| 174 | + msgid "" | ||
| 175 | + "Each issue report will be reviewed by a developer who will determine what " | ||
| 176 | + "needs to be done to correct the problem. You will receive an update each " | ||
| 177 | + "time an action is taken on the issue." | ||
| 122 | 178 | msgstr "" | |
| 123 | 179 | ||
| 124 | 180 | #: ../../bugs.rst:91 | |
| 125 | - msgid "`How to Report Bugs Effectively <https://www.chiark.greenend.org.uk/~sgtatham/bugs.html>`_" | ||
| 181 | + msgid "" | ||
| 182 | + "`How to Report Bugs Effectively <https://www.chiark.greenend.org.uk/" | ||
| 183 | + "~sgtatham/bugs.html>`_" | ||
| 126 | 184 | msgstr "" | |
| 127 | 185 | ||
| 128 | 186 | #: ../../bugs.rst:92 | |
| 129 | - msgid "Article which goes into some detail about how to create a useful bug report. This describes what kind of information is useful and why it is useful." | ||
| 187 | + msgid "" | ||
| 188 | + "Article which goes into some detail about how to create a useful bug report. " | ||
| 189 | + "This describes what kind of information is useful and why it is useful." | ||
| 130 | 190 | msgstr "" | |
| 131 | 191 | ||
| 132 | 192 | #: ../../bugs.rst:95 | |
| 133 | - msgid "`Bug Writing Guidelines <https://bugzilla.mozilla.org/page.cgi?id=bug-writing.html>`_" | ||
| 193 | + msgid "" | ||
| 194 | + "`Bug Writing Guidelines <https://bugzilla.mozilla.org/page.cgi?id=bug-" | ||
| 195 | + "writing.html>`_" | ||
| 134 | 196 | msgstr "" | |
| 135 | 197 | ||
| 136 | 198 | #: ../../bugs.rst:96 | |
| 137 | - msgid "Information about writing a good bug report. Some of this is specific to the Mozilla project, but describes general good practices." | ||
| 199 | + msgid "" | ||
| 200 | + "Information about writing a good bug report. Some of this is specific to " | ||
| 201 | + "the Mozilla project, but describes general good practices." | ||
| 138 | 202 | msgstr "" | |
| 139 | 203 | ||
| 140 | 204 | #: ../../bugs.rst:102 | |
| 141 | 205 | msgid "Getting started contributing to Python yourself" | |
| 142 | 206 | msgstr "" | |
| 143 | 207 | ||
| 144 | 208 | #: ../../bugs.rst:104 | |
| 145 | - msgid "Beyond just reporting bugs that you find, you are also welcome to submit patches to fix them. You can find more information on how to get started patching Python in the `Python Developer's Guide`_. If you have questions, the `core-mentorship mailing list`_ is a friendly place to get answers to any and all questions pertaining to the process of fixing issues in Python." | ||
| 209 | + msgid "" | ||
| 210 | + "Beyond just reporting bugs that you find, you are also welcome to submit " | ||
| 211 | + "patches to fix them. You can find more information on how to get started " | ||
| 212 | + "patching Python in the `Python Developer's Guide`_. If you have questions, " | ||
| 213 | + "the `core-mentorship mailing list`_ is a friendly place to get answers to " | ||
| 214 | + "any and all questions pertaining to the process of fixing issues in Python." | ||
| 146 | 215 | msgstr "" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,8 @@ msgstr "" | |||
| 10 | 10 | "Report-Msgid-Bugs-To: \n" | |
| 11 | 11 | "POT-Creation-Date: 2025-02-14 14:17+0000\n" | |
| 12 | 12 | "PO-Revision-Date: 2021-06-28 00:47+0000\n" | |
| 13 | - "Language-Team: Persian (https://app.transifex.com/python-doc/teams/5390/fa/)\n" | ||
| 13 | + "Language-Team: Persian (https://app.transifex.com/python-doc/teams/5390/" | ||
| 14 | + "fa/)\n" | ||
| 14 | 15 | "MIME-Version: 1.0\n" | |
| 15 | 16 | "Content-Type: text/plain; charset=UTF-8\n" | |
| 16 | 17 | "Content-Transfer-Encoding: 8bit\n" | |
@@ -22,9 +23,17 @@ msgid "Abstract Objects Layer" | |||
| 22 | 23 | msgstr "" | |
| 23 | 24 | ||
| 24 | 25 | #: ../../c-api/abstract.rst:9 | |
| 25 | - msgid "The functions in this chapter interact with Python objects regardless of their type, or with wide classes of object types (e.g. all numerical types, or all sequence types). When used on object types for which they do not apply, they will raise a Python exception." | ||
| 26 | + msgid "" | ||
| 27 | + "The functions in this chapter interact with Python objects regardless of " | ||
| 28 | + "their type, or with wide classes of object types (e.g. all numerical types, " | ||
| 29 | + "or all sequence types). When used on object types for which they do not " | ||
| 30 | + "apply, they will raise a Python exception." | ||
| 26 | 31 | msgstr "" | |
| 27 | 32 | ||
| 28 | 33 | #: ../../c-api/abstract.rst:14 | |
| 29 | - msgid "It is not possible to use these functions on objects that are not properly initialized, such as a list object that has been created by :c:func:`PyList_New`, but whose items have not been set to some non-\\ ``NULL`` value yet." | ||
| 34 | + msgid "" | ||
| 35 | + "It is not possible to use these functions on objects that are not properly " | ||
| 36 | + "initialized, such as a list object that has been created by :c:func:" | ||
| 37 | + "`PyList_New`, but whose items have not been set to some non-\\ ``NULL`` " | ||
| 38 | + "value yet." | ||
| 30 | 39 | msgstr "" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,8 @@ msgstr "" | |||
| 10 | 10 | "Report-Msgid-Bugs-To: \n" | |
| 11 | 11 | "POT-Creation-Date: 2025-02-14 14:17+0000\n" | |
| 12 | 12 | "PO-Revision-Date: 2021-06-28 00:47+0000\n" | |
| 13 | - "Language-Team: Persian (https://app.transifex.com/python-doc/teams/5390/fa/)\n" | ||
| 13 | + "Language-Team: Persian (https://app.transifex.com/python-doc/teams/5390/" | ||
| 14 | + "fa/)\n" | ||
| 14 | 15 | "MIME-Version: 1.0\n" | |
| 15 | 16 | "Content-Type: text/plain; charset=UTF-8\n" | |
| 16 | 17 | "Content-Transfer-Encoding: 8bit\n" | |
@@ -22,27 +23,55 @@ msgid "Allocating Objects on the Heap" | |||
| 22 | 23 | msgstr "" | |
| 23 | 24 | ||
| 24 | 25 | #: ../../c-api/allocation.rst:17 | |
| 25 | - msgid "Initialize a newly allocated object *op* with its type and initial reference. Returns the initialized object. Other fields of the object are not affected." | ||
| 26 | + msgid "" | ||
| 27 | + "Initialize a newly allocated object *op* with its type and initial " | ||
| 28 | + "reference. Returns the initialized object. Other fields of the object are " | ||
| 29 | + "not affected." | ||
| 26 | 30 | msgstr "" | |
| 27 | 31 | ||
| 28 | 32 | #: ../../c-api/allocation.rst:24 | |
| 29 | - msgid "This does everything :c:func:`PyObject_Init` does, and also initializes the length information for a variable-size object." | ||
| 33 | + msgid "" | ||
| 34 | + "This does everything :c:func:`PyObject_Init` does, and also initializes the " | ||
| 35 | + "length information for a variable-size object." | ||
| 30 | 36 | msgstr "" | |
| 31 | 37 | ||
| 32 | 38 | #: ../../c-api/allocation.rst:30 | |
| 33 | - msgid "Allocate a new Python object using the C structure type *TYPE* and the Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the Python object header are not initialized. The caller will own the only reference to the object (i.e. its reference count will be one). The size of the memory allocation is determined from the :c:member:`~PyTypeObject.tp_basicsize` field of the type object." | ||
| 39 | + msgid "" | ||
| 40 | + "Allocate a new Python object using the C structure type *TYPE* and the " | ||
| 41 | + "Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the " | ||
| 42 | + "Python object header are not initialized. The caller will own the only " | ||
| 43 | + "reference to the object (i.e. its reference count will be one). The size of " | ||
| 44 | + "the memory allocation is determined from the :c:member:`~PyTypeObject." | ||
| 45 | + "tp_basicsize` field of the type object." | ||
| 34 | 46 | msgstr "" | |
| 35 | 47 | ||
| 36 | 48 | #: ../../c-api/allocation.rst:41 | |
| 37 | - msgid "Allocate a new Python object using the C structure type *TYPE* and the Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the Python object header are not initialized. The allocated memory allows for the *TYPE* structure plus *size* (``Py_ssize_t``) fields of the size given by the :c:member:`~PyTypeObject.tp_itemsize` field of *typeobj*. This is useful for implementing objects like tuples, which are able to determine their size at construction time. Embedding the array of fields into the same allocation decreases the number of allocations, improving the memory management efficiency." | ||
| 49 | + msgid "" | ||
| 50 | + "Allocate a new Python object using the C structure type *TYPE* and the " | ||
| 51 | + "Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the " | ||
| 52 | + "Python object header are not initialized. The allocated memory allows for " | ||
| 53 | + "the *TYPE* structure plus *size* (``Py_ssize_t``) fields of the size given " | ||
| 54 | + "by the :c:member:`~PyTypeObject.tp_itemsize` field of *typeobj*. This is " | ||
| 55 | + "useful for implementing objects like tuples, which are able to determine " | ||
| 56 | + "their size at construction time. Embedding the array of fields into the " | ||
| 57 | + "same allocation decreases the number of allocations, improving the memory " | ||
| 58 | + "management efficiency." | ||
| 38 | 59 | msgstr "" | |
| 39 | 60 | ||
| 40 | 61 | #: ../../c-api/allocation.rst:55 | |
| 41 | - msgid "Releases memory allocated to an object using :c:macro:`PyObject_New` or :c:macro:`PyObject_NewVar`. This is normally called from the :c:member:`~PyTypeObject.tp_dealloc` handler specified in the object's type. The fields of the object should not be accessed after this call as the memory is no longer a valid Python object." | ||
| 62 | + msgid "" | ||
| 63 | + "Releases memory allocated to an object using :c:macro:`PyObject_New` or :c:" | ||
| 64 | + "macro:`PyObject_NewVar`. This is normally called from the :c:member:" | ||
| 65 | + "`~PyTypeObject.tp_dealloc` handler specified in the object's type. The " | ||
| 66 | + "fields of the object should not be accessed after this call as the memory is " | ||
| 67 | + "no longer a valid Python object." | ||
| 42 | 68 | msgstr "" | |
| 43 | 69 | ||
| 44 | 70 | #: ../../c-api/allocation.rst:64 | |
| 45 | - msgid "Object which is visible in Python as ``None``. This should only be accessed using the :c:macro:`Py_None` macro, which evaluates to a pointer to this object." | ||
| 71 | + msgid "" | ||
| 72 | + "Object which is visible in Python as ``None``. This should only be accessed " | ||
| 73 | + "using the :c:macro:`Py_None` macro, which evaluates to a pointer to this " | ||
| 74 | + "object." | ||
| 46 | 75 | msgstr "" | |
| 47 | 76 | ||
| 48 | 77 | #: ../../c-api/allocation.rst:71 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments