@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.12\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2025-01-24 14:52 +0000\n "
14
+ "POT-Creation-Date : 2025-02-14 14:53 +0000\n "
15
15
"PO-Revision-Date : 2024-05-11 00:32+0000\n "
16
16
"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024\n "
17
17
"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
@@ -1609,44 +1609,50 @@ msgid ""
1609
1609
"will be stored in *consumed*."
1610
1610
msgstr ""
1611
1611
1612
- #: ../../c-api/unicode.rst:1335
1612
+ #: ../../c-api/unicode.rst:1336
1613
+ msgid ""
1614
+ "Similar to :c:func:`PyUnicode_DecodeMBCSStateful`, except uses the code page "
1615
+ "specified by *code_page*."
1616
+ msgstr ""
1617
+
1618
+ #: ../../c-api/unicode.rst:1342
1613
1619
msgid ""
1614
1620
"Encode a Unicode object using MBCS and return the result as Python bytes "
1615
1621
"object. Error handling is \" strict\" . Return ``NULL`` if an exception was "
1616
1622
"raised by the codec."
1617
1623
msgstr ""
1618
1624
1619
- #: ../../c-api/unicode.rst:1342
1625
+ #: ../../c-api/unicode.rst:1349
1620
1626
msgid ""
1621
1627
"Encode the Unicode object using the specified code page and return a Python "
1622
1628
"bytes object. Return ``NULL`` if an exception was raised by the codec. Use :"
1623
1629
"c:macro:`!CP_ACP` code page to get the MBCS encoder."
1624
1630
msgstr ""
1625
1631
1626
- #: ../../c-api/unicode.rst:1350
1632
+ #: ../../c-api/unicode.rst:1357
1627
1633
msgid "Methods & Slots"
1628
1634
msgstr ""
1629
1635
1630
- #: ../../c-api/unicode.rst:1356
1636
+ #: ../../c-api/unicode.rst:1363
1631
1637
msgid "Methods and Slot Functions"
1632
1638
msgstr ""
1633
1639
1634
- #: ../../c-api/unicode.rst:1358
1640
+ #: ../../c-api/unicode.rst:1365
1635
1641
msgid ""
1636
1642
"The following APIs are capable of handling Unicode objects and strings on "
1637
1643
"input (we refer to them as strings in the descriptions) and return Unicode "
1638
1644
"objects or integers as appropriate."
1639
1645
msgstr ""
1640
1646
1641
- #: ../../c-api/unicode.rst:1362
1647
+ #: ../../c-api/unicode.rst:1369
1642
1648
msgid "They all return ``NULL`` or ``-1`` if an exception occurs."
1643
1649
msgstr ""
1644
1650
1645
- #: ../../c-api/unicode.rst:1367
1651
+ #: ../../c-api/unicode.rst:1374
1646
1652
msgid "Concat two strings giving a new Unicode string."
1647
1653
msgstr ""
1648
1654
1649
- #: ../../c-api/unicode.rst:1372
1655
+ #: ../../c-api/unicode.rst:1379
1650
1656
msgid ""
1651
1657
"Split a string giving a list of Unicode strings. If *sep* is ``NULL``, "
1652
1658
"splitting will be done at all whitespace substrings. Otherwise, splits "
@@ -1655,27 +1661,27 @@ msgid ""
1655
1661
"list."
1656
1662
msgstr ""
1657
1663
1658
- #: ../../c-api/unicode.rst:1380
1664
+ #: ../../c-api/unicode.rst:1387
1659
1665
msgid ""
1660
1666
"Split a Unicode string at line breaks, returning a list of Unicode strings. "
1661
1667
"CRLF is considered to be one line break. If *keepends* is ``0``, the Line "
1662
1668
"break characters are not included in the resulting strings."
1663
1669
msgstr ""
1664
1670
1665
- #: ../../c-api/unicode.rst:1387
1671
+ #: ../../c-api/unicode.rst:1394
1666
1672
msgid ""
1667
1673
"Join a sequence of strings using the given *separator* and return the "
1668
1674
"resulting Unicode string."
1669
1675
msgstr ""
1670
1676
1671
- #: ../../c-api/unicode.rst:1394
1677
+ #: ../../c-api/unicode.rst:1401
1672
1678
msgid ""
1673
1679
"Return ``1`` if *substr* matches ``unicode[start:end]`` at the given tail "
1674
1680
"end (*direction* == ``-1`` means to do a prefix match, *direction* == ``1`` "
1675
1681
"a suffix match), ``0`` otherwise. Return ``-1`` if an error occurred."
1676
1682
msgstr ""
1677
1683
1678
- #: ../../c-api/unicode.rst:1402
1684
+ #: ../../c-api/unicode.rst:1409
1679
1685
msgid ""
1680
1686
"Return the first position of *substr* in ``unicode[start:end]`` using the "
1681
1687
"given *direction* (*direction* == ``1`` means to do a forward search, "
@@ -1684,7 +1690,7 @@ msgid ""
1684
1690
"``-2`` indicates that an error occurred and an exception has been set."
1685
1691
msgstr ""
1686
1692
1687
- #: ../../c-api/unicode.rst:1412
1693
+ #: ../../c-api/unicode.rst:1419
1688
1694
msgid ""
1689
1695
"Return the first position of the character *ch* in ``unicode[start:end]`` "
1690
1696
"using the given *direction* (*direction* == ``1`` means to do a forward "
@@ -1694,89 +1700,89 @@ msgid ""
1694
1700
"set."
1695
1701
msgstr ""
1696
1702
1697
- #: ../../c-api/unicode.rst:1420
1703
+ #: ../../c-api/unicode.rst:1427
1698
1704
msgid ""
1699
1705
"*start* and *end* are now adjusted to behave like ``unicode[start:end]``."
1700
1706
msgstr ""
1701
1707
1702
- #: ../../c-api/unicode.rst:1427
1708
+ #: ../../c-api/unicode.rst:1434
1703
1709
msgid ""
1704
1710
"Return the number of non-overlapping occurrences of *substr* in "
1705
1711
"``unicode[start:end]``. Return ``-1`` if an error occurred."
1706
1712
msgstr ""
1707
1713
1708
- #: ../../c-api/unicode.rst:1434
1714
+ #: ../../c-api/unicode.rst:1441
1709
1715
msgid ""
1710
1716
"Replace at most *maxcount* occurrences of *substr* in *unicode* with "
1711
1717
"*replstr* and return the resulting Unicode object. *maxcount* == ``-1`` "
1712
1718
"means replace all occurrences."
1713
1719
msgstr ""
1714
1720
1715
- #: ../../c-api/unicode.rst:1441
1721
+ #: ../../c-api/unicode.rst:1448
1716
1722
msgid ""
1717
1723
"Compare two strings and return ``-1``, ``0``, ``1`` for less than, equal, "
1718
1724
"and greater than, respectively."
1719
1725
msgstr ""
1720
1726
1721
- #: ../../c-api/unicode.rst:1444
1727
+ #: ../../c-api/unicode.rst:1451
1722
1728
msgid ""
1723
1729
"This function returns ``-1`` upon failure, so one should call :c:func:"
1724
1730
"`PyErr_Occurred` to check for errors."
1725
1731
msgstr ""
1726
1732
1727
- #: ../../c-api/unicode.rst:1450
1733
+ #: ../../c-api/unicode.rst:1457
1728
1734
msgid ""
1729
1735
"Compare a Unicode object, *unicode*, with *string* and return ``-1``, ``0``, "
1730
1736
"``1`` for less than, equal, and greater than, respectively. It is best to "
1731
1737
"pass only ASCII-encoded strings, but the function interprets the input "
1732
1738
"string as ISO-8859-1 if it contains non-ASCII characters."
1733
1739
msgstr ""
1734
1740
1735
- #: ../../c-api/unicode.rst:1455
1741
+ #: ../../c-api/unicode.rst:1462
1736
1742
msgid "This function does not raise exceptions."
1737
1743
msgstr ""
1738
1744
1739
- #: ../../c-api/unicode.rst:1460
1745
+ #: ../../c-api/unicode.rst:1467
1740
1746
msgid "Rich compare two Unicode strings and return one of the following:"
1741
1747
msgstr ""
1742
1748
1743
- #: ../../c-api/unicode.rst:1462
1749
+ #: ../../c-api/unicode.rst:1469
1744
1750
msgid "``NULL`` in case an exception was raised"
1745
1751
msgstr ""
1746
1752
1747
- #: ../../c-api/unicode.rst:1463
1753
+ #: ../../c-api/unicode.rst:1470
1748
1754
msgid ":c:data:`Py_True` or :c:data:`Py_False` for successful comparisons"
1749
1755
msgstr ""
1750
1756
1751
- #: ../../c-api/unicode.rst:1464
1757
+ #: ../../c-api/unicode.rst:1471
1752
1758
msgid ":c:data:`Py_NotImplemented` in case the type combination is unknown"
1753
1759
msgstr ""
1754
1760
1755
- #: ../../c-api/unicode.rst:1466
1761
+ #: ../../c-api/unicode.rst:1473
1756
1762
msgid ""
1757
1763
"Possible values for *op* are :c:macro:`Py_GT`, :c:macro:`Py_GE`, :c:macro:"
1758
1764
"`Py_EQ`, :c:macro:`Py_NE`, :c:macro:`Py_LT`, and :c:macro:`Py_LE`."
1759
1765
msgstr ""
1760
1766
1761
- #: ../../c-api/unicode.rst:1472
1767
+ #: ../../c-api/unicode.rst:1479
1762
1768
msgid ""
1763
1769
"Return a new string object from *format* and *args*; this is analogous to "
1764
1770
"``format % args``."
1765
1771
msgstr ""
1766
1772
1767
- #: ../../c-api/unicode.rst:1478
1773
+ #: ../../c-api/unicode.rst:1485
1768
1774
msgid ""
1769
1775
"Check whether *substr* is contained in *unicode* and return true or false "
1770
1776
"accordingly."
1771
1777
msgstr ""
1772
1778
1773
- #: ../../c-api/unicode.rst:1481
1779
+ #: ../../c-api/unicode.rst:1488
1774
1780
msgid ""
1775
1781
"*substr* has to coerce to a one element Unicode string. ``-1`` is returned "
1776
1782
"if there was an error."
1777
1783
msgstr ""
1778
1784
1779
- #: ../../c-api/unicode.rst:1487
1785
+ #: ../../c-api/unicode.rst:1494
1780
1786
msgid ""
1781
1787
"Intern the argument :c:expr:`*p_unicode` in place. The argument must be the "
1782
1788
"address of a pointer variable pointing to a Python Unicode string object. "
@@ -1787,47 +1793,47 @@ msgid ""
1787
1793
"interns it."
1788
1794
msgstr ""
1789
1795
1790
- #: ../../c-api/unicode.rst:1494
1796
+ #: ../../c-api/unicode.rst:1501
1791
1797
msgid ""
1792
1798
"(Clarification: even though there is a lot of talk about references, think "
1793
1799
"of this function as reference-neutral. You must own the object you pass in; "
1794
1800
"after the call you no longer own the passed-in reference, but you newly own "
1795
1801
"the result.)"
1796
1802
msgstr ""
1797
1803
1798
- #: ../../c-api/unicode.rst:1499
1804
+ #: ../../c-api/unicode.rst:1506
1799
1805
msgid ""
1800
1806
"This function never raises an exception. On error, it leaves its argument "
1801
1807
"unchanged without interning it."
1802
1808
msgstr ""
1803
1809
1804
- #: ../../c-api/unicode.rst:1502
1810
+ #: ../../c-api/unicode.rst:1509
1805
1811
msgid ""
1806
1812
"Instances of subclasses of :py:class:`str` may not be interned, that is, :c:"
1807
1813
"expr:`PyUnicode_CheckExact(*p_unicode)` must be true. If it is not, then -- "
1808
1814
"as with any other error -- the argument is left unchanged."
1809
1815
msgstr ""
1810
1816
1811
- #: ../../c-api/unicode.rst:1506
1817
+ #: ../../c-api/unicode.rst:1513
1812
1818
msgid ""
1813
1819
"Note that interned strings are not “immortal”. You must keep a reference to "
1814
1820
"the result to benefit from interning."
1815
1821
msgstr ""
1816
1822
1817
- #: ../../c-api/unicode.rst:1512
1823
+ #: ../../c-api/unicode.rst:1519
1818
1824
msgid ""
1819
1825
"A combination of :c:func:`PyUnicode_FromString` and :c:func:"
1820
1826
"`PyUnicode_InternInPlace`, meant for statically allocated strings."
1821
1827
msgstr ""
1822
1828
1823
- #: ../../c-api/unicode.rst:1515
1829
+ #: ../../c-api/unicode.rst:1522
1824
1830
msgid ""
1825
1831
"Return a new (\" owned\" ) reference to either a new Unicode string object "
1826
1832
"that has been interned, or an earlier interned string object with the same "
1827
1833
"value."
1828
1834
msgstr ""
1829
1835
1830
- #: ../../c-api/unicode.rst:1519
1836
+ #: ../../c-api/unicode.rst:1526
1831
1837
msgid ""
1832
1838
"Python may keep a reference to the result, or prevent it from being garbage-"
1833
1839
"collected promptly. For interning an unbounded number of different strings, "
0 commit comments