11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2025 , Python Software Foundation
2+ # Copyright (C) 2001-2026 , Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66# Translators:
77# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
88# Marcos Moraes, 2025
9+ # Adorilson Bezerra <adorilson@gmail.com>, 2026
910#
1011#, fuzzy
1112msgid ""
1213msgstr ""
1314"Project-Id-Version : Python 3.12\n "
1415"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2025-11-13 15:53 +0000\n "
16+ "POT-Creation-Date : 2026-01-27 16:07 +0000\n "
1617"PO-Revision-Date : 2025-07-18 19:57+0000\n "
17- "Last-Translator : Marcos Moraes, 2025 \n "
18+ "Last-Translator : Adorilson Bezerra <adorilson@gmail.com>, 2026 \n "
1819"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
1920"teams/5390/pt_BR/)\n "
2021"Language : pt_BR\n "
@@ -1284,7 +1285,8 @@ msgstr ""
12841285"Estruturas e uniões devem derivar das classes base :class:`Structure` e :"
12851286"class:`Union` que são definidas no módulo :mod:`ctypes`. Cada subclasse deve "
12861287"definir um atributo :attr:`~Structure._fields_`. :attr:`!_fields_` deve ser "
1287- "uma lista de *2-tuplas*, contendo um *nome de campo* e um *tipo de campo*."
1288+ "uma lista de *tuplas de 2 itens*, contendo um *nome de campo* e um *tipo de "
1289+ "campo*."
12881290
12891291#: ../../library/ctypes.rst:600
12901292msgid ""
@@ -1324,6 +1326,22 @@ msgid ""
13241326"TypeError: too many initializers\n"
13251327">>>"
13261328msgstr ""
1329+ ">>> from ctypes import *\n"
1330+ ">>> class POINT(Structure):\n"
1331+ "... _fields_ = [(\" x\" , c_int),\n"
1332+ "... (\" y\" , c_int)]\n"
1333+ "...\n"
1334+ ">>> point = POINT(10, 20)\n"
1335+ ">>> print(point.x, point.y)\n"
1336+ "10 20\n"
1337+ ">>> point = POINT(y=5)\n"
1338+ ">>> print(point.x, point.y)\n"
1339+ "0 5\n"
1340+ ">>> POINT(1, 2, 3)\n"
1341+ "Traceback (most recent call last):\n"
1342+ " File \" <stdin>\" , line 1, in <module>\n"
1343+ "TypeError: too many initializers\n"
1344+ ">>>"
13271345
13281346#: ../../library/ctypes.rst:623
13291347msgid ""
@@ -1355,6 +1373,16 @@ msgid ""
13551373"0 0\n"
13561374">>>"
13571375msgstr ""
1376+ ">>> class RECT(Structure):\n"
1377+ "... _fields_ = [(\" upperleft\" , POINT),\n"
1378+ "... (\" lowerright\" , POINT)]\n"
1379+ "...\n"
1380+ ">>> rc = RECT(point)\n"
1381+ ">>> print(rc.upperleft.x, rc.upperleft.y)\n"
1382+ "0 5\n"
1383+ ">>> print(rc.lowerright.x, rc.lowerright.y)\n"
1384+ "0 0\n"
1385+ ">>>"
13581386
13591387#: ../../library/ctypes.rst:640
13601388msgid ""
@@ -1369,6 +1397,8 @@ msgid ""
13691397">>> r = RECT(POINT(1, 2), POINT(3, 4))\n"
13701398">>> r = RECT((1, 2), (3, 4))"
13711399msgstr ""
1400+ ">>> r = RECT(POINT(1, 2), POINT(3, 4))\n"
1401+ ">>> r = RECT((1, 2), (3, 4))"
13721402
13731403#: ../../library/ctypes.rst:645
13741404msgid ""
@@ -1392,11 +1422,10 @@ msgid ""
13921422"guaranteed by the library to work in the general case. Unions and "
13931423"structures with bit-fields should always be passed to functions by pointer."
13941424msgstr ""
1395- "O :mod:`ctypes` não suporta passar uniões ou estruturas com campos de bits "
1396- "(bit-fields) para funções por valor. Embora isso possa funcionar em x86 de "
1397- "32 bits, não é garantido pela biblioteca que funcione no caso geral. Uniões "
1398- "e estruturas com campos de bits devem sempre ser passadas para funções por "
1399- "ponteiro."
1425+ "O :mod:`ctypes` não permite passar uniões ou estruturas com campos de bits "
1426+ "para funções por valor. Embora isso possa funcionar em x86 de 32 bits, a "
1427+ "biblioteca não garante que funcione em geral. Uniões e estruturas com campos "
1428+ "de bits devem sempre ser passadas para funções por ponteiro."
14001429
14011430#: ../../library/ctypes.rst:665
14021431msgid "Structure/union alignment and byte order"
@@ -1419,7 +1448,7 @@ msgid ""
14191448"`BigEndianUnion`, and :class:`LittleEndianUnion` base classes. These "
14201449"classes cannot contain pointer fields."
14211450msgstr ""
1422- ":mod:`ctypes` usa a ordem de bytes nativa para Estruturas e Uniões . Para "
1451+ ":mod:`ctypes` usa a ordem de bytes nativa para estruturas e uniões . Para "
14231452"construir estruturas com ordem de bytes não nativa, você pode usar classes "
14241453"base :class:`BigEndianStructure`, :class:`LittleEndianStructure`, :class:"
14251454"`BigEndianUnion` e :class:`LittleEndianUnion`. Essas classes não podem "
@@ -3966,11 +3995,11 @@ msgstr ""
39663995
39673996#: ../../library/ctypes.rst:2489
39683997msgid "Structured data types"
3969- msgstr ""
3998+ msgstr "Tipos de dados estruturados "
39703999
39714000#: ../../library/ctypes.rst:2494
39724001msgid "Abstract base class for unions in native byte order."
3973- msgstr ""
4002+ msgstr "Classe base abstrata para uniões em ordem de bytes nativa. "
39744003
39754004#: ../../library/ctypes.rst:2499
39764005msgid "Abstract base class for unions in *big endian* byte order."
0 commit comments