@@ -2558,6 +2558,8 @@ msgid ""
2558
2558
"Add :func:`itertools.pairwise`. (Contributed by Raymond Hettinger in :issue:"
2559
2559
"`38200`.)"
2560
2560
msgstr ""
2561
+ "Adiciona :func:`itertools.pairwise`. (Contribuição de Raymond Hettinger em :"
2562
+ "issue:`38200`.)"
2561
2563
2562
2564
#: ../../whatsnew/3.10.rst:1240
2563
2565
msgid "linecache"
@@ -2572,6 +2574,8 @@ msgid ""
2572
2574
"Add :func:`os.cpu_count` support for VxWorks RTOS. (Contributed by Peixing "
2573
2575
"Xin in :issue:`41440`.)"
2574
2576
msgstr ""
2577
+ "Adiciona suporte a :func:`os.cpu_count` para RTOS de VxWorks. (Contribuição "
2578
+ "de Peixing Xin em :issue:`41440`.)"
2575
2579
2576
2580
#: ../../whatsnew/3.10.rst:1251
2577
2581
msgid ""
@@ -2590,6 +2594,10 @@ msgid ""
2590
2594
"one of the file descriptors must refer to a pipe. (Contributed by Pablo "
2591
2595
"Galindo in :issue:`41625`.)"
2592
2596
msgstr ""
2597
+ "Adiciona :func:`os.splice` que permite mover dados entre dois descritores de "
2598
+ "arquivo sem copiar entre o espaço de endereço do kernel e o espaço de "
2599
+ "endereço do usuário, onde um dos descritores de arquivo deve se referir a um "
2600
+ "encadeamento (pipe). (Contribuição de Pablo Galindo em :issue:`41625`.)"
2593
2601
2594
2602
#: ../../whatsnew/3.10.rst:1260
2595
2603
msgid ""
@@ -2671,6 +2679,10 @@ msgid ""
2671
2679
"software/systemd/man/os-release.html>`_ standard file. (Contributed by "
2672
2680
"Christian Heimes in :issue:`28468`.)"
2673
2681
msgstr ""
2682
+ "Adiciona :func:`platform.freedesktop_os_release` para obter a identificação "
2683
+ "do sistema operacional a partir do arquivo padrão `os-release do freedesktop."
2684
+ "org <https://www.freedesktop.org/software/systemd/man/os-release.html>`_. "
2685
+ "(Contribuição de Christian Heimes em :issue:`28468`.)"
2674
2686
2675
2687
#: ../../whatsnew/3.10.rst:1301
2676
2688
msgid "pprint"
@@ -3934,7 +3946,7 @@ msgid ""
3934
3946
"exceptions were logged, and the last exception was always silently ignored. "
3935
3947
"(Contributed by Victor Stinner in :issue:`42639`.)"
3936
3948
msgstr ""
3937
- ":mod:`atexit`: Ao sair do Python, se uma função de retorno registrada com :"
3949
+ ":mod:`atexit`: ao sair do Python, se uma função de retorno registrada com :"
3938
3950
"func:`atexit.register` falhar, sua exceção agora é registrada nos logs. "
3939
3951
"Anteriormente, apenas algumas exceções eram registradas nos logs e a última "
3940
3952
"exceção era sempre ignorada silenciosamente. (Contribuição de Victor Stinner "
@@ -3993,6 +4005,8 @@ msgid ""
3993
4005
"async def foo(loop):\n"
3994
4006
" await asyncio.sleep(1, loop=loop)"
3995
4007
msgstr ""
4008
+ "async def foo(loop):\n"
4009
+ " await asyncio.sleep(1, loop=loop)"
3996
4010
3997
4011
#: ../../whatsnew/3.10.rst:1918
3998
4012
msgid "Should be replaced with this::"
@@ -4003,6 +4017,8 @@ msgid ""
4003
4017
"async def foo():\n"
4004
4018
" await asyncio.sleep(1)"
4005
4019
msgstr ""
4020
+ "async def foo():\n"
4021
+ " await asyncio.sleep(1)"
4006
4022
4007
4023
#: ../../whatsnew/3.10.rst:1923
4008
4024
msgid ""
@@ -4057,7 +4073,7 @@ msgid ""
4057
4073
"example, :c:func:`Py_CompileString`. The resulting code object can then be "
4058
4074
"evaluated using, for example, :c:func:`PyEval_EvalCode`."
4059
4075
msgstr ""
4060
- "O código-fonte deveria agora ser compilado diretamente para um objeto código "
4076
+ "O código-fonte deve ser agora compilado diretamente para um objeto código "
4061
4077
"usando, por exemplo, :c:func:`Py_CompileString`. O objeto código resultante "
4062
4078
"pode ser então avaliado usando, por exemplo, :c:func:`PyEval_EvalCode`."
4063
4079
@@ -4071,8 +4087,7 @@ msgid ""
4071
4087
"can be replaced by calling :c:func:`Py_CompileString`."
4072
4088
msgstr ""
4073
4089
"Uma chamada para ``PyParser_SimpleParseStringFlags`` seguida por "
4074
- "``PyNode_Compile`` pode ser substituída por chamar :c:func:"
4075
- "`Py_CompileString`."
4090
+ "``PyNode_Compile`` pode ser substituída por :c:func:`Py_CompileString`."
4076
4091
4077
4092
#: ../../whatsnew/3.10.rst:1956
4078
4093
msgid ""
@@ -4109,6 +4124,13 @@ msgid ""
4109
4124
"source_buf = PyBytes_AsString(source_bytes_object);\n"
4110
4125
"code = Py_CompileString(source_buf, filename, Py_file_input);"
4111
4126
msgstr ""
4127
+ "io_module = Import_ImportModule(\" io\" );\n"
4128
+ "fileobject = PyObject_CallMethod(io_module, \" open\" , \" ss\" , filename, "
4129
+ "\" rb\" );\n"
4130
+ "source_bytes_object = PyObject_CallMethod(fileobject, \" read\" , \"\" );\n"
4131
+ "result = PyObject_CallMethod(fileobject, \" close\" , \"\" );\n"
4132
+ "source_buf = PyBytes_AsString(source_bytes_object);\n"
4133
+ "code = Py_CompileString(source_buf, filename, Py_file_input);"
4112
4134
4113
4135
#: ../../whatsnew/3.10.rst:1973
4114
4136
msgid ""
@@ -4518,6 +4540,9 @@ msgid ""
4518
4540
"# define Py_SET_REFCNT(obj, refcnt) ((Py_REFCNT(obj) = (refcnt)), (void)0)\n"
4519
4541
"#endif"
4520
4542
msgstr ""
4543
+ "#if PY_VERSION_HEX < 0x030900A4\n"
4544
+ "# define Py_SET_REFCNT(obj, refcnt) ((Py_REFCNT(obj) = (refcnt)), (void)0)\n"
4545
+ "#endif"
4521
4546
4522
4547
#: ../../whatsnew/3.10.rst:2164
4523
4548
msgid "(Contributed by Victor Stinner in :issue:`39573`.)"
0 commit comments