@@ -14,7 +14,7 @@ msgid ""
1414msgstr ""
1515"Project-Id-Version : Python 3.14\n "
1616"Report-Msgid-Bugs-To : \n "
17- "POT-Creation-Date : 2026-01-27 14:24 +0000\n "
17+ "POT-Creation-Date : 2026-01-29 14:35 +0000\n "
1818"PO-Revision-Date : 2025-09-16 00:01+0000\n "
1919"Last-Translator : Adorilson Bezerra <adorilson@gmail.com>, 2026\n "
2020"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -1539,8 +1539,8 @@ msgid ""
15391539"useful for debugging because they can provide useful information. See :class:"
15401540"`CField`::"
15411541msgstr ""
1542- "Os :term:`descritores` de campo podem ser obtidos a partir da *classe*; são "
1543- "úteis para depuração, pois podem fornecer informações úteis. Veja :class:"
1542+ "Os :term:`descritor` \\ es de campo podem ser obtidos a partir da *classe*; "
1543+ "são úteis para depuração, pois podem fornecer informações úteis. Veja :class:"
15441544"`CField`:"
15451545
15461546#: ../../library/ctypes.rst:681
@@ -1662,14 +1662,14 @@ msgstr ""
16621662
16631663#: ../../library/ctypes.rst:746
16641664msgid "Arrays"
1665- msgstr "Arrays "
1665+ msgstr "Vetores "
16661666
16671667#: ../../library/ctypes.rst:748
16681668msgid ""
16691669"Arrays are sequences, containing a fixed number of instances of the same "
16701670"type."
16711671msgstr ""
1672- "Vetores são sequências, contendo um número fixo de instâncias do mesmo tipo."
1672+ "Vetores são sequências que contêm um número fixo de instâncias do mesmo tipo."
16731673
16741674#: ../../library/ctypes.rst:750
16751675msgid ""
@@ -1681,7 +1681,7 @@ msgstr ""
16811681
16821682#: ../../library/ctypes.rst:753
16831683msgid "TenPointsArrayType = POINT * 10"
1684- msgstr ""
1684+ msgstr "TenPointsArrayType = POINT * 10 "
16851685
16861686#: ../../library/ctypes.rst:755
16871687msgid ""
@@ -1706,6 +1706,18 @@ msgid ""
17061706"4\n"
17071707">>>"
17081708msgstr ""
1709+ ">>> from ctypes import *\n"
1710+ ">>> class POINT(Structure):\n"
1711+ "... _fields_ = (\" x\" , c_int), (\" y\" , c_int)\n"
1712+ "...\n"
1713+ ">>> class MyStruct(Structure):\n"
1714+ "... _fields_ = [(\" a\" , c_int),\n"
1715+ "... (\" b\" , c_float),\n"
1716+ "... (\" point_array\" , POINT * 4)]\n"
1717+ ">>>\n"
1718+ ">>> print(len(MyStruct().point_array))\n"
1719+ "4\n"
1720+ ">>>"
17091721
17101722#: ../../library/ctypes.rst:771
17111723msgid "Instances are created in the usual way, by calling the class::"
@@ -1717,6 +1729,9 @@ msgid ""
17171729"for pt in arr:\n"
17181730" print(pt.x, pt.y)"
17191731msgstr ""
1732+ "arr = TenPointsArrayType()\n"
1733+ "for pt in arr:\n"
1734+ " print(pt.x, pt.y)"
17201735
17211736#: ../../library/ctypes.rst:777
17221737msgid ""
@@ -1742,6 +1757,15 @@ msgid ""
17421757"1 2 3 4 5 6 7 8 9 10\n"
17431758">>>"
17441759msgstr ""
1760+ ">>> from ctypes import *\n"
1761+ ">>> TenIntegers = c_int * 10\n"
1762+ ">>> ii = TenIntegers(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)\n"
1763+ ">>> print(ii)\n"
1764+ "<c_long_Array_10 object at 0x...>\n"
1765+ ">>> for i in ii: print(i, end=\" \" )\n"
1766+ "...\n"
1767+ "1 2 3 4 5 6 7 8 9 10\n"
1768+ ">>>"
17451769
17461770#: ../../library/ctypes.rst:796
17471771msgid "Pointers"
0 commit comments