@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.12\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2026-01-27 16:07 +0000\n "
16+ "POT-Creation-Date : 2026-01-29 16:10 +0000\n "
1717"PO-Revision-Date : 2025-07-18 19:57+0000\n "
1818"Last-Translator : Adorilson Bezerra <adorilson@gmail.com>, 2026\n "
1919"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -1483,14 +1483,14 @@ msgstr ""
14831483
14841484#: ../../library/ctypes.rst:703
14851485msgid "Arrays"
1486- msgstr "Arrays "
1486+ msgstr "Vetores "
14871487
14881488#: ../../library/ctypes.rst:705
14891489msgid ""
14901490"Arrays are sequences, containing a fixed number of instances of the same "
14911491"type."
14921492msgstr ""
1493- "Vetores são sequências, contendo um número fixo de instâncias do mesmo tipo."
1493+ "Vetores são sequências que contêm um número fixo de instâncias do mesmo tipo."
14941494
14951495#: ../../library/ctypes.rst:707
14961496msgid ""
@@ -1502,7 +1502,7 @@ msgstr ""
15021502
15031503#: ../../library/ctypes.rst:710
15041504msgid "TenPointsArrayType = POINT * 10"
1505- msgstr ""
1505+ msgstr "TenPointsArrayType = POINT * 10 "
15061506
15071507#: ../../library/ctypes.rst:712
15081508msgid ""
@@ -1527,6 +1527,18 @@ msgid ""
15271527"4\n"
15281528">>>"
15291529msgstr ""
1530+ ">>> from ctypes import *\n"
1531+ ">>> class POINT(Structure):\n"
1532+ "... _fields_ = (\" x\" , c_int), (\" y\" , c_int)\n"
1533+ "...\n"
1534+ ">>> class MyStruct(Structure):\n"
1535+ "... _fields_ = [(\" a\" , c_int),\n"
1536+ "... (\" b\" , c_float),\n"
1537+ "... (\" point_array\" , POINT * 4)]\n"
1538+ ">>>\n"
1539+ ">>> print(len(MyStruct().point_array))\n"
1540+ "4\n"
1541+ ">>>"
15301542
15311543#: ../../library/ctypes.rst:728
15321544msgid "Instances are created in the usual way, by calling the class::"
@@ -1538,6 +1550,9 @@ msgid ""
15381550"for pt in arr:\n"
15391551" print(pt.x, pt.y)"
15401552msgstr ""
1553+ "arr = TenPointsArrayType()\n"
1554+ "for pt in arr:\n"
1555+ " print(pt.x, pt.y)"
15411556
15421557#: ../../library/ctypes.rst:734
15431558msgid ""
@@ -1563,6 +1578,15 @@ msgid ""
15631578"1 2 3 4 5 6 7 8 9 10\n"
15641579">>>"
15651580msgstr ""
1581+ ">>> from ctypes import *\n"
1582+ ">>> TenIntegers = c_int * 10\n"
1583+ ">>> ii = TenIntegers(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)\n"
1584+ ">>> print(ii)\n"
1585+ "<c_long_Array_10 object at 0x...>\n"
1586+ ">>> for i in ii: print(i, end=\" \" )\n"
1587+ "...\n"
1588+ "1 2 3 4 5 6 7 8 9 10\n"
1589+ ">>>"
15661590
15671591#: ../../library/ctypes.rst:753
15681592msgid "Pointers"
0 commit comments