@@ -572,6 +572,16 @@ msgid ""
572572"renaming '/home/me/random.py' since it has the same name as the standard "
573573"library module named 'random' and the import system gives it precedence)"
574574msgstr ""
575+ "$ python random.py\n"
576+ "Traceback (most recent call last):\n"
577+ " File \" /home/me/random.py\" , line 1, in <module>\n"
578+ " import random\n"
579+ " File \" /home/me/random.py\" , line 3, in <module>\n"
580+ " print(random.randint(5))\n"
581+ " ^^^^^^^^^^^^^^\n"
582+ "AttributeError: module 'random' has no attribute 'randint' (consider "
583+ "renaming '/home/me/random.py' since it has the same name as the standard "
584+ "library module named 'random' and the import system gives it precedence)"
575585
576586#: ../../whatsnew/3.13.rst:281
577587msgid ""
@@ -596,6 +606,16 @@ msgid ""
596606"home/me/numpy.py' if it has the same name as a third-party module you "
597607"intended to import)"
598608msgstr ""
609+ "$ python numpy.py\n"
610+ "Traceback (most recent call last):\n"
611+ " File \" /home/me/numpy.py\" , line 1, in <module>\n"
612+ " import numpy as np\n"
613+ " File \" /home/me/numpy.py\" , line 3, in <module>\n"
614+ " np.array([1, 2, 3])\n"
615+ " ^^^^^^^^\n"
616+ "AttributeError: module 'numpy' has no attribute 'array' (consider renaming '/"
617+ "home/me/numpy.py' if it has the same name as a third-party module you "
618+ "intended to import)"
599619
600620#: ../../whatsnew/3.13.rst:296
601621msgid "(Contributed by Shantanu Jain in :gh:`95754`.)"
@@ -619,6 +639,13 @@ msgid ""
619639"TypeError: split() got an unexpected keyword argument 'max_split'. Did you "
620640"mean 'maxsplit'?"
621641msgstr ""
642+ ">>> \" Better error messages!\" .split(max_split=1)\n"
643+ "Traceback (most recent call last):\n"
644+ " File \" <python-input-0>\" , line 1, in <module>\n"
645+ " \" Better error messages!\" .split(max_split=1)\n"
646+ " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^\n"
647+ "TypeError: split() got an unexpected keyword argument 'max_split'. Did you "
648+ "mean 'maxsplit'?"
622649
623650#: ../../whatsnew/3.13.rst:310
624651msgid ""
@@ -1064,6 +1091,8 @@ msgid ""
10641091"class C[T]:\n"
10651092" type Alias = lambda: T"
10661093msgstr ""
1094+ "class C[T]:\n"
1095+ " type Alias = lambda: T"
10671096
10681097#: ../../whatsnew/3.13.rst:536
10691098msgid "(Contributed by Jelle Zijlstra in :gh:`109118` and :gh:`118160`.)"
@@ -1453,6 +1482,12 @@ msgid ""
14531482"simultaneously, it was possible that the outer task group would hang, "
14541483"because its internal cancellation was swallowed by the inner task group."
14551484msgstr ""
1485+ "Melhora o comportamento de :class:`~asyncio.TaskGroup` quando um "
1486+ "cancelamento externo colide com um cancelamento interno. Por exemplo, quando "
1487+ "dois grupos de tarefas estão aninhados e ambos experimentam uma exceção em "
1488+ "uma tarefa filho simultaneamente, é possível que o grupo de tarefas externo "
1489+ "seja interrompido, porque seu cancelamento interno foi engolido pelo grupo "
1490+ "de tarefas interno."
14561491
14571492#: ../../whatsnew/3.13.rst:721
14581493msgid ""
@@ -1461,19 +1496,29 @@ msgid ""
14611496"Task.cancel` method. This ensures that a :exc:`~asyncio.CancelledError` will "
14621497"be raised at the next :keyword:`await`, so the cancellation is not lost."
14631498msgstr ""
1499+ "No caso em que um grupo de tarefas é cancelado externamente e também deve "
1500+ "levantar :exc:`ExceptionGroup`, ele agora chamará o método :meth:`~asyncio."
1501+ "Task.cancel` da tarefa pai. Isso garante que uma :exc:`~asyncio."
1502+ "CancelledError` será levantada no próximo :keyword:`await`, para que o "
1503+ "cancelamento não seja perdido."
14641504
14651505#: ../../whatsnew/3.13.rst:727
14661506msgid ""
14671507"An added benefit of these changes is that task groups now preserve the "
14681508"cancellation count (:meth:`~asyncio.Task.cancelling`)."
14691509msgstr ""
1510+ "Um benefício adicional dessas mudanças é que os grupos de tarefas agora "
1511+ "preservam a contagem de cancelamentos (:meth:`~asyncio.Task.cancelling`)."
14701512
14711513#: ../../whatsnew/3.13.rst:730
14721514msgid ""
14731515"In order to handle some corner cases, :meth:`~asyncio.Task.uncancel` may now "
14741516"reset the undocumented ``_must_cancel`` flag when the cancellation count "
14751517"reaches zero."
14761518msgstr ""
1519+ "Para lidar com alguns casos extremos, :meth:`~asyncio.Task.uncancel` agora "
1520+ "pode redefinir o sinalizador não documentado ``_must_cancel`` quando a "
1521+ "contagem de cancelamentos chegar a zero."
14771522
14781523#: ../../whatsnew/3.13.rst:734
14791524msgid "(Inspired by an issue reported by Arthur Tacca in :gh:`116720`.)"
@@ -1488,6 +1533,10 @@ msgid ""
14881533"exc:`RuntimeWarning` about the given coroutine being never awaited). "
14891534"(Contributed by Arthur Tacca and Jason Zhang in :gh:`115957`.)"
14901535msgstr ""
1536+ "Quando :meth:`.TaskGroup.create_task` é chamado em um :class:`~asyncio."
1537+ "TaskGroup` inativo, a corrotina fornecida será fechada (o que evita que um :"
1538+ "exc:`RuntimeWarning` sobre a corrotina fornecida nunca seja aguardado). "
1539+ "(Contribuição de Arthur Tacca e Jason Zhang em :gh:`115957`.)"
14911540
14921541#: ../../whatsnew/3.13.rst:744
14931542msgid "base64"
@@ -1499,6 +1548,10 @@ msgid ""
14991548"encoding :class:`bytes` as `Z85 data`_ and decoding Z85-encoded data to :"
15001549"class:`!bytes`. (Contributed by Matan Perelman in :gh:`75299`.)"
15011550msgstr ""
1551+ "Adiciona as funções :func:`~base64.z85encode` e :func:`~base64.z85decode` "
1552+ "para codificar :class:`bytes` como `dados Z85`_ e decodificar dados "
1553+ "codificados em Z85 para :class:`!bytes`. (Contribuição de Matan Perelman em :"
1554+ "gh:`75299`.)"
15021555
15031556#: ../../whatsnew/3.13.rst:755
15041557msgid "compileall"
0 commit comments